Components Crossplatform Mac & Win Server Client Old Deprecated Guides Examples Videos
New in version: 10.1 10.2 10.3 10.4 10.5 11.0 11.1 11.2 11.3 11.4 Statistic FMM Blog
Calculates a hash of a file.
|Hash||9.2||✅ Yes||✅ Yes||✅ Yes||✅ Yes||✅ Yes|
|Algorithm||Which algorithm to use.
Can be MD4, MD5, SHA, SHA1, MDC2, RIPEMD160, SHA224, SHA256, SHA384 or SHA512.
|FilePath||The native file path to use.||"C:\test.dat"|
|OutputType||The output type.
Can be Base64, Hex, Text, File, Path.
Added Base64URL as option for plugin version 10.3.
|OutputInfo||The addition info for output.
For text it is the text encoding, for file container the file name and for path the actual native file path.
Returns OK or error.
DescriptionCalculates a hash of a file.
This function is optimized to process files on disk in chunks, so it works well for several GB of file sizes.
For output we can return the digest in various ways:
- Base64, the hash is returned as base64 encoded text.
- Hex, the hash is returned as hex encoded text.
Possible digest engines:
DSA-SHA, DSA, MD5, MDC2, RIPEMD160, SHA, SHA1, SHA224, SHA256, SHA384 or SHA512.
This function requires a native path. Use Path.FileMakerPathToNativePath to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use FileDialog functions.
For Server be aware that server has limited permissions and may not be able to access all files on a computer.
Create MD5 of file:
Hash a file with newer or older way:
- Version 10.3
- Version 9.2
- Added Hash.DigestFile function to calculate hashes of big files.
- Combined Components with MBS FileMaker Plugin
- MBS FileMaker Plugin, version 10.3pr1
- MBS FileMaker Plugin, version 9.2pr3
Created 12nd April 2019, last changed 11st March 2021
Feedback: Report problem or ask question.
MBS FileMaker blog