Encrypt - Documentation topics on: deprecated,email,encrypt,macros,strings,.

Encrypt
Deprecated

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

This macro allows to encrypt a string. The encryted value can be used in email forms to avoid having email address in plain text. The encrypted value is saved in the variable: $encryptedStr. If you want to echo out the decrypted value use: $crypt.crypt('string to encrypt').

Macro Overview:

Syntax:

#encrypt('string to encrypt')

Arguments:

  • string to encrypt
    This is the string that will be encrypted.

Enter Macro Arguments Here


Optional Parameters:


Usage:


Examples:

Example 1: A simple example using the required fields

#encrypt('website@dotcms.org')
#set ($to = $encryptedStr)