Click to See Complete Forum and Search --> : Password Protection


xdigitalxrainx
11-19-2003, 12:25 PM
Does anyone know how i could password protect a page without the pasword showing on the script...so if people view the source they won't see the password...I have disabled right click on my page but you can still view the source threw the browser..any ideas let me know thanx..

pyro
11-19-2003, 12:41 PM
Use a server-side language.

TheBearMay
11-19-2003, 01:56 PM
Pyro is right, server side, but short of that (and it won't stop a determined hacker, just a casual user) you can always code an encryption routine and check against the encrypted value. To make it more difficult (but again not impossible) you can put it into an external JS file, use frames to hide the source, etc.

Jeff Mott
11-19-2003, 09:42 PM
it won't stop a determined hacker, just a casual user, you can always code an encryption routine and check against the encrypted valueIf you use a strong one-way algorithm, such as SHA-1 or MD5, then it is, practically speaking, impossible to break--casual users and hackers alike.you can put it into an external JS file, use frames to hide the sourceThese methods, however, are useless. As is blocking the right click menu. In addition, blocking the right click menu aggrevates users, so don't do it.