Package ca.phon.util

Class JCrypt

java.lang.Object
ca.phon.util.JCrypt

public class JCrypt extends Object
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 Details

    • JCrypt

      public JCrypt()
  • Method Details

    • crypt

      public static String crypt(String strpw, String strsalt)
      Returns a String containing the encrypted passwd
      Parameters:
      strpw - A String containing the un-encrypted password
      strsalt - A 2 character String, containing the salt to encrypt the password with.
    • randomSalt

      public static char[] randomSalt()