org.gudy.azureus2.ui.console.util
Class StringEncrypter
java.lang.Object
org.gudy.azureus2.ui.console.util.StringEncrypter
public class StringEncrypter
- extends Object
utility class to encrypt strings. this class was taken from the examples at:
http://www.devx.com/Java/10MinuteSolution/21385/0/page/2
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