Class UnixCrypt


  • @Deprecated
    public class UnixCrypt
    extends java.lang.Object
    Deprecated.
    will be removed in Jaybird 6, and replaced by LegacyHash which will be introduced in Jaybird 6
    Unix Crypt. Implements the one way cryptography used by Unix systems for simple password protection.
    Author:
    Greg Wilkins (gregw)
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static java.lang.String crypt​(java.lang.String key, java.lang.String setting)
      Deprecated.
      Encrypts String into crypt (Unix) code.
      • 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)
        Deprecated.
        Encrypts String into crypt (Unix) code.
        Parameters:
        key - the key to be encrypted
        setting - the salt to be used
        Returns:
        the encrypted String