Package org.apache.shiro.crypto
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
CipherService
interface, which allows one to encrypt and decrypt sensitive data.-
Interface Summary Interface Description CipherService ACipherService
uses a cryptographic algorithm called a Cipher to convert an original input source using akey
to an uninterpretable format.RandomNumberGenerator A component that can generate random number/byte values as needed. -
Class Summary Class Description AbstractSymmetricCipherService Base abstract class for supporting symmetric key cipher algorithms.AesCipherService CipherService
using theAES
cipher algorithm for all encryption, decryption, and key operations.BlowfishCipherService CipherService
using theBlowfish
cipher algorithm for all encryption, decryption, and key operations.DefaultBlockCipherService Base abstract class for block cipher algorithms.JcaCipherService AbstractCipherService
implementation utilizing Java's JCA APIs.SecureRandomNumberGenerator Default implementation of theRandomNumberGenerator
interface, backed by aSecureRandom
instance. -
Enum Summary Enum Description OperationMode A cipher mode of operation directs a cipher algorithm how to convert data during the encryption or decryption process.PaddingScheme ACipherPaddingScheme
represents well-known padding schemes supported by JPA providers in a type-safe manner. -
Exception Summary Exception Description CryptoException Base Shiro exception for problems encountered during cryptographic operations.UnknownAlgorithmException Exception thrown when attempting to lookup or use a cryptographic algorithm that does not exist in the current JVM environment.