org.gcube.contentmanager.storageclient.model.protocol.smp
Class StringEncrypter
java.lang.Object
org.gcube.contentmanager.storageclient.model.protocol.smp.StringEncrypter
public class StringEncrypter
- extends Object
This class can be used to encrypt and decrypt using DES and a given key
- Author:
- Javid Jamae
- See Also:
http://www.devx.com/Java/10MinuteSolution/21385/0/page/1
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
DEFAULT_ENCRYPTION_KEY
public static final String DEFAULT_ENCRYPTION_KEY
- See Also:
- Constant Field Values
StringEncrypter
public StringEncrypter(String encryptionScheme)
throws StringEncrypter.EncryptionException
- Throws:
StringEncrypter.EncryptionException
StringEncrypter
public StringEncrypter(String encryptionScheme,
String encryptionKey)
throws StringEncrypter.EncryptionException
- Throws:
StringEncrypter.EncryptionException
encrypt
public String encrypt(String unencryptedString)
throws StringEncrypter.EncryptionException
- Throws:
StringEncrypter.EncryptionException
decrypt
public String decrypt(String encryptedString)
throws StringEncrypter.EncryptionException
- Throws:
StringEncrypter.EncryptionException
Copyright © 2012. All Rights Reserved.