Class StringEncrypter
- java.lang.Object
-
- org.gcube.common.encryption.encrypter.StringEncrypter
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdecrypt(String string)Decrypts the string with the given keyStringdecrypt(String string, Key dkey)Decrypts the string with the given keyStringencrypt(String string)Encrypts the string with the context KeyStringencrypt(String string, Key ekey)Encrypts the string with the given keystatic StringEncryptergetEncrypter()Gets the Encrypter forString
-
-
-
Method Detail
-
getEncrypter
public static StringEncrypter getEncrypter()
Gets the Encrypter forString- Returns:
- the encrypter
-
encrypt
public String encrypt(String string) throws Exception
Encrypts the string with the context Key
-
encrypt
public String encrypt(String string, Key ekey) throws Exception
Encrypts the string with the given key
-
decrypt
public String decrypt(String string) throws Exception
Decrypts the string with the given key
-
-