nl.knowledgeplaza.util.crypt
Class DesEncrypter
java.lang.Object
nl.knowledgeplaza.util.crypt.DesEncrypter
public class DesEncrypter
- extends Object
Perform a DES ecryption or decryption.
This class can be called from the command line:
- java org.tbee.util.crypt.DesEncrypter encrypt "KEY" "READABLEDATA"
- java org.tbee.util.crypt.DesEncrypter decrypt "KEY" "ENCRYPTEDDATA"
- Version:
- $Revision: 1.4 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DesEncrypter
public DesEncrypter(String passPhrase)
- Parameters:
passPhrase -
DesEncrypter
public DesEncrypter(char[] passPhrase)
- Parameters:
passPhrase -
DesEncrypter
public DesEncrypter(char[] passPhrase,
byte[] salt,
int iteration)
- Parameters:
passPhrase - salt - iterationCount -
encrypt
public String encrypt(String unencryptedData)
- Parameters:
unencryptedData -
- Returns:
decrypt
public String decrypt(String encryptedData)
- Parameters:
encryptedData -
- Returns:
main
public static void main(String[] args)
Copyright © 2011 KnowledgePlaza. All Rights Reserved.