---
name: "Authen::Simple::Password"
section: "3pm"
platform: "linux"
package: "libauthen-simple-perl"
version: "0.5-1.1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Authen::Simple::Password"
---

# Authen::Simple::Password(3pm)

Simple password checking

## NAME

Authen::Simple::Password - Simple password checking

## SYNOPSIS

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

## DESCRIPTION

Provides a simple way to verify passwords.

## METHODS

- •

  check( `$password`, `$encrypted` )

  Returns true on success and false on failure.

## SUPPORTED PASSWORD FORMATS

- •

  Plain

  Plaintext

- •

  Crypt

  [**crypt**(3)](/crypt/3.md)

- •

  Crypt Modular

  - •

    `$1`$

    MD5-based password algorithm

  - •

    `$apr`$

    MD5-based password algorithm, Apache variant

- •

  LDAP

  - •

    {CLEARTEXT}

    Plaintext.

  - •

    {CRYPT}

    Uses [**crypt**(3)](/crypt/3.md)

  - •

    {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.

## SEE ALSO

Authen::Simple

[**crypt**(3)](/crypt/3.md).

## AUTHOR

Christian Hansen `"chansen@cpan.org"`

## COPYRIGHT

This program is free software, you can redistribute it and/or modify  it under the same terms as Perl itself.
