Store encrypted strings in the database

Structr supports encrypted string properties via the Encrypted property type, using AES.

You can either set a global encryption key using application.encryption.secretin structr.conf, use the built-in function set_encryption_key() to set the encryption key for each read / write operation, or use the built-in functions encrypt() and decrypt() to encrypt and decrypt strings manually.

About this article
Last change 2019-04-23
Topics