I was thinking of creating a web application that would allow people to enter text (using an SSL connection), and it would be encrypted before saving to the database. The goal would be to have it so that only users can decrypt it.
You could enter users along with their data and enter them again when they want to see the data, rather than save the key. However, this would be painful for the user.
However, if you saved the key on the server, you would have access to it and could decrypt their data.
I don’t think it’s possible to do this even if the user does not enter the key every time or doesn’t save the key, but is there some way that I don’t think about? How, perhaps, to generate a key to information that only a user knows? Something like cookies?
source share