nl.knowledgeplaza.util.crypt
Class DesEncrypter

java.lang.Object
  extended by 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 $

Constructor Summary
DesEncrypter(char[] passPhrase)
           
DesEncrypter(char[] passPhrase, byte[] salt, int iteration)
           
DesEncrypter(String passPhrase)
           
 
Method Summary
 String decrypt(String encryptedData)
           
 String encrypt(String unencryptedData)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 -
Method Detail

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 © 2012 KnowledgePlaza. All Rights Reserved.