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 StringEncryptor
Decrypt the given encrypted message.Encrypt the given message.static StringEncryptor
boolean
isEncrypted
(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:Encryptor
Check whether the given message is already encrypted or not.- Specified by:
isEncrypted
in interfaceEncryptor<String,
String> - Parameters:
message
- the message to check- Returns:
- true if encrypted
-
encrypt
Description copied from interface:Encryptor
Encrypt the given message. -
decrypt
Description copied from interface:Encryptor
Decrypt the given encrypted message. -
toString
-