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?

Recommended Answers

All 4 Replies

Member Avatar for stbuchok

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.

What u mean by server side?

the reference to server-side is to a language such as PHP, ASP.NET, JAVA, etc...

ok can you tell me more how to do it with php?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.