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 version 

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.

See FileMaker Security Guide.

Example 1 

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

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