Password Protection Scripts

These scripts all deal with JavaScript password protection scripts. They are an elementary attempt to protect a site and should NOT be used to protect top secret information. They just keep the amateurs out. Pros can infiltrate such sites with these forms of protection. But, for free, they do a good job. They are sometimes very difficult to write - just look at the code. General questions about password protection scripts here should be posted to the The JavaScript Forum.

This script uses an array to store the usernames and passwords.
It also uses a prompt box for username and password info and
uses the indexOf property to search the array for a username and
password match in a for.. loop.

This is another basic encryption/decryption program. The
difference is this script can shift characters based on user
input and you can use more than one key making your security
even more difficult to break.

Protect your source code! This simple script encrypts html or text to numbers. No decryption codes required. Just a little line of JavaScript to decrypt the code. Other encryption utilities do not encrypt letters or numbers only symbols but this one does every thing!

Attention JavaScript Coders

Top White Papers and Webcasts

Live Event Date: March 19, 2015 @ 1:00 p.m. ET / 10:00 a.m. PT
The 2015 Enterprise Mobile Application Survey asked 250 mobility professionals what their biggest mobile challenges are, how many employees they are equipping with mobile apps, and their methods for driving value with mobility.
Join Dan Woods, Editor and CTO of CITO Research, and Alan Murray, SVP of Products at Apperian, as they break down the results of this survey and discuss how enterprises are using mobile application management and private …

Companies undertaking an IT project need to find the right balance between cost and functionality. It's important to start by determining whether to build a solution from scratch, buy an out-of-the-box solution, or a combination of both. In reality, most projects will require some system tailoring to meet business requirements. Decision-makers must understand how much software development is enough and craft a detailed implementation plan to ensure the project's success. This white paper examines the different …