|
MDi JLib 1.7.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.microdeveloper.security.encryption.DesEncrypter
public class DesEncrypter
A Triple DES with MD5 encryption utility that encrypts and decrypts the given text. This variant uses a pass phrase to perform the encryption. Because the encryption is 156-bit strong, the class is not suitable for export. Additionally, because the passphrase is in the form of text, care should be taken not to expose the passkey during usage.
Base64Encrypter
Field Summary | |
---|---|
(package private) com.microdeveloper.security.encryption.DesEncrypter.Wrapper |
w
|
Constructor Summary | |
---|---|
DesEncrypter(String passPhrase)
Creates a new DesEncrypter object and intializes it with the given pass phrase. |
Method Summary | |
---|---|
String |
decrypt(String str)
Decrypts the given text returning the clear text result. |
String |
encrypt(String str)
Encrypts the given text returning the encrypted result. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
com.microdeveloper.security.encryption.DesEncrypter.Wrapper w
Constructor Detail |
---|
public DesEncrypter(String passPhrase)
passPhrase
- secret pass phrase to encode withMethod Detail |
---|
public String encrypt(String str)
str
- clear text to encrypt
decrypt(String)
public String decrypt(String str)
str
- encrypted text to decrypt
encrypt(String)
|
MDi JLib 1.7.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |