org.gudy.azureus2.ui.console.util
Class StringEncrypter
java.lang.Object
org.gudy.azureus2.ui.console.util.StringEncrypter
public class StringEncrypter
- extends java.lang.Object
utility class to encrypt strings. this class was taken from the examples at:
http://www.devx.com/Java/10MinuteSolution/21385/0/page/2
Constructor Summary |
StringEncrypter(java.lang.String encryptionScheme)
|
StringEncrypter(java.lang.String encryptionScheme,
java.lang.String encryptionKey)
|
Method Summary |
java.lang.String |
decrypt(java.lang.String encryptedString)
|
java.lang.String |
encrypt(java.lang.String unencryptedString)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DESEDE_ENCRYPTION_SCHEME
public static final java.lang.String DESEDE_ENCRYPTION_SCHEME
- See Also:
- Constant Field Values
DES_ENCRYPTION_SCHEME
public static final java.lang.String DES_ENCRYPTION_SCHEME
- See Also:
- Constant Field Values
DEFAULT_ENCRYPTION_KEY
public static final java.lang.String DEFAULT_ENCRYPTION_KEY
- See Also:
- Constant Field Values
StringEncrypter
public StringEncrypter(java.lang.String encryptionScheme)
throws StringEncrypter.EncryptionException
- Throws:
StringEncrypter.EncryptionException
StringEncrypter
public StringEncrypter(java.lang.String encryptionScheme,
java.lang.String encryptionKey)
throws StringEncrypter.EncryptionException
- Throws:
StringEncrypter.EncryptionException
encrypt
public java.lang.String encrypt(java.lang.String unencryptedString)
throws StringEncrypter.EncryptionException
- Throws:
StringEncrypter.EncryptionException
decrypt
public java.lang.String decrypt(java.lang.String encryptedString)
throws StringEncrypter.EncryptionException
- Throws:
StringEncrypter.EncryptionException