Password script with the password not inclcued in script

liunx

Guest
i need a script that will not show a password within it, i would like it so when u view source it dont show the Passowrd ne were<!--content-->You can do so by encrypting the password within the source.<script type="text/javascript" src=http://www.webdeveloper.com/forum/archive/index.php/"http://pajhome.org.uk/crypt/md5/sha1.js"></script><br />
<script type="text/javascript"><br />
var input_password = prompt("Enter password", "");<br />
if (hex_sha1(input_password) == "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8")<br />
alert("Access granted");<br />
else<br />
alert("Access denied");<br />
</script>See <!-- m --><a class="postlink" href="http://pajhome.org.uk/crypt/md5/">http://pajhome.org.uk/crypt/md5/</a><!-- m --> for more details.<!--content-->Or Gatekeeper (<!-- m --><a class="postlink" href="http://www.pagetutor.com/keeper/">http://www.pagetutor.com/keeper/</a><!-- m -->)<!--content-->Or a server-side language.<!--content-->I agree with Pyro that a server-side language would be the best option, but if you want to go with a script like Gatekeeper I would recommend this one, which does not show 404 errors: <!-- m --><a class="postlink" href="http://www.codingforums.com/showthread.php?s=&threadid=10114">http://www.codingforums.com/showthread. ... adid=10114</a><!-- m --><br />
<br />
Alternatively, using a hashing function like Jeff suggested should be fine, though perhaps slightly harder to manage usernames/passwords for.<br />
<br />
Adam<!--content-->yea i got a script now that teh password is the page it takes you to, i tried the gatekeep but i dont really liek it . wjat is server side language<!--content-->Try doing a google search for that... You will find your answer. I was recommended PHP and it is a great help for your problem.<!--content-->
 
Back
Top