velosurf.util
Class DESCryptograph

java.lang.Object
  extended by velosurf.util.DESCryptograph
All Implemented Interfaces:
Cryptograph

public class DESCryptograph
extends java.lang.Object
implements Cryptograph

inspired from some code found at http://javaalmanac.com/


Field Summary
(package private)  javax.crypto.Cipher dcipher
           
(package private)  javax.crypto.Cipher ecipher
           
 
Constructor Summary
DESCryptograph()
           
 
Method Summary
 java.lang.String decrypt(java.lang.String str)
           
 java.lang.String encrypt(java.lang.String str)
           
 void init(java.lang.String random)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ecipher

javax.crypto.Cipher ecipher

dcipher

javax.crypto.Cipher dcipher
Constructor Detail

DESCryptograph

public DESCryptograph()
Method Detail

init

public void init(java.lang.String random)
Specified by:
init in interface Cryptograph

encrypt

public java.lang.String encrypt(java.lang.String str)
Specified by:
encrypt in interface Cryptograph

decrypt

public java.lang.String decrypt(java.lang.String str)
Specified by:
decrypt in interface Cryptograph

main

public static void main(java.lang.String[] args)


~ooOoo~