Jamesking56 Posted April 14, 2010 Share Posted April 14, 2010 Hey!I am trying to make a clients panel using PHP....I have a variable which can make it go offline for maintenance and show a splash screen with a notice and an Admin Override button.Now, when I press the admin override button it pops up with javascript prompt box asking for secret key.How can I make a secret key that won't be revealed in the View Source of the page? Is there a way I can make it not hackable?Any suggestions? I did think about MD5 Encryption but javascript can't do that apparently? Link to comment Share on other sites More sharing options...
knystrom18 Posted April 14, 2010 Share Posted April 14, 2010 PHP include? Link to comment Share on other sites More sharing options...
jeffman Posted April 14, 2010 Share Posted April 14, 2010 You can get an MD5 algorithm by Googling it. But it doesn't matter. There is NOTHING you can do in JavaScript that can't be hacked in some way. It's very easy to open the source and change it to suit. Link to comment Share on other sites More sharing options...
ShadowMage Posted April 14, 2010 Share Posted April 14, 2010 Is the Admin Panel generated in PHP? If it is you can just store your 'secret key' in the code for the Admin Panel and compare it with the one that was submitted with the JavaScript. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.