Class UnixCrypt

  • public class UnixCrypt
    extends java.lang.Object
    Unix Crypt. Implements the one way cryptography used by Unix systems for simple password protection.
    $Id:,v 1.1 2005/10/05 14:09:14 janb Exp $
    Greg Wilkins (gregw)
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String crypt​(java.lang.String key, java.lang.String setting)
      Encrypts String into crypt (Unix) code.
      static void main​(java.lang.String[] arg)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • crypt

        public static java.lang.String crypt​(java.lang.String key,
                                             java.lang.String setting)
        Encrypts String into crypt (Unix) code.
        key - the key to be encrypted
        setting - the salt to be used
        the encrypted String
      • main

        public static void main​(java.lang.String[] arg)