Cryptography Cipher and Hashing components that greatly simplify the JDK's cryptography concepts and add additional convenient behavior. The most important interface in this package is the
CipherServiceinterface, which allows one to encrypt and decrypt sensitive data.
Interface Summary Interface Description CipherServiceA
CipherServiceuses a cryptographic algorithm called a Cipher to convert an original input source using a
keyto an uninterpretable format.
RandomNumberGeneratorA component that can generate random number/byte values as needed.
Class Summary Class Description AbstractSymmetricCipherServiceBase abstract class for supporting symmetric key cipher algorithms. AesCipherService
AEScipher algorithm for all encryption, decryption, and key operations.
Blowfishcipher algorithm for all encryption, decryption, and key operations.
DefaultBlockCipherServiceBase abstract class for block cipher algorithms. JcaCipherServiceAbstract
CipherServiceimplementation utilizing Java's JCA APIs.
Enum Summary Enum Description OperationModeA cipher mode of operation directs a cipher algorithm how to convert data during the encryption or decryption process. PaddingSchemeA
CipherPaddingSchemerepresents well-known padding schemes supported by JPA providers in a type-safe manner.
Exception Summary Exception Description CryptoExceptionBase Shiro exception for problems encountered during cryptographic operations. UnknownAlgorithmExceptionException thrown when attempting to lookup or use a cryptographic algorithm that does not exist in the current JVM environment.