Storing passwords in HTML5 LocalStorage

I need to store passwords in HTML5 LocalStorage (No, I cannot use hashes, and I cannot ask the user to enter his password).

What is the safest way to do this? I understand that this can never be really safe, but I just try to protect as best as possible.

Can you do encryption in JavaScript? If so, what is the best encryption algorithm for this task?

Thank.

+5
source share

All Articles