Package ca.phon.util
Class JCrypt
java.lang.Object
ca.phon.util.JCrypt
Password is a class to implement password encryption as used
on Unix systems. It is compatible with the crypt(3c) system function.
This version is a based on the DES encryption algorithm in
Andrew Tanenbaum's book "Computer Networks". It was rewritten
in C and used in Perl release 4.035. This version was rewritten
in Java by David Scott, Siemens Ltd., Australia.
For further details on the methods in this class, refer to the
Unix man pages for crypt(3c).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Returns a String containing the encrypted passwdstatic char[]
-
Constructor Details
-
JCrypt
public JCrypt()
-
-
Method Details
-
crypt
Returns a String containing the encrypted passwd- Parameters:
strpw
- A String containing the un-encrypted passwordstrsalt
- A 2 character String, containing the salt to encrypt the password with.
-
randomSalt
public static char[] randomSalt()
-