Reference > Functions reference > Container functions > CryptEncryptBase64
 

CryptEncryptBase64

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

Format 

CryptEncryptBase64 ( data ; key )

Parameters 

data - any text expression or field to encrypt.

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

Data type returned 

text

Originated in 

FileMaker Pro 16.0

Description 

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.

Notes 

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