Password protection through JavaScript Easton 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

The Information Systems Manager, Inc.
One Bethlehem Plaza
Bethlehem, PA
Stafford Solutions, Inc.
(610) 882-5800
P.O. Box 20903
Lehigh Valley, PA
VectraCore, Inc.
(570) 579-4308
100 Cascade Drive, Suite 200
Allentown, PA
Synectics Group, Inc.
(610) 297-8227
7540 Windsor Drive, Suite 200
Allentown, PA
Global Enterprise Network Inc.
(610) 759-5894
723 North 22nd Street
Allentown, PA
Fracture Technology Associates
(610) 262-1301
2412 Emrick Boulevard
Bethlehem, PA
NERV IT Solutions
(610) 252-6511
3235 Hamilton Boulevard
Allentown, PA
Valley IT Solutions, LLC
(610) 762-7335
795 Roble Road, Suite A
Allentown, PA
K12 Systems, Inc.
(610) 253-3400
Two Windsor Plaza, Suite 314
Allentown, PA
CyLutions
(610) 776-6427
121 North Cedar Crest Boulevard
Allentown, 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

Fracture Technology Associates

(610) 262-1301
2412 Emrick Boulevard
Bethlehem, PA

Related Local Events
Business Technology Forum
Dates: 1/8/2010 - 1/8/2010
Location: Chamber Offices
Fairless Hills, PA
View Details

Hot Java at the Watercooler
Dates: 12/23/2009 - 1/23/2010
Location: Odyssey Travel
Skippack, PA
View Details

Fraser Advanced Information Systems Mixer
Dates: 10/29/2009 - 10/29/2009
Location:
Bethlehem, PA
View Details

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