How can I generate a HmacSHA256 signature of a string
hmac, php
Solution
Use `hash_hmac`:
$sig = hash_hmac('sha256', $string, $secret);
Where `$secret` is your key.
Problem
Is there any way to create a HmacSHA256 signature of a string in php?
hmac, php
Use `hash_hmac`:
$sig = hash_hmac('sha256', $string, $secret);
Where `$secret` is your key.
Is there any way to create a HmacSHA256 signature of a string in php?