*-- Get the hash of the data with cryptPKI local lcHash as Character, lnKeyLen as Integer declare long HASH_HexFromFile in diCrPKI.dll string sHexDigest, ; long nLenHex, ; string stringFile, ; long nOptions lcHash = space(40) lnKeyLen = HASH_HexFromFile(lcHash, 40, 'myFile.txt', 0) ? 'cryptPKI', lnKeyLen, lcHashThe function HASH_HexFromFile reads the file, and puts the hash into lcHash. 40 is the size of the SHA1 hash, and the last parameter (zero) is the hash method, SHA1 in this case.