Tool that returns sha1() of any input

Just like the md5 PHP function, sha1 is also used for cryptographic purposes however with a result that consists of 40 character hexadecimal number (or 20 if result is given in a raw binary format). Raw binary format of output is turned on by adding ,TRUE into the function as can be seen below.

sha1 is a PHP function that calculates the sha1 hash of given input using the US Secure Hash Algorithm 1.

 

Code example

<?php //return and echo sha1 hash values - standard one and raw one $str[] = "type your string here"; echo "Output is: ".sha1($str[0]); //a6963c5f3a6c92b12e1667d76b84e206ddb56cb9 $raw_value = sha1($str[0],TRUE); ?>

Other tools & help

If you need help with PHP scripting, Apache setup and server-related situations, drop me a line. You’re also welcome to visit other tools - they’re listed below.