, hash_hmac true. , Chris Javascript.
, :
$sign = hash_hmac('sha512', $post_data, $secret);
, nodejs:
const crypto = require("crypto");
function signHmacSha512(key, str) {
let hmac = crypto.createHmac("sha512", key);
let signed = hmac.update(Buffer.from(str, 'utf-8')).digest("hex");
return signed
}
, hash_hmac ( , true), , PHP :
TRUE . FALSE .
node.js, digest('hex'), .