PHP » GoLang |
login |
register |
about
|
hash_hkdf(PHP 7 >= 7.1.2) hash_hkdf — Generate a HKDF key derivation of a supplied key input Description
string hash_hkdf
( string
$algo
, string $ikm
[, int $length = 0
[, string $info = ''
[, string $salt = ''
]]] )Parameters
Return Values
Returns a string containing a raw binary representation of the derived key
(also known as output keying material - OKM); or Errors/Exceptions
An Examples
Example #1 hash_hkdf() example
<?php The above example produces a pair of separate keys, suitable for creation of an encrypt-then-HMAC construct, using AES-256 and SHA-256 for encryption and authentication respectively. See Also
|
more
Recently updated
more
Most requested
more
Last requests
|