sha1(str)
Returns the SHA1 hash of a string.
sha1_file(filename)
Returns the SHA1 hash of a file specified by its fullpath and/or filename.