Class StringDecrypter
- java.lang.Object
-
- org.gcube.contentmanager.storageclient.model.protocol.smp.StringDecrypter
-
public class StringDecrypter extends Object
This class can be used to encrypt and decrypt using DES and a given key- Author:
- Javid Jamae @author Roberto Cirillo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStringDecrypter.EncryptionException
-
Field Summary
Fields Modifier and Type Field Description static StringDES_ENCRYPTION_SCHEMEstatic StringDESEDE_ENCRYPTION_SCHEME
-
Constructor Summary
Constructors Constructor Description StringDecrypter(String encryptionScheme, String phrase)
-
-
-
Field Detail
-
DESEDE_ENCRYPTION_SCHEME
public static final String DESEDE_ENCRYPTION_SCHEME
- See Also:
- Constant Field Values
-
DES_ENCRYPTION_SCHEME
public static final String DES_ENCRYPTION_SCHEME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StringDecrypter
public StringDecrypter(String encryptionScheme, String phrase) throws StringDecrypter.EncryptionException
-
-
Method Detail
-
decrypt
public String decrypt(String encryptedString) throws StringDecrypter.EncryptionException
-
-