PHP sha1_file() Function is used to generate the SHA-1 hash of a file. The sha1_file() function uses the US Secure Hash Algorithm 1.
Syntax :
sha1_file(file,binary) ;
Parameter Values,
file: Required. It takes a file 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_file() function.
Comments