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.

set_encryption_key()

Usage

set_encryption_key(secret)

Description
Sets the internal global encryption key that is used by the encrypt() and decrypt() functions. Please note that this method overwrites the encryption key that is stored in structr.conf. The overwritten key can be restored by using null as a parameter to this method, as shown in the example below

Example

${set_encryption_key('secret key')}
${set_encryption_key(null)}

Search results for "set_encryption_key()"

set_encryption_key()

Sets the internal global encryption key that is used by the encrypt() and decrypt() functions. Please note that this method overwrites the encryption key that is stored in structr.conf. The overwritten key can be restored by using null as a parameter to this method, as shown in the example below

set_encryption_key(secret)