logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Authen::Simple::Password - Simple password checking

Author

       Christian Hansen "chansen@cpan.org"

Description

       Provides a simple way to verify passwords.

Methods

       •   check( $password, $encrypted )

           Returns true on success and false on failure.

Name

       Authen::Simple::Password - Simple password checking

See Also

       Authen::Simple

       crypt(3).

Supported Password Formats

       •   Plain

           Plaintext

       •   Crypt

           crypt(3)

       •   Crypt Modular

           •       $1$

                   MD5-based password algorithm

           •       $apr$

                   MD5-based password algorithm, Apache variant

       •   LDAP

           •       {CLEARTEXT}

                   Plaintext.

           •       {CRYPT}

                   Uses crypt(3)

           •       {MD5}

                   MD5 algorithm

           •       {SMD5}

                   Seeded MD5 algorithm

           •       {SHA}

                   SHA-1 algorithm

           •       {SSHA}

                   Seeded SHA-1 algorithm

       •   MD5 algorithm

           Encoded as binary, Base64 or hexadecimal.

       •   SHA-1 algorithm

           Encoded as binary, Base64 or hexadecimal.

       •   SHA-2 256 algorithm

           Encoded as binary, Base64 or hexadecimal.

Synopsis

           if ( Authen::Simple::Password->check( $password, $encrypted ) ) {
               # OK
           }

See Also