sha1file . crypto . sncode
latest
Calculate the sha1 hash of a file.
SHA1FILE(1e)
NAME
sha1file - Calculates the sha1 (secure hash algorithm) of a file.
SYNOPSIS
sha1file(str,error)
PARAMETERS
- str
- File path.
- error
- Triggers the error if the file does not exists.
RETURN
- Returns the hash as a 40-character hexadecimal number.
EXAMPLES
Note: In the followings examples, the _ between the { should be removed to make it work.
in: res=<{sha1file("",false)}>. out: res=da39a3ee5e6b4b0d3255bfef95601890afd80709.
AUTHOR
Written by Pusnei Sergey and Caroline Laplante, <sergey@sednove.com>