View Single Post
Old 11-19-2002, 07:51 PM   PM User | #1
Borgtex
Regular Coder

 
Join Date: Aug 2002
Location: Spain
Posts: 420
Thanks: 0
Thanked 0 Times in 0 Posts
Borgtex is an unknown quantity at this point
Secure Login with javascript

Here is my "total secure login" script. Description of the contents:

login.htm: First page. It asks login and password, combines it (Login+Password) and sends it to the next page

auth.htm: checks for the existence of a Login+Password.js if yes (authorized user), it reads the private url and opens it, if not, it goes back to the first page, wich shows an error message

CodingForums.js: a Login+Password.js sample. You can have as many users as you want; one .js for every one (i.e. Login: Neo, Pwd: Matrix =NeoMatrix.js). Blocking an user access is as easy as deleting his .js file

page.htm:a sample destination page

PasswordHelper.vbs: a nice script that creates the js files

Of course, server side programming is much better if you have sensitive data to protect

Edited: Due the popularity of this script, I updated the original version with the one with whammy improvements, like the Password Helper
Attached Files
File Type: zip jslogin.zip (2.2 KB, 16638 views)
__________________
Don't resist to assimilation. Billions of Borgs can't be wrong!

Last edited by Borgtex; 11-07-2003 at 10:20 AM..
Borgtex is offline   Reply With Quote