rcs.utils
Class jcrypt

java.lang.Object
  extended by rcs.utils.jcrypt

public class jcrypt
extends java.lang.Object

This class provides a Java-based implementation of the unix crypt command. I downloaded this file from http://www.zeh.com/local/jfd/crypt.htm on March, 25 1997, and used it in rcs.nml.NMLConnection.login().


Method Summary
static java.lang.String crypt(java.lang.String original, java.lang.String salt)
          Encrypts a passwd.
static void main(java.lang.String[] args)
          Main function called when the class is run as a standalone program.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

crypt

public static final java.lang.String crypt(java.lang.String original,
                                           java.lang.String salt)
Encrypts a passwd.

Parameters:
original - Password or key before encryption.
salt - 2 letter string used during encryption and returned at the beggining of the resulting encrypted string.
Returns:
the encrypted passwd with the salt included as the first 2 characters.

main

public static void main(java.lang.String[] args)
Main function called when the class is run as a standalone program.