sha1 · PHP Function to Calculate SHA1 of a String

Back to the Live Example
Since PHP 4.3.0 sha1 function has been built in. The signature of the function is:
string sha1 ( string $str [, bool $raw_output = false ] )
Read more about sha1 function on PHP.net.
nichabi.com