PKCS #5 v2.0 standard RFC 2898

 Methods

Generate the new key

calc(string $hash, string $password, string $salt, integer $iterations, integer $length) : string

Parameters

$hash

string

The hash algorithm to be used by HMAC

$password

string

The source password/key

$salt

string

$iterations

integer

The number of iterations

$length

integer

The output size

Exceptions

\Zend\Crypt\Key\Derivation\Exception\InvalidArgumentException

Returns

string