PKCS #5 v2.0 standard RFC 2898

 Methods

Generate the new key

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

Parameters

$hash

string

The hash algorithm to be used by HMAC

$password

string

The source password/key

$salt

string

$iterations

int

The number of iterations

$length

int

The output size

Exceptions

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

Returns

string