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 version 



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.

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"