Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple JavaScript password 1

Status
Not open for further replies.

meeble

Programmer
Sep 24, 2002
137
GB
If I have a text box and a submit button and when someone enters the password into the box, if it is correct, it takes them to a page with that password as the page name (.html), is this safe?

So, if the password was bob, they would put bob in the box and get taken to bob.html else the page would just refresh or something.

Is this possible?

Cheers

James
 
Definetly possible, but also a very bad idea. Passwords are supposed to be kept secret and safe. I don't think the users will be too happy about the fact that their password is spralled across their screen's.

You should create an associative array of some sorts that will store the password, with the related web page.
e.g. = bob | notb.html
sally | somes.html
etc.

This may be a better idea.

Sean.
 
sean4e,

thats what i thougth to, but I was proved wrong - right here on this site!

BillyRayPreachersSon posted details of a site than uses a javascript encryption for protection.


click javascript / password pro

It looks very secure, and very difficult to crack, however to be absolutely sure, you should use server side protection.

hth

simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top