Since my question was getting more views than I expected, I decided to answer it to help others with the same problem. I found the equivalent for it in PHP.
use Digest::SHA qw(hmac_sha256_hex); $digest=hmac_sha256_hex($all, $secret);
Hope this helps.
Pavan
source share