Package org.apache.shiro.crypto.cipher
package org.apache.shiro.crypto.cipher
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.-
ClassDescriptionBase abstract class for supporting symmetric key cipher algorithms.
CipherService
using theAES
cipher algorithm for all encryption, decryption, and key operations.CipherService
using theBlowfish
cipher algorithm for all encryption, decryption, and key operations.ByteSourceBroker holds an encrypted value to decrypt it on demand.ByteSourceBroker.useBytes(ByteSourceUser)
method requires ByteSourceUser argument, and developers should implement how we use the byte arrays in our code-base.ACipherService
uses a cryptographic algorithm called a Cipher to convert an original input source using akey
to an uninterpretable format.Base abstract class for block cipher algorithms.AbstractCipherService
implementation utilizing Java's JCA APIs.A cipher mode of operation directs a cipher algorithm how to convert data during the encryption or decryption process.ACipherPaddingScheme
represents well-known padding schemes supported by JPA providers in a type-safe manner.A simple implementation that maintains cipher service, ciphertext and key for decrypting it later.