Component: Hash 
----------------

Calculate hash value of text.

| Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|
| [2.7](newinversion27.md "First functions introduced with version 2.7.") / [16.0](newinversion160.md "Newest functions in version 16.0.") | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

  
| Item | Details |
|:--|:--|
| [Hash.CRC16](HashCRC16.md)   Calculates 16bit CRC value. | All   16.0 |
| [Hash.CRC32](HashCRC32.md)   Calculates 32bit CRC value. | All   8.3 |
| [Hash.Digest](HashDigest.md)   Calculates a hash of a value. | All   4.1 |
| [Hash.DigestFile](HashDigestFile.md)   Calculates a hash of a file. | All   9.2 |
| [Hash.MD5](HashMD5.md)   Calculated MD5 hash of given text. | All   2.7 |
| [Hash.MD5.HMAC](HashMD5HMAC.md)   Returns the a MD5 HMAC based on the key and the data string. | All   4.0 |
| [Hash.PBKDF2.HMAC](HashPBKDF2HMAC.md)   Returns the PBKDF2 hash value of the data, first applying the salt value and using the specified hashAlgorithm. | All   3.3 |
| [Hash.RandomHexString](HashRandomHexString.md)   Creates a random hex string. | All   3.3 |
| [Hash.RandomString](HashRandomString.md)   Creates a random string. | All   3.1 |
| [Hash.SHA1](HashSHA1.md)   Calculated SHA-1 hash of given text. | All   3.1 |
| [Hash.SHA1.HMAC](HashSHA1HMAC.md)   Returns the a SHA1 HMAC based on the key and the data string. | All   3.1 |
| [Hash.SHA256](HashSHA256.md)   Calculated SHA-256 hash of given text. | All   3.1 |
| [Hash.SHA256.HMAC](HashSHA256HMAC.md)   Returns the a SHA256 HMAC based on the key and the data string. | All   3.1 |
| [Hash.SHA512](HashSHA512.md)   Calculated SHA-512 hash of given text. | All   2.7 |
| [Hash.SHA512.HMAC](HashSHA512HMAC.md)   Returns the a SHA512 HMAC based on the key and the data string. | All   4.0 |

15 functions shown.

### Release notes

- **Version 16.1**
    - Improved [Hash.CRC16](https://www.mbsplugins.eu/HashCRC16.shtml) function to better handle some special variants.
    - Improved [Hash.Digest](https://www.mbsplugins.eu/HashDigest.shtml) and [Hash.DigestFile](https://www.mbsplugins.eu/HashDigestFile.shtml) functions to work with shake128 and shake256.
- **Version 16.0**
    - Added [Hash.CRC16](https://www.mbsplugins.eu/HashCRC16.shtml) function.
- **Version 15.5**
    - Fixed [ProgressDialog](https://www.mbsplugins.eu/component_ProgressDialog.shtml) functions to work better if you run [Hash.DigestFile](https://www.mbsplugins.eu/HashDigestFile.shtml) and click cancel.
- **Version 14.2**
    - Added parameter for [Hash.DigestFile](https://www.mbsplugins.eu/HashDigestFile.shtml) to update progress dialog.
- **Version 10.3**
    - Added Base64URL as output option for [RSA.Sign](https://www.mbsplugins.eu/RSASign.shtml), [CURL.ReceiveData](https://www.mbsplugins.eu/CURLReceiveData.shtml), [Files.ReadFile](https://www.mbsplugins.eu/FilesReadFile.shtml), [Hash.DigestFile](https://www.mbsplugins.eu/HashDigestFile.shtml), [Hash.Digest](https://www.mbsplugins.eu/HashDigest.shtml), [Encryption.Cipher](https://www.mbsplugins.eu/EncryptionCipher.shtml) and for other functions as text encoding parameter.
    - Added option for Base64URL encoding to [Hash.MD5](https://www.mbsplugins.eu/HashMD5.shtml), [Hash.MD5.HMAC](https://www.mbsplugins.eu/HashMD5HMAC.shtml), [Hash.SHA1](https://www.mbsplugins.eu/HashSHA1.shtml), [Hash.SHA1.HMAC](https://www.mbsplugins.eu/HashSHA1HMAC.shtml), [Hash.SHA256](https://www.mbsplugins.eu/HashSHA256.shtml), [Hash.SHA256.HMAC](https://www.mbsplugins.eu/HashSHA256HMAC.shtml), [Hash.SHA512](https://www.mbsplugins.eu/HashSHA512.shtml) and [Hash.SHA512.HMAC](https://www.mbsplugins.eu/HashSHA512HMAC.shtml) functions.
    - Added option to [Hash.PBKDF2.HMAC](https://www.mbsplugins.eu/HashPBKDF2HMAC.shtml) to pass digest names returned by [Encryption.DigestNames](https://www.mbsplugins.eu/EncryptionDigestNames.shtml) function, so SHA3 works.
- **Version 9.5**
    - Fixed crash in [Hash.Digest](http://www.mbsplugins.eu/HashDigest.shtml) function when passing invalid file path for file.
- **Version 9.2**
    - Added [Hash.DigestFile](http://www.mbsplugins.eu/HashDigestFile.shtml) function to calculate hashes of big files.
- **Version 8.3**
    - Added [Hash.CRC32](http://www.mbsplugins.eu/HashCRC32.shtml) function.
    - Improved randomness for [Hash.RandomString](http://www.mbsplugins.eu/HashRandomString.shtml) function.

### Blog Entries

- [Neues MBS FileMaker Plugin 9.4](https://www.mbsplugins.de/archive/2019-09-17/Neues_MBS_FileMaker_Plugin_94/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 6.0 for OS X/Windows](https://www.mbsplugins.de/archive/2016-01-28/MBS_FileMaker_Plugin_60_for_OS/monkeybreadsoftware_blog_filemaker)
- [FileMaker's native MD5 function](https://www.mbsplugins.de/archive/2014-05-06/FileMakers_native_MD5_function/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 4.0 for OS X/Windows - More than 2200 Functions In One Plugin](https://www.mbsplugins.de/archive/2014-02-04/MBS_FileMaker_Plugin_40_for_OS/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 3.2 for OS X/Windows](https://www.mbsplugins.de/archive/2013-05-07/MBS_FileMaker_Plugin_32_for_OS/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 1/2026, Seite 35](https://filemaker-magazin.de/neuigkeit/4312-Die-neue-Ausgabe-FMM_202601-steht-online)
- [Ausgabe 6/2015, Seite 29 bis 30](https://filemaker-magazin.de/neuigkeit/3855-Appetithappen-FMM_201506)
- [Ausgabe 4/2013, Seite 37](https://filemaker-magazin.de/neuigkeit/3679-Appetithappen-FMM_201304)

### Example Databases

- [CURL/Amazon S3/Amazon S3 Upload File](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/Amazon%20S3/Amazon%20S3%20Upload%20File.shtml#5ScriptAnchor_)
- [CURL/WebServices/Twitter oAuth](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/WebServices/Twitter%20oAuth.shtml#5ScriptAnchor_)
- [Encryption and Hash/AES with PHP/AES with PHP](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Encryption%20and%20Hash/AES%20with%20PHP/AES%20with%20PHP.shtml#1ScriptAnchor_)
- [Encryption and Hash/ECKey Test](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Encryption%20and%20Hash/ECKey%20Test.shtml#3ScriptAnchor_)
- [Encryption and Hash/Hash Digest](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Encryption%20and%20Hash/Hash%20Digest.shtml#1ScriptAnchor_)
- [Encryption and Hash/Hashes](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Encryption%20and%20Hash/Hashes.shtml#1292FieldAnchor_)
- [Encryption and Hash/Solution Registration/Solution Registration](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Encryption%20and%20Hash/Solution%20Registration/Solution%20Registration.shtml#1ScriptAnchor_)
- [SmartCard/Belgian EID Reader](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/SmartCard/Belgian%20EID%20Reader.shtml#14ScriptAnchor_)
- [SQL in FileMaker/Insert or Update Tests](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/SQL%20in%20FileMaker/Insert%20or%20Update%20Tests.shtml#12913FieldAnchor_)
- [Third Party/FileMaker Snippet Storage](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Third%20Party/FileMaker%20Snippet%20Storage.shtml#13CustomFunctionAnchor_)

[HTML Version](component_Hash.shtml)