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