velosurf.util
Class DESCryptograph
java.lang.Object
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
|
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 |
ecipher
javax.crypto.Cipher ecipher
dcipher
javax.crypto.Cipher dcipher
DESCryptograph
public DESCryptograph()
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~