O'Reilly logo

Java™ Web Services Unleashed by Mark Wutka, Joseph Weber, Arthur Ryman, K. Scott Morrison, Benoît Marchal, Matthias Kloppmann, Steven Haines, Darren Govoni, Francisco Curbera, Frank Cohen, Robert Brunner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Encryption in Java

Until the Java-XML libraries have built-in encryption, you'll have to use the Java Cryptography Extensions to do any encryption. The JDK already supports digital signatures, and JDK 1.4 supports SSL for secure networking.

Digitally Signing Data

To digitally sign data with Java, you need a Signature object, which you obtain by calling the Signature.getInstance method with the appropriate security algorithm name. The algorithm names for the signing algorithms are actually combinations of secure hashing algorithms and public key encryption algorithms.

The two most common secure hashing algorithms are SHA1 (Secure Hash Algorithm 1) and MD5 (Message Digest 5). The most common public key encryption algorithms are RSA (named for its ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required