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


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.


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.


Thanks for help. I will try this.


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


Not only password but all user data.