Reference > Functions reference > Container functions > CryptDecrypt


Decrypts container data with the specified key and returns text or container data.


CryptDecrypt ( container ; key )


container - container data returned by the CryptEncrypt function.

key - any text expression or field that contains the same key that was used to encrypt container.

Data type returned 

text, container

Originated in 

FileMaker Pro 16.0


This function accepts container data created by the CryptEncrypt function and the same key that was used to encrypt the data. The decrypted data is returned as the same type (text or container data) it was before encryption.

See FileMaker Security Guide.


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

Example 1 

Returns This needs protection, the text that was encrypted using CryptEncrypt with the same key.

CryptDecrypt (
CryptEncrypt ( "This needs protection" ; "My secret password" ) ;
"My secret password"

Related topics 

Functions reference (category list)

Functions reference (alphabetical list)

About formulas

About functions

Defining calculation fields

Using operators in formulas