Zend\Crypt\Password\Apache
Apache password authentication
Synopsis
class Apache
implements
PasswordInterface
{
- // constants
- const BASE64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
- const ALPHA64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
- // members
- protected array $supportedFormat;
- protected string $format;
- protected string $authName;
- protected string $userName;
- // methods
- public void __construct()
- public string create()
- public bool verify()
- public Apache setFormat()
- public string getFormat()
- public Apache setAuthName()
- public string getAuthName()
- public Apache setUserName()
- public string getUserName()
- protected string toAlphabet64()
- protected string apr1Md5()
Hierarchy
Implements
Constants
Name | Value |
---|---|
BASE64 | 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' |
ALPHA64 | './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' |
Members
protected
- $authName — string
- $format — string
- $supportedFormat — array
- $userName — string
Methods
protected
- apr1Md5() — APR1 MD5 algorithm
- toAlphabet64() — Convert a binary string using the alphabet "./0-9A-Za-z"
public
- __construct() — Constructor
- create() — Generate the hash of a password
- getAuthName() — Get the AuthName (for digest authentication)
- getFormat() — Get the format of the password
- getUserName() — Get the username
- setAuthName() — Set the AuthName (for digest authentication)
- setFormat() — Set the format of the password
- setUserName() — Set the username
- verify() — Verify if a password is correct against a hash value