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