Package com.axelor.common.crypto
Class StringEncryptor
java.lang.Object
com.axelor.common.crypto.StringEncryptor
The
StringEncryptor can be used to encrypt/decrypt String values.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringEncryptorDecrypt the given encrypted message.Encrypt the given message.static StringEncryptorbooleanisEncrypted(String message) Check whether the given message is already encrypted or not.toString()
-
Constructor Details
-
StringEncryptor
-
-
Method Details
-
cbc
-
gcm
-
isEncrypted
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
Description copied from interface:EncryptorEncrypt the given message. -
decrypt
Description copied from interface:EncryptorDecrypt the given encrypted message. -
toString
-