public class Encryption
extends java.lang.Object
| Constructor and Description |
|---|
Encryption() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
decrypt(java.lang.String encryptedStr)
Decrypts the encrypted string using the configured encryptionPassword
|
static java.lang.String |
encrypt(java.lang.String str)
Encrypts the specified string using the configured encryptionPassword
|
public static java.lang.String encrypt(java.lang.String str)
str - String to be encryptedpublic static java.lang.String decrypt(java.lang.String encryptedStr)
throws org.jasypt.exceptions.EncryptionOperationNotPossibleException
encryptedStr - The string to decryptorg.jasypt.exceptions.EncryptionOperationNotPossibleException - When the encryptionPassword is not correct