$mbString
$mbString : null|boolean
Internal flag to enable or disable the `mbstring` extension usage.
Note: null
=> auto-check on next call, true
=> available,
false
=> not available.
Class NativePbkdf2Sha3 - Pure PHP implementation of the PBKDF2-SHA-3 algorithm.
digest224(string|mixed $password, string|mixed $salt, integer $iterations, integer $keyLength, boolean|integer|null $rawOutput = false) : string
The PBKD2-SHA-3-224 key derivation function.
string|mixed | $password | The password to use for the derivation. |
string|mixed | $salt | The salt string to use during derivation. |
integer | $iterations | The number of internal iterations to perform for the derivation. |
integer | $keyLength | The length of the output derivation key string. |
boolean|integer|null | $rawOutput | Flag for using raw byte output instead of HEX. |
Validation errors.
The output derived key (output keying material).
digest256(string|mixed $password, string|mixed $salt, integer $iterations, integer $keyLength, boolean|integer|null $rawOutput = false) : string
The PBKD2-SHA-3-256 key derivation function.
string|mixed | $password | The password to use for the derivation. |
string|mixed | $salt | The salt string to use during derivation. |
integer | $iterations | The number of internal iterations to perform for the derivation. |
integer | $keyLength | The length of the output derivation key string. |
boolean|integer|null | $rawOutput | Flag for using raw byte output instead of HEX. |
Validation errors.
The output derived key (output keying material).
digest384(string|mixed $password, string|mixed $salt, integer $iterations, integer $keyLength, boolean|integer|null $rawOutput = false) : string
The PBKD2-SHA-3-384 key derivation function.
string|mixed | $password | The password to use for the derivation. |
string|mixed | $salt | The salt string to use during derivation. |
integer | $iterations | The number of internal iterations to perform for the derivation. |
integer | $keyLength | The length of the output derivation key string. |
boolean|integer|null | $rawOutput | Flag for using raw byte output instead of HEX. |
Validation errors.
The output derived key (output keying material).
digest512(string|mixed $password, string|mixed $salt, integer $iterations, integer $keyLength, boolean|integer|null $rawOutput = false) : string
The PBKD2-SHA-3-512 key derivation function.
string|mixed | $password | The password to use for the derivation. |
string|mixed | $salt | The salt string to use during derivation. |
integer | $iterations | The number of internal iterations to perform for the derivation. |
integer | $keyLength | The length of the output derivation key string. |
boolean|integer|null | $rawOutput | Flag for using raw byte output instead of HEX. |
Validation errors.
The output derived key (output keying material).
customPbkdf2(string $algorithm, string|mixed $password, string|mixed $salt, integer $iterations, integer $keyLength, boolean|integer|null $rawOutput = false) : string
Internal static method for single point consumption of the PBKD2-SHA-3 implementation.
string | $algorithm | The SHA-3 algorithm name. |
string|mixed | $password | The password to use for the derivation. |
string|mixed | $salt | The salt string to use during derivation. |
integer | $iterations | The number of internal iterations to perform for the derivation. |
integer | $keyLength | The length of the output derivation key string. |
boolean|integer|null | $rawOutput | Flag for using raw byte output instead of HEX. |
Validation errors.
The output derived key (output keying material).