2.4.1.3. PHP
function
computeHmacSha512
($plainText, $secretKey) {
$
hash
=
hash_hmac
(
"sha512"
, $
plainText
, $
secretKey
,
true
);
return
base64_encode
($
hash
);
}