1,105,380 Community Members

Html5 storage

Member Avatar
techyworld
Posting Whiz in Training
242 posts since Sep 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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?

Member Avatar
stbuchok
Posting Shark
957 posts since May 2011
Reputation Points: 123 [?]
Q&As Helped to Solve: 142 [?]
Skill Endorsements: 2 [?]
 
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.

Member Avatar
techyworld
Posting Whiz in Training
242 posts since Sep 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

What u mean by server side?

Member Avatar
JorgeM
IT Addict
6,404 posts since Dec 2011
Reputation Points: 581 [?]
Q&As Helped to Solve: 958 [?]
Skill Endorsements: 172 [?]
Moderator
Featured
Sponsor
 
0
 

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

Member Avatar
techyworld
Posting Whiz in Training
242 posts since Sep 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article