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.
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.
Leave a Reply
Your email address will not be published. Required fields are marked *