';
echo ': ';
echo '';
echo ' ';
echo '';
echo '';
echo ' ';
echo '';
echo '';
echo ' ';
echo '';
echo '';
echo ' ';
echo '';
echo '';
echo ' ';
echo '';
echo '';
echo ' ';
/* To add a new hash type, simply copy the following code and replace
* the values enclosed in () by following this list:
* ID : the ID you will use to reference the hash type
* NAME : the name of the hash you whish to add.
echo '';
echo '';
echo ' ';
*/
echo '';
echo '';
echo '';
exit;
}
echo 'Plain text: ' . $_GET['what'] . ' ';
/* To add a new hash type, first copy the following code and replace
* the values enclosed in () by following this list:
* ID : the same ID used in the other part to reference the hash type
* NAME : the name of the hash
case (ID):
echo '(NAME): ' . hash("(NAME)", $_GET['what']) . ' ';
break;
* finally, add the following line at the //HERE marker still using the
* list displayed earlier.
echo '(NAME): ' . hash("(NAME)", $_GET['what']) . ' ';
*/
switch($_GET['type']) {
case 1:
echo 'ripemd160: ' . hash("ripemd160", $_GET['what']) . ' ';
break;
case 2:
echo 'SHA256: ' . hash("sha256", $_GET['what']) . ' ';
break;
case 3:
echo 'SHA512: ' . hash("sha512", $_GET['what']) . ' ';
break;
case 4:
echo 'MD5: ' . hash("md5", $_GET['what']) . ' ';
break;
case 'all':
default:
echo 'ripemd160: ' . hash("ripemd160", $_GET['what']) . ' ';
echo 'SHA256: ' . hash("sha256", $_GET['what']) . ' ';
echo 'SHA512: ' . hash("sha512", $_GET['what']) . ' ';
echo 'MD5: ' . hash("md5", $_GET['what']) . ' ';
//HERE
break;
}
echo ' Start Again';
?>