...

View Full Version : hide password in the source code



velious
10-14-2003, 05: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?

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

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

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

Jeff Mott
10-14-2003, 06: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).

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum