Mac OS X
Components Crossplatform Mac & Win Server (Not) Client Old Guides Examples
New in version: 6.5 7.0 7.1 7.2 7.3 7.4 7.5 8.0 8.1 8.2 Statistic
Calculated SHA-256 hash of given text.
|Component||Version||macOS||Windows||Server||FileMaker Cloud||FileMaker iOS SDK|
|text||The text to process.||"Hello World"|
Various flags you can combine by addition.
Pass 1 for getting result Base64 encoded instead of Hex encoded.
Pass 2 if input data is Hex encoded and plugin should decode it first.
Returns SHA-256 hash.
DescriptionCalculated SHA-256 hash of given text.
Text is converted to UTF-8 to make sure the text encoding doesn't change the hash value.
Hashes are used to store a fingerprint of some data. When hashes are not equal, the data is probably also not equal.
This function is good to make hashes for passwords. You don't save the password in your database, but only the hash. On login, you calculate the hash for the password entered by the user and compare the hash with the stored one. This way the database only contains hashes. And it's unlikely someone finds the password given the hash, except for easy cases like "hello" where google will tell you the text for the hash.
To make hashes more secure, use a prefix/suffix like the user id or simply your application name. This way even hello as a password will be quite impossible to recover from the hash.
SHA-256 is stronger than SHA-1.
Calculate hash of password:
Calculate empty text hash:
FileMaker 16 vs. Plugin:
Feedback: Report problem or ask question.
MBS FileMaker blog