1378. Class

1378.1. Zend\Crypt\Password\Apache

Apache password authentication

1378.1.1. Methods

1378.1.1.1. __construct

__construct()

Constructor

Parameters:array|Traversable
Throws ExceptionInvalidArgumentException:
 

1378.1.1.2. create

create()

Generate the hash of a password

Parameters:string
Throws ExceptionRuntimeException:
 
Return type:string

1378.1.1.3. verify

verify()

Verify if a password is correct against an hash value

Parameters:
  • string
  • string
Return type:

boolean

1378.1.1.4. setFormat

setFormat()

Set the format of the password

Parameters:integer|string
Throws ExceptionInvalidArgumentException:
 
Return type:Apache

1378.1.1.5. getFormat

getFormat()

Get the format of the password

Return type:string

1378.1.1.6. setAuthName

setAuthName()

Set the AuthName (for digest authentication)

Parameters:string
Return type:Apache

1378.1.1.7. getAuthName

getAuthName()

Get the AuthName (for digest authentication)

Return type:string

1378.1.1.8. setUserName

setUserName()

Set the username

Parameters:string
Return type:Apache

1378.1.1.9. getUserName

getUserName()

Get the username

Return type:string

1378.1.1.10. toAlphabet64

toAlphabet64()

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

Parameters:string
Return type:string

1378.1.1.11. apr1Md5

apr1Md5()

APR1 MD5 algorithm

Parameters:string
Return type:string

1378.1.2. Constants

1378.1.2.1. BASE64

1378.1.2.2. ALPHA64