Last Updated: Jul 27, 2021
documentation for the dotCMS Content Management System

Important: This feature has been deprecated, and may no longer be supported in future dotCMS versions.

We strongly recommended that all new implementations, and all existing implementations which rely on this macro use the Crypt Viewtool instead.

This macro allows you to decrypt a string that was encrypted with #encrypt. The decrypted value is saved in the variable: $decryptedStr. If you want to echo out the decrypted value use: $crypt.decrypt('string to decrypt').

Macro Overview:


#decrypt('string to decrypt')


  • string to decrypt
    This is the string that will be decrypted.

Optional Parameters:



Example 1: A simple example using the required fields

This is the decrypted value = $decryptedStr

On this page


We Dig Feedback

Selected excerpt: