Skip to content

Instantly share code, notes, and snippets.

@peteroome
Created October 14, 2012 17:03
Show Gist options
  • Save peteroome/3889182 to your computer and use it in GitHub Desktop.
Save peteroome/3889182 to your computer and use it in GitHub Desktop.
Sha2 Example Test
case 'sha2':
if (hmac_hash("sha512", $pass, $saltFromDatabase) === $hashFromDatabase))
{
$retval = 1;
}
break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment