You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

decrypt()#

Usage

decrypt(text)
decrypt(text, secret)

Description
Decrypts a base 64 encoded AES ciphertext and returns the decrypted result. This method either uses the internal global encryption key that is stored in structr.conf, or the optional second parameter.

Example

${set(this, 'decrypted', decrypt('example string'))}
${set(this, 'decrypted', decrypt('example string', 'secret key'))}

Search results for "decrypt()"

decrypt()

Decrypts a base 64 encoded AES ciphertext and returns the decrypted result. This method either uses the internal global encryption key that is stored in structr.conf, or the optional second parameter.

decrypt(text [, secret ] )