Hi, I'm coding a game, i have a form to create player. I use html5 storage to create this. But the problem is if you go to tools>local storage, the password is visible. I want to implement some sort of security to hide this password in javascript. Can someone tell me which security algorithm is better to implement?

It's JavaScript. You could write an algorithm that encrypts the password, but then the algorithm is visible meaning you can still (eventually) get the password, not to mention, you'd have to implement something to decrypt it, which becuase it's javascript, I would be able to use.

Don't bother trying to do this. If you want it to be more secure, use server side.

This article has been dead for over six months. Start a new discussion instead.