Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Hash.PBKDF2.HMAC
Returns the PBKDF2 hash value of the data, first applying the salt value and using the specified hashAlgorithm.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Hash | 3.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Hash.PBKDF2.HMAC"; salt; password; iterations; desiredHashLength; hashAlgorithm { ; Flags } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
salt | The key text to use. | "Hello" | |
password | The data text to use. | "World" | |
iterations | Number of loops that the hash algorithm does. | 100 | |
desiredHashLength | Number of bytes that you want the resulting hash to be. 16 or 32 bytes are commonly used. | 32 | |
hashAlgorithm | The hash algorithm. Can be MD5, SHA1, SHA256 or SHA512. | "MD5" | |
Flags | Various flags you can combine by addition. Pass 1 for getting result Base64 encoded instead of Hex encoded. Pass 2 if salt is Hex encoded and plugin should decode it first. Pass 4 if password is hex encoded and plugin should decode it first. |
0 | Optional |
Result
Returns the hash or error.
Description
Returns the PBKDF2 hash value of the data, first applying the salt value and using the specified hashAlgorithm.Same as Crypto.PBKDF2 in Xojo (Real Studio):
http://docs.realsoftware.com/index.php/Crypto.PBKDF2
Examples
Calculate password hash:
MBS( "Hash.PBKDF2.HMAC"; "Hello"; "World"; 100; 32; "SHA512")
Example result: 2CFDC277C8B84693B85E18D5A0176249EF29B74DFFDF2EE6826636F5ACBF70D0
Use SHA-3 here:
MBS( "Hash.PBKDF2.HMAC"; "Hello"; "World"; 100; 32; "RSA-SHA3-256")
Release notes
- Version 10.3
- Added option to Hash.PBKDF2.HMAC to pass digest names returned by Encryption.DigestNames function, so SHA3 works.
Blog Entries
- MBS FileMaker Plugin, version 10.3pr5
- Comparing Base Elements Plugin to MBS FileMaker Plugin
- MBS FileMaker Plugin, version 6.0pr7
- MBS FileMaker Plugin 3.3 for OS X/Windows - More than 1600 Functions In One Plugin
- MBS Filemaker Plugin, version 3.3pr1
FileMaker Magazin
This function checks for a license.
Created 18th August 2014, last changed 19th June 2020