Apache password authentication

see \Zend\Crypt\Password\http://httpd.apache.org/docs/2.2/misc/password_encryptions.html

 Methods

Constructor

__construct(array | \Traversable $options) 

Parameters

$options

array\Traversable

Exceptions

\Zend\Crypt\Password\Exception\InvalidArgumentException

Generate the hash of a password

create(string $password) : string

Parameters

$password

string

Exceptions

\Zend\Crypt\Password\Exception\RuntimeException

Returns

string

Get the AuthName (for digest authentication)

getAuthName() : string

Returns

string

Get the format of the password

getFormat() : string

Returns

string

Get the username

getUserName() : string

Returns

string

Set the AuthName (for digest authentication)

setAuthName(string $name) : \Zend\Crypt\Password\Apache

Parameters

$name

string

Returns

Set the format of the password

setFormat(string $format) : \Zend\Crypt\Password\Apache

Set the username

setUserName(string $name) : \Zend\Crypt\Password\Apache

Parameters

$name

string

Returns

Verify if a password is correct against an hash value

verify(string $password, string $hash) : boolean

Parameters

$password

string

$hash

string

Returns

boolean

APR1 MD5 algorithm

apr1Md5(string $password, null | string $salt) : string

Parameters

$password

string

$salt

nullstring

Returns

string

Convert a binary string using the alphabet "./0-9A-Za-z"

toAlphabet64(string $value) : string

Parameters

$value

string

Returns

string

 Properties

 

<p>AuthName (realm) for digest authentication</p>

$authName : string

 

$format

$format : string

 

$supportedFormat

$supportedFormat : array

 

<p>UserName</p>

$userName : string

 Constants

 

ALPHA64

ALPHA64 

 

BASE64

BASE64