Class StringEncrypter
java.lang.Object
org.gcube.common.encryption.encrypter.StringEncrypter
- Author:
- Luca Frosini (ISTI - CNR)
-
Method Summary
Modifier and TypeMethodDescriptionDecrypts the string with the context keyDecrypts the string with the given key; the decrypted bytes are decoded as UTF-8Encrypts the string with the context KeyEncrypts the string with the given key; the string is encoded in UTF-8 before encryptionstatic StringEncrypterGets the Encrypter forString
-
Method Details
-
getEncrypter
Gets the Encrypter forString- Returns:
- the encrypter
-
encrypt
Encrypts the string with the context Key -
encrypt
Encrypts the string with the given key; the string is encoded in UTF-8 before encryption -
decrypt
Decrypts the string with the context key -
decrypt
Decrypts the string with the given key; the decrypted bytes are decoded as UTF-8
-