PHP sha1() Function is used to generate the SHA-1 hash of a string. The sha1() function uses the US Secure Hash Algorithm 1.
Syntax :
sha1(string,binary) ;
Parameter Values,
string : Required. It takes a string as input.
binary : Optional. Specifies hex or binary output format.
TRUE - Raw 20 character binary format
FALSE - Default. 40 character hex number
Let's see below example to understand sha1() function.
Comments