This section describes the design and usage of Java Cryptography Extension classes, which are now integrated with the rest of the Java Cryptography Architecture classes in the Java 2 SDK 1.4.
The javax.crypto.Cipher class provides the functionality of a cryptographic cipher used for encryption and decryption. This class forms the core of the JCE framework.
As with all engine classes, a Cipher object is created by calling one of the getInstance static factory methods on the Cipher class. To create a Cipher object, you must specify the transformation name. You may also specify which provider you want to supply the implementation of the requested transformation: