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'))}

Graph-Browser

About this article
Last change 2019-04-18
Topics