Package com.biglybt.ui.console.util
Class StringEncrypter
java.lang.Object
com.biglybt.ui.console.util.StringEncrypter
utility class to encrypt strings. this class was taken from the examples at:
http://www.devx.com/Java/10MinuteSolution/21385/0/page/2
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStringEncrypter
(String encryptionScheme) StringEncrypter
(String encryptionScheme, String encryptionKey) -
Method Summary
-
Field Details
-
DESEDE_ENCRYPTION_SCHEME
- See Also:
-
DES_ENCRYPTION_SCHEME
- See Also:
-
DEFAULT_ENCRYPTION_KEY
- See Also:
-
keySpec
-
keyFactory
-
cipher
-
UNICODE_FORMAT
- See Also:
-
-
Constructor Details
-
StringEncrypter
-
StringEncrypter
public StringEncrypter(String encryptionScheme, String encryptionKey) throws StringEncrypter.EncryptionException
-
-
Method Details
-
encrypt
-
decrypt
-
bytes2String
-