Class Crypt

    • Constructor Detail

      • Crypt

        public Crypt()
        Constructor.
    • Method Detail

      • crypt

        public byte[] crypt​(byte[] pw,
                            byte[] salt)
        Encode the supplied password in unix crypt form with the provided salt.
        Parameters:
        pw - A password to encode.
        salt - A salt array of any size, of which only the first 2 bytes will be considered.
        Returns:
        A trimmed array