Skip to content

Instantly share code, notes, and snippets.

@caramelchocolate
Created February 26, 2019 15:17
Show Gist options
  • Save caramelchocolate/ede1936c9c0eb8a92e4ebb35b0a3e184 to your computer and use it in GitHub Desktop.
Save caramelchocolate/ede1936c9c0eb8a92e4ebb35b0a3e184 to your computer and use it in GitHub Desktop.
ascii code hash list
<?php
for ($i=0; $i<256; $i++) {
$hex = sprintf('%02s', dechex($i));
$bin = pack('H*', $hex);
echo '0x'.$hex . ' ' . md5($bin) . PHP_EOL;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment