All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class rcs.utils.jcrypt

java.lang.Object
   |
   +----rcs.utils.jcrypt

public class jcrypt
extends 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().

Source Code: jcrypt.java

Author:
John Dumas, Eric Young

Method Index

 o crypt(String, String)
Encrypts a passwd.
 o main(String[])
Main function called when the class is run as a standalone program.

Methods

 o crypt
 public static final String crypt(String original,
                                  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.
 o main
 public static void main(String args[])
Main function called when the class is run as a standalone program.


All Packages  Class Hierarchy  This Package  Previous  Next  Index