View Full Version : hide password in the source code

10-14-2003, 06:24 PM
I am trying to make just a simple page that asks for a password before taking the user to the site... the script I am using is a script I found on this site, and It works great however all someone has to do is look in the source code for the password...it kinda defeats the purpose..any suggestions?

10-14-2003, 06:35 PM
You could do this:

Make the javascript a .js file and call it like so

<script language="javascript" src="thescript.js">

Jeff Mott
10-14-2003, 07:29 PM
You could instead encrypt the password with SHA-1 or MD5 (see http://pajhome.org.uk/crypt/md5/ for JavaScript libraries of these functions).

10-14-2003, 09:59 PM
thank you!:)