Reference > Functions reference > Container functions > CryptEncryptBase64


Encrypts data with the specified key and returns text in Base64 format.


CryptEncryptBase64 ( data ; key )


data - any text expression or field to encrypt.

key - any text expression or field as the key to encrypt data with.

Data type returned 


Originated in 

FileMaker Pro 16.0


Use the CryptEncryptBase64 and CryptDecryptBase64 functions to encrypt and decrypt field data.

This function works the same as the CryptEncrypt function, except that it returns encrypted data as Base64-encoded text following the RFC 4648 standard.


Encoding binary data as Base64-encoded text increases its size by one third.

This function is not supported in runtime solutions and returns "?".

Example 1 

Returns encrypted data as text that can begin with YdJuEZueje5ybjg903wuVFYAOLy.

CryptEncryptBase64 ( "This needs protection" ; "My secret password" )

Related topics 

Functions reference (category list)

Functions reference (alphabetical list)

About formulas

About functions

Defining calculation fields

Using operators in formulas