Calculates the sha1 hash of $str using the « US Secure Hash Algorithm 1 ».

declaration of sha1

string sha1 ( string $str )

test sha1 online

share sha1

comments for sha1

On 02. Feb 2015 09:33 nineoclick wrote:

Should be added the "raw_output" bool param second argument, to return the output in binary format 20 char length.

On 28. Jun 2012 04:08 bugefun wrote:

I agree with cbix. You should be able to find the hash of hex.

On 29. Dec 2011 13:48 cbix wrote:

Entity decoding would be nice so i could generate hash for series of bytes, e.g.    

more comments for sha1

There are some more comments for sha1(). To see them all click here.


Leave your comment