public class HawaiiStringEncryptor
extends java.lang.Object
implements org.jasypt.encryption.StringEncryptor
StringEncryptor interface. This class registers the Bouncy Castle JCE Provider.StringEncryptor,
BouncyCastleProvider| Constructor and Description |
|---|
HawaiiStringEncryptor(java.lang.String key,
java.lang.String initVector)
Creates a new
HawaiiStringEncryptor with the given key and init vector. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
decrypt(java.lang.String encryptedMessage)
Decrypt the encrypted input message.
|
java.lang.String |
encrypt(java.lang.String message)
Encrypt the input message.
|
public HawaiiStringEncryptor(java.lang.String key,
java.lang.String initVector)
HawaiiStringEncryptor with the given key and init vector.key - the key used for encryption/decryptioninitVector - the init vector used for encryption/decryptionpublic java.lang.String encrypt(java.lang.String message)
encrypt in interface org.jasypt.encryption.StringEncryptormessage - the message to be encryptedHawaiiException - when an error occurs.public java.lang.String decrypt(java.lang.String encryptedMessage)
decrypt in interface org.jasypt.encryption.StringEncryptorencryptedMessage - the message to be decryptedHawaiiException - when an error occurs.