| Constructor and Description |
|---|
StringEncryptor(BytesEncryptor encryptor) |
| Modifier and Type | Method and Description |
|---|---|
static StringEncryptor |
cbc(String password) |
String |
decrypt(String encryptedMessage)
Decrypt the given encrypted message.
|
String |
encrypt(String message)
Encrypt the given message.
|
static StringEncryptor |
gcm(String password) |
boolean |
isEncrypted(String message)
Check whether the given message is already encrypted or not.
|
String |
toString() |
public StringEncryptor(BytesEncryptor encryptor)
public static StringEncryptor cbc(String password)
public static StringEncryptor gcm(String password)
public boolean isEncrypted(String message)
EncryptorisEncrypted in interface Encryptor<String,String>message - the message to checkpublic String encrypt(String message)
Encryptorpublic String decrypt(String encryptedMessage)
Encryptor