Password protection through JavaScript Coraopolis PA

This is the first in a series of script tips meant to discuss and describe the concept of creating password protection through JavaScript.

Local Companies

Automation Consulting Solutions
412- 318-8102
125 Hillvue Ln
Pittsburgh, PA
Iceburgh Solutions, LLC
412- 877-7114
4885A Mcknight Rd
Pittsburgh, PA
Tartan Software Inc
412- 635-7020
9400 Mcknight RD
Pittsburgh, PA
Shared Software Solutions
412- 281-0790
812 Liberty Ave
Pittsburgh, PA
Innovate Software
412- 681-3000
160 N Craig St
Pittsburgh, PA
The Digital Accountant
412-580-2112
45 Tanager Drive
McKees Rocks, PA
Global Business Solutions
412- 630-9111
109 Pineridge RD
Pittsburgh, PA
Selective Software Inc
412- 369-0480
100 Mcknight Park Dr
Pittsburgh, PA
Cima Software
412- 573-0124
4606 Allegheny Center Mall
Pittsburgh, PA
Duerr Business Solutions Inc
412- 854-5876
71 Mcmurray Rd
Pittsburgh, PA

provided by: 
Originally published at Internet.com


How'z it goin'...

This is the first in a series of script tips meant to discuss and describe the concept of creating password protection through JavaScript. I have three scripts, each better or worse than the last depending on your point of view, to show you. Each uses a different method of password protection. You choose which one you think is best.

The three are:


All three are effective to a point. As with most password protection, the protection is only as good as the user's ability to not blab the password. Where JavaScript has taken a bad rap in all of this is that many people say that the password is in the script, that it's easy to look at the code, grab the password and get in.

The second script above simply does not include the password so that's out. The first and the third do, but I'll show you how to make it darn hard to grab it from the code...if you can get to the code at all.

Let's get started with the first one.

Here's the effect

The password is "peppermint" - without the quotes. Before you do it correctly, put in incorrect passwords, leave spaces blank, hit CANCEL, and try to look at the pages code. You'll see how I hid it...

Read article at Internet.com site

Featured Local Company

The Digital Accountant

412-580-2112
45 Tanager Drive
McKees Rocks, PA

Related Local Event
Tech U: Excel
Dates: 3/13/2010 - 3/13/2010
Location: PA CareerLink Allegheny West Robinson Plaza Two
Pittsburgh, PA
View Details

Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML