We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,301 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Html5 storage

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?

4
Contributors
4
Replies
3 Days
Discussion Span
4 Months Ago
Last Updated
5
Views
techyworld
Posting Whiz in Training
200 posts since Sep 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

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.

stbuchok
Practically a Posting Shark
876 posts since May 2011
Reputation Points: 138
Solved Threads: 124
Skill Endorsements: 2

What u mean by server side?

techyworld
Posting Whiz in Training
200 posts since Sep 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

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

JorgeM
Industrious Poster
4,023 posts since Dec 2011
Reputation Points: 297
Solved Threads: 549
Skill Endorsements: 115

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

techyworld
Posting Whiz in Training
200 posts since Sep 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.3181 seconds using 2.69MB