Skip to content

Instantly share code, notes, and snippets.

@sharifbdp
Last active May 10, 2016 09:15
Show Gist options
  • Save sharifbdp/d1217a963a24ff0804f61a5ad6e00f41 to your computer and use it in GitHub Desktop.
Save sharifbdp/d1217a963a24ff0804f61a5ad6e00f41 to your computer and use it in GitHub Desktop.
$string_to_sign = 'ASASASASASASA';
$password = '123456';
$signature = base64_encode(hash_hmac("sha256", $string_to_sign, $password, True));
echo($signature);
#https://vagrantcloud.com/ubuntu/boxes/trusty64/versions/14.04/providers/virtualbox.box
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment