- hash_hmac: documentation ( source)
- hash: documentation ( source)
- rawurlencode: documentation ( source)
- base64_encode: documentation ( source)
<?php
$s = hash_hmac('sha512', 'BulletBillPop_Mac', '09021520C5B142B9B124B79AFBD05F7F', true);
$h = hash('sha512', 'BulletBillPop_Mac', true).digest();
echo $h;
echo '-----';
echo base64_encode('BulletBillPop_Mac:' . $s);
echo '-----';
echo rawurlencode( base64_encode('BulletBillPop_Mac:' . $s));