Package com.axelor.common.crypto
Class StringEncryptor
java.lang.Object
com.axelor.common.crypto.StringEncryptor
Deprecated.
AES encryptor operating on
String values.
Encrypts and decrypts strings by delegating to a BytesEncryptor and encoding the
resulting bytes as Base64.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringEncryptorDeprecated.Deprecated.Decrypt the given encrypted message.Deprecated.Encrypt the given message.static StringEncryptorDeprecated.booleanisEncrypted(String message) Deprecated.Check whether the given message is already encrypted or not.toString()Deprecated.
-
Constructor Details
-
StringEncryptor
Deprecated.
-
-
Method Details
-
cbc
Deprecated. -
gcm
Deprecated. -
isEncrypted
Deprecated.Description copied from interface:EncryptorCheck whether the given message is already encrypted or not.- Specified by:
isEncryptedin interfaceEncryptor<String,String> - Parameters:
message- the message to check- Returns:
- true if encrypted
-
encrypt
Deprecated.Description copied from interface:EncryptorEncrypt the given message. -
decrypt
Deprecated.Description copied from interface:EncryptorDecrypt the given encrypted message. -
toString
Deprecated.
-
BytesEncryptor, which uses weak key derivation (PBKDF2WithHmacSHA1, 1024 iterations) and an instance-scoped salt. UseStringEncryptorPbkdf2Sha512(orStringEncryptorPbkdf2Sha256) for new encryptions, orStringEncryptorCoordinatorto handle legacy$AES$,$AESv1$, and$AESv2$ciphertext transparently.