com.arsdigita.acs
Class Crypt

java.lang.Object
  |
  +--com.arsdigita.acs.Crypt

public class Crypt
extends Object

Java-based implementation of the unix crypt command

Based upon C source code written by Eric Young, eay@psych.uq.oz.au


Method Summary
static String crypt(String salt, String original)
          Encrypts a string using the same algorithm as the UNIX crypt command, or AOLserver ns_crypt procedure
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

crypt

public static final String crypt(String salt,
                                 String original)
Encrypts a string using the same algorithm as the UNIX crypt command, or AOLserver ns_crypt procedure
Parameters:
salt - Two-character "salt" for perturbing the encryption algorithm
original - The string to encrypt
Returns:
The encrypted string