How can I store that use data encrypted on database & in local storage, so that only user can see/modify/delete it?


#1

I am creating a website, where I want to store user data in encrypted form, which can be accessible by only user.

Thanks in advance.


#2

The most basic way would be to use their password to encrypt / decrypt their data using symmetric cryptography. That’s pretty much how LastPass does it.


#3

Thanks for help. I will try this.


#4

Are you talking about user data e.g. passwords?


#5

Not only password but all user data.