Password protection through JavaScript

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

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
Related Articles
- Language Essentials for Experienced Programmers
In this article from Danny Goodman, author of JavaScript Bible, experienced programmers are presented with a quick tour of the essential issues surrounding the core JavaScript language.
- Third password tutorial
- Password Protection
- JavaScript Security
- ASP Example 2: Password Protection
- Browser Detector JavaScript
- What's New in JScript .NET?
- So, You Want A Remote Control, Huh?
- Headline Script
- Checking out your Cookies' Crumbs
Regional Articles
- Password protection through JavaScript Alabama
- Password protection through JavaScript Alaska
- Password protection through JavaScript Arizona
- Password protection through JavaScript Arkansas
- Password protection through JavaScript California
- Password protection through JavaScript Colorado
- Password protection through JavaScript Connecticut
- Password protection through JavaScript DC
- Password protection through JavaScript Delaware
- Password protection through JavaScript Florida
- Password protection through JavaScript Georgia
- Password protection through JavaScript Hawaii
- Password protection through JavaScript Idaho
- Password protection through JavaScript Illinois
- Password protection through JavaScript Indiana
- Password protection through JavaScript Iowa
- Password protection through JavaScript Kansas
- Password protection through JavaScript Kentucky
- Password protection through JavaScript Louisiana
- Password protection through JavaScript Maine
- Password protection through JavaScript Maryland
- Password protection through JavaScript Massachusetts
- Password protection through JavaScript Michigan
- Password protection through JavaScript Minnesota
- Password protection through JavaScript Mississippi
- Password protection through JavaScript Missouri
- Password protection through JavaScript Montana
- Password protection through JavaScript Nebraska
- Password protection through JavaScript Nevada
- Password protection through JavaScript New Hampshire
- Password protection through JavaScript New Jersey
- Password protection through JavaScript New Mexico
- Password protection through JavaScript New York
- Password protection through JavaScript North Carolina
- Password protection through JavaScript North Dakota
- Password protection through JavaScript Ohio
- Password protection through JavaScript Oklahoma
- Password protection through JavaScript Oregon
- Password protection through JavaScript Pennsylvania
- Password protection through JavaScript Rhode Island
- Password protection through JavaScript South Carolina
- Password protection through JavaScript South Dakota
- Password protection through JavaScript Tennessee
- Password protection through JavaScript Texas
- Password protection through JavaScript Utah
- Password protection through JavaScript Vermont
- Password protection through JavaScript Virginia
- Password protection through JavaScript Washington
- Password protection through JavaScript West Virginia
- Password protection through JavaScript Wisconsin
- Password protection through JavaScript Wyoming
Related Articles

Rss   Delicious   Digg   Add To My Yahoo   Add To My Google   Bookmark   Search Plugin

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