Reference > Functions reference > Container functions > CryptEncrypt


Encrypts data with the specified key and returns container data.


CryptEncrypt ( 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 CryptEncrypt and CryptDecrypt functions to encrypt and decrypt field data. CryptEncrypt accepts text or container data and returns container data as a binary file named

See FileMaker Security Guide.


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

Example 1 

Returns container data in a file named

CryptEncrypt ( "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