SHA1FileFingerprint()

Syntax

Result$ = SHA1FileFingerprint(Filename$ [, Offset [, Length]])
Description
Returns a 40 characters long SHA1 (Secure Hash Algorithm 1) hash code for the specified file.

Parameters

FileName$ The file of which the fingerprint should be calculated.
Offset (optional) The offset (in bytes) from the start of the file to begin the hash calculation.
Length (optional) The length (in bytes) to use for the hash calculation.

Return value

Returns the hash code if the calculation was successful. If the file isn't found or an error has happened, the result will be empty.

Remarks

See SHA1Fingerprint() for more information on the SHA1 algorithm.

See Also

SHA1Fingerprint(), ExamineSHA1Fingerprint(), MD5FileFingerprint(), CRC32FileFingerprint()

Supported OS

All

<- OpenCryptRandom() - Cipher Index - SHA1Fingerprint() ->