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
-
crypt(String, String)
- Encrypts a passwd.
-
main(String[])
- Main function called when the class is run as a standalone program.
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.
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