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.
CipherServiceusing theAEScipher algorithm for all encryption, decryption, and key operations.CipherServiceusing theBlowfishcipher 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.ACipherServiceuses a cryptographic algorithm called a Cipher to convert an original input source using akeyto an uninterpretable format.Base abstract class for block cipher algorithms.AbstractCipherServiceimplementation utilizing Java's JCA APIs.A cipher mode of operation directs a cipher algorithm how to convert data during the encryption or decryption process.ACipherPaddingSchemerepresents 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.