Location: Symbol Reference > Functions > JwCreateFileHash Function
JWSCL Documentation
JwCreateFileHash Function
function JwCreateFileHash(const FilePath: WideString): TJwFileHashData;
const FilePath: WideString 
Defines a path to a file that is used to calculate a hash.  

The return value is a record that holds the hash data. The returned pointer member "hash" in TJwFileHashData must be freed by TJwHash.FreeBuffer (unit JwsclCryptProvider.pas). 

raise EJwsclFileMappingException see TJwFileStreamEx.Create for more information. EJwsclSecurityException There can be other exceptions raised by TJwHash.Create, TJwHash.HashData and TJwHash.RetrieveHash.

JwCreateFileHash creates a hash from a given file and returns the hash. 


  • This function uses TJwFileStreamEx for getting hash in the fastest way possible.
  • This function uses SHA hashing.

Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!