Package com.aspectran.utils
Class PBEncryptionUtils
java.lang.Object
com.aspectran.utils.PBEncryptionUtils
This class provides basic encryption/decryption capabilities to implement PBE.
Note: Note: Use StrongPasswordEncryptor
for
high-strength password digesting and checking.
Created: 20/10/2018
- Since:
- 5.3.3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Decrypts the inputString using the encryption password.static String
Decrypts the inputString using the encryption password.static String
Encrypts the inputString using the encryption password.static String
Encrypts the inputString using the encryption password.static String
static org.jasypt.encryption.ByteEncryptor
getByteEncryptor
(String encryptionPassword) static org.jasypt.encryption.StringEncryptor
static String
static org.jasypt.encryption.StringEncryptor
getStringEncryptor
(String encryptionPassword)
-
Field Details
-
DEFAULT_ALGORITHM
- See Also:
-
ENCRYPTION_ALGORITHM_KEY
- See Also:
-
ENCRYPTION_PASSWORD_KEY
- See Also:
-
-
Constructor Details
-
PBEncryptionUtils
public PBEncryptionUtils()
-
-
Method Details
-
getAlgorithm
-
getPassword
-
encrypt
Encrypts the inputString using the encryption password.- Parameters:
inputString
- the string to encrypt- Returns:
- the result of encryption
-
decrypt
Decrypts the inputString using the encryption password.- Parameters:
encryptedString
- the string to decrypt- Returns:
- the result of decryption
-
encrypt
Encrypts the inputString using the encryption password.- Parameters:
inputString
- the string to encryptencryptionPassword
- the password to be used for encryption- Returns:
- the result of encryption
-
decrypt
Decrypts the inputString using the encryption password.- Parameters:
encryptedString
- the string to decryptencryptionPassword
- the password used for encryption- Returns:
- the result of decryption
-
getDefaultEncryptor
public static org.jasypt.encryption.StringEncryptor getDefaultEncryptor() -
getStringEncryptor
-
getByteEncryptor
-