troubleshooting Question

Encrypt/decrypt text php/Mysql

Avatar of mazzzzz
mazzzzzFlag for United States of America asked on
4 Comments1 Solution407 ViewsLast Modified:
I need a way to store sensitive data in a database, and be able to decrypt it later.  I can't think of a solution, nothing like base64 would do it, even with a salt, I can't use a one-way hash, because I need to view the data later.
The site is designed so the user to logs in, then they have access to the data, but with symmetric encryption, the user would need to input a password every time he/she wanted to view data, or have the password stored in a session/cookie, but that seems a little too insecure.  Something like RSA might work, but where would I store the private key?
Any ideas on how to store this data would be great,

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros