Encr_EncodeBase64 |
Encodes a text to Base64 encoding. The result can be sent safely over internet without any characters being changed. This function formats the output so that it is better readable for email.
Syntax
Encr_EncodeBase64 ( switches ; text )
Parameters
switches | reserved for future use, leave empty or set to "-Unused" |
text | text to encode |
Returned Result
Data type returned
Text
Result
The result will be formatted in base64.
Originated in
Troi Encryptor Plug-in 2.0
Compatibility
FileMaker Pro 16 to FileMaker Pro 2023
Considerations
You can decode it with: “Encr_DecodeBase64”.
base64 can be about 4/3 as big as the original.
From Wikipedia, the free encyclopedia:
…base64 is a data encoding scheme whereby binary-encoded data is converted to printable ASCII characters. It is defined as a MIME content transfer encoding for use in internet e-mail. The only characters used are the upper- and lower-case Roman alphabet characters (A-Z, a-z), the numerals (0-9), and the “+” and “/” symbols, with the “=” symbol as a special suffix code. More information on Wikipedia here.
Example
Set Field [ result ; Encr_EncodeBase64 ( "-Unused" ; "Here is a bit of example text.
• Don’t forget to have fun, Günther and Børg!" ) ]
gives this result:
SGVyZSBpcyBhIGJpdCBvZiBleGFtcGxlIHRleHQuIKUgRG9u1XQgZm9yZ2V0IHRv
IGhhdmUgZnVuLCBHn250aGVyIGFuZCBCv3JnISA=
Used in example file
Base64.fmp12
Related function
Encr_DecodeBase64 |
Related topics
Troi Encryptor Plug-in online help (overview)