Reference > Functions reference > Container functions > CryptDecrypt
 

CryptDecrypt

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

Format 

CryptDecrypt(container;key)

Parameters 

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

Description 

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.

Notes 

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