Mac OS X
Components Crossplatform Mac & Win Server Client Old Guides Examples
New in version: 7.3 7.4 7.5 8.0 8.1 8.2 8.3 8.4 8.5 8.6 Statistic
Calculates a hash of a value.
|Component||Version||macOS||Windows||Server||FileMaker Cloud||FileMaker iOS SDK|
|Algorithm||Which algorithm to use.
Can be MD4, MD5, SHA, SHA1, MDC2, RIPEMD160, SHA224, SHA256, SHA384 or SHA512.
|InputType||The type of input.
Can be Text, Container, Image, Path, PDF, Data, base64 or Hex.
|InputData||The actual input data.
Text, container or file path.
|InputEncoding||The text encoding for text input.
Parameter is ignored for other cases.
Possible encoding names: ANSI, Arabic-Mac, Arabic-Win, Baltic-Win, CentralEurope-Mac, ChineseSimp-Mac, ChineseSimp-Win, ChineseTrad-Mac, ChineseTrad-Win, Cyrillic-Mac, Cyrillic-Win, EasternEurope-Win, Greek-Mac, Greek-Win, Hebrew-Mac, Hebrew-Win, ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-15, Korean-Johab, Korean-Mac, Korean-Win, Latin1, Mac, Native, ShiftJIS-Mac, ShiftJIS-Win, Turkish-Mac, Turkish-Win, UTF-8, DOS or Windows. Pass native to use the native encoding of the current platform.
|OutputType||The output type.
Can be Base64, Hex, Text, File, Path.
|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 error or hash.
DescriptionCalculates a hash of a value.
Input can be one of different types:
- Text, you pass "text", your text and the text encoding. If no or invalid encoding name is passed, the native one is used. The encoding can be one of the following strings: ansi, windows, mac, latin1, utf8, dos or native.
- PDF, you pass the container with the PDF file inside.
- Image, you pass the container with an image file (JPEG, GIF, TIFF, PNG, PICT).
- Data, you pass container and plugin looks for the file data inside.
- Hex, you pass a hex encoded text.
- Base64, you pass a base64 encoded text.
- Path, you pass the file path to a file to read.
- Container, you pass a container which is packed with all its content.
- Text, we return the hash as text in the encoding. This is not recommended for hash values. OutputInfo parameter is text encoding.
- Base64, the hash is returned as base64 encoded text.
- Hex, the hash is returned as hex encoded text.
- File, the hash is returned as a container value with a file inside containing the hash. OutputInfo parameter is the filename to be stored in the container value.
- Path, the hash is written to a file. In the OutputInfo parameter you provide a native file path.
- JPEG, a container with a JPEG image.
- GIF, a container with a GIF image.
- TIFF, a container with a TIFF image.
- PNG, a container with a PNG image.
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.
Calculate MD5 from text:
Calculate SHA512 from image in container and encode it as base64:
Hash of PDF in container:
Hash a file with MD5:
Stream file to AWS:
- Encryption and Hash/Hash Digest
- Encryption and Hash/AES with PHP/AES with PHP
- CURL/Amazon S3 Upload File
- Third Party/FileMaker Snippet Storage
- AES in FileMaker and PHP
- New universal Hash and Encrypt functions for MBS FileMaker Plugin
- MBS Filemaker Plugin, version 4.1pr2
Created 18th August 2014, last changed 1st September 2017
Feedback: Report problem or ask question.
MBS Xojo Plugins