jrun.security
Class JRunCrypterForTwofish

java.lang.Object
  |
  +--jrun.security.JRunCrypterForTwofish
All Implemented Interfaces:
JRunCrypter

public class JRunCrypterForTwofish
extends java.lang.Object
implements JRunCrypter


Constructor Summary
JRunCrypterForTwofish()
           
 
Method Summary
 java.lang.String decrypt(java.lang.String encryptedText)
           
 java.lang.String encrypt(java.lang.String cleartext)
           
static void main(java.lang.String[] args)
          public static void main(String[] args) { JRunCrypterForTwofish algo = new JRunCrypterForTwofish(); String encryptedString = algo.encrypt(args[0]); System.out.println("[" + args[0] + "]" ); System.out.println("=> [" + encryptedString + "]"); System.out.println("DecryptedString: " + algo.decrypt(encryptedString) ); }
 boolean matches(java.lang.String encryptedText, java.lang.String clearText)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRunCrypterForTwofish

public JRunCrypterForTwofish()
Method Detail

encrypt

public java.lang.String encrypt(java.lang.String cleartext)
Specified by:
encrypt in interface JRunCrypter

decrypt

public java.lang.String decrypt(java.lang.String encryptedText)
Specified by:
decrypt in interface JRunCrypter

matches

public boolean matches(java.lang.String encryptedText,
                       java.lang.String clearText)
Specified by:
matches in interface JRunCrypter

main

public static void main(java.lang.String[] args)
public static void main(String[] args) { JRunCrypterForTwofish algo = new JRunCrypterForTwofish(); String encryptedString = algo.encrypt(args[0]); System.out.println("[" + args[0] + "]" ); System.out.println("=> [" + encryptedString + "]"); System.out.println("DecryptedString: " + algo.decrypt(encryptedString) ); }


Copyright � 2002 Macromedia Corporation. All Rights Reserved.