storing and using sensitive data
| From: | Rene Veerman | Date: | Thu, 05 Aug 2021 16:30:20 +0000 |
| Subject: | storing and using sensitive data | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-327596@lists.php.net to get a copy of this message | ||
Hi.
I'm building a webmail module for my MIT-licensed
https://github.com/nicerapp/nicerapp websites
platform (CMS and more, see
https://nicer.app for a demo).
I don't want to store end-user's email connection settings in plain text on
my server.
I've read all of https://github.com/defuse/php-encryption,
understand most
of it, but wonder if I can just encrypt the data using the end-user's
password, which gets verified by couchdb and as such is only stored as a
hash value in the database.
Will my SSL connection setup, and the password stored in a cookie in the
end-user's browser, keep things safe enough to survive a PHP/apache-based
intrusion, which tends to open up every 2 years when the guys at ubuntu.com
prepare for a new release..
With regards,
Rene Veerman