VFPEncryption FLL Update - SweetPotato Software Blog
VFPEncryption FLL Update - SweetPotato Software Blog
IMPORTANT:
The functions within this FLL have changed. Please refer to the latest
documention for the VFP Encryption FLL that can be found at the
following link:
Major VFP Encryption Update
Function HASHFILE()
Signature: HashFile(cFileName[, nHashType])
Parameters:
cFileName – The fullpath and name of an existing file you wish to generate a message digest for
nHashType – The type of hash function to generate. There are currently 7 different hash functions
supported
1 = SHA1 (a.k.a SHA160)
2 = SHA256
3 = SHA384
4 = SHA512 *Default
5 = MD5
6 = RIPEMD128
7 = RIPEMD256
Return Value:
Binary Character Data – the hash for cFileName.
Remarks:
www.sweetpotatosoftware.com/blog/index.php/2006/02/23/vfpencryption-fll-update/ 1/2
24/5/2019 VFPEncryption FLL Update – SweetPotato Software Blog
The hash is returned as a series of binary characters. However, it is more common to see hashes in a
hexBinary format. This can be accomplished in Visual FoxPro by taking the return of the HashFile()
function and sending it in as a parameter to the STRCONV() function. For example:
?STRCONV(HashFile(“C:\MyFile.txt”), 15) && hexBinary Hash
← Previous Post
www.sweetpotatosoftware.com/blog/index.php/2006/02/23/vfpencryption-fll-update/ 2/2