Open ximex opened 8 years ago
I saw we store the SMTP password in cleartext. We really should implement this. The master key for the en/decryption should get defined in config.php with a secure-random generated string
This should be the right PHP lib: https://github.com/defuse/php-encryption Required PHP 5.4+
http://fluuux.de/2014/10/wie-man-sensible-daten-einer-datenbank-speichert-aes_encrypt/ MySQL: https://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html#function_aes-decrypt PostgresSQL: http://www.postgresql.org/docs/current/static/pgcrypto.html (F.25.4. Raw Encryption Functions)