Package org.jasypt.encryption
Interface ByteEncryptor
-
- All Known Subinterfaces:
PBEByteCleanablePasswordEncryptor
,PBEByteEncryptor
- All Known Implementing Classes:
PooledPBEByteEncryptor
,StandardPBEByteEncryptor
public interface ByteEncryptor
Common interface for all Encryptors which receive a byte array message and return a byte array result.
- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
decrypt(byte[] encryptedMessage)
Decrypt an encrypted messagebyte[]
encrypt(byte[] message)
Encrypt the input message
-
-
-
Method Detail
-
encrypt
byte[] encrypt(byte[] message)
Encrypt the input message- Parameters:
message
- the message to be encrypted- Returns:
- the result of encryption
-
decrypt
byte[] decrypt(byte[] encryptedMessage)
Decrypt an encrypted message- Parameters:
encryptedMessage
- the encrypted message to be decrypted- Returns:
- the result of decryption
-
-