The JavaScript Source - Cut and Paste JavaScript Library
Home
New Scripts
Tutorials
Ajax Tutorials
Ajax
Buttons
Cookies
CSS
Forms
Games
Generators
Image Effects
Math Related
Miscellaneous
Navigation
Page-Details
Pass. Prot.
Snippets
Text Effects
Time & Date
User-Details
JS Core Reference
Submit a Script
Web Video Universe
Script Count:  2,632
internet.com 
Navigation Menu

Site Contents
What's New?


Site FAQ
About JSS
JavaScript Forum
JavaScript Tutorial
Friends of JSS

Link to Us
JavaScript Help
Contribute a script
Technology Jobs

Become a Partner

Internet.commerce

Partner With Us
Desktop Computers
KVM Switches
Computer Deals
Logo Design
Promotional Golf
Promote Your Website
Promos and Premiums
Server Racks
Memory
Imprinted Promotions
Televisions
Web Design
Corporate Gifts
Cell Phones

Internet.com

IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Developer Channel

FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

Great Sites

DocJavaScript.com
dhtml.com
The Freebie Directory
TheFreeSite.com

Browse Doc JS's Tips!


Hiermenus Central


Promotions

Free Announcements


Home } Password } Index

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.


More on internet.com

Title: Advanced Password Checker
Contributor: Aaron Jones (webmaster@aaronjones.4t.com)
Contributor URL: http://www.aaronjones.4t.com/
Details: 2.36 KB * Uploaded October 12 2004
Description: 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.

[ Get Source Code ]


Title: ASCII Encryption
Contributor: David Salsinha (david.salsinha@popsi.pt)
Details: 1.83 KB * Uploaded August 31 2000
Description: (Internet Explorer Only) A very simple encryption method that uses random values for each character. Interestingly, you can encrypt the same string as many times as you want and the result will always be different. Best used with short strings.

[ Get Source Code ]


Title: Character Encoder
Contributor: Mike McGrath (mike_mcgrath@lineone.net)
Contributor URL: http://website.lineone.net/~mike_mcgrath/
Details: 1.86 KB * Uploaded November 24 1999
Description: Encrypts a string by converting each character to it's ASCII key code. Supports two-way encryption - from a string to the numeric code, or from the numeric code back to the string. You can, for example, send the encrypted code to a friend and have them decode it with this script. Lots more uses, use your imagination!

[ Get Source Code ]


Title: Cookie Protection
Details: 5.19 KB * Uploaded August 13 1997
Description:You can use a basic cookie script to keep visitors (that don't have the cookie on their system) from viewing certain parts of your site (kind of.... There are always ways around it). The cookie is placed when the password provided is correct. Then, when they are forwarded to the password protected page, the cookie allows them to stay. Those without the cookie are sent back.

[ Get Source Code ]


Title: Gatekeeper
Details: 2.97 KB * Uploaded August 13 1997
Description: Here is the best password protection script I have come across. It is also definitely the most user friendly. Try it out! (Note: The password is the filename without the .html ending.) This password for this example is gatekeeper-in

[ Get Source Code ]


Title: Login Coder
Contributor: Dion
Contributor URL: http://www.iinet.net.au/~biab/
Details: 6.50 KB * Uploaded May 29 1998
Description: This is undoubtedly the best password protection JavaScript you'll ever find. Besides supporting multiple users, multiple passwords, and even multiple destination pages (after they successfully login), this script is presented in a very easy-to-use interface that you're sure to love! We *wish* we wrote this script, it's that good! (Note: Questions on this script should be directed to the author.)

[ Get Source Code ]


Title: Multiple Users (Login Table)
Details: 1.60 KB * Uploaded May 15 1998
Description: Rather not have one password for access the Members-Only section of your site? Well, along comes this little JavaScript gem. You can set up a separate username and password for as many members as you want, and even give each a different page to go to after logging in!

[ Get Source Code ]


Title: Multiple Users (Prompt)
Details: 1.29 KB * Uploaded May 15 1998
Description: This JavaScript is just like the previous Multiple Users one, but doesn't use a table interface to login. Instead, after clicking the Login! button, the script will ask them for their username and password, and then perform the password-protection. Very neat!

[ Get Source Code ]


Title: Password Generator
Contributor: ataxx@visto.com (ataxx@visto.com)
Details: 3.49 KB * Uploaded October 27 2000
Description: Generate a random password with the ability to include special characters and password restrictions.

[ Get Source Code ]


Title: Password Pro
Contributor: Lefteris Haritou (lef@writeme.com)
Contributor URL: http://www.geocities.com/~lef
Details: 2.55 KB * Uploaded October 26 1997
Description: This script uses a different approach to Password Protection. It still uses the password as the actual page, but it uses an encryption method that encrypts and checks the password. So if you fail to enter it correct after 3 times you go to a specific page (specified by the webmaster) and you don't get the annoying 404 page not found message as in other scripts. The password is password

[ Get Source Code ]


Title: Password Prompt
Details: 0.58 KB * Uploaded August 13 1997
Description: If a visitor wants to go a password protected page, they must first enter the correct password on the page with this script. This script will just take you them to [password entered].html This is a very good script if JavaScript is enabled and as long as you have an index.html file in your directory. As an added bonus, it's only 8 lines! The password is the protected filename without the .html ending.

[ Get Source Code ]


Title: Password Protect
Contributor: JavaScript Newbie
Contributor URL: http://expage.com/javascriptnewbie
Details: 0.81 KB * Uploaded June 17 2005
Description: Use this script to protect online files. Users cannot cancel out of it. It can also be used with your browser's home page to control Internet access on your own computer.

[ Get Source Code ]


Title: Random Password Generator
Contributor: Stephen Griffin
Contributor URL: http://i-code.co.uk/
Details: 3.64 KB * Uploaded January 12 2005
Description: This script can be used to generate random passwords for improved password strength.

[ Get Source Code ]


Title: Slide Encryption Program
Contributor: Brett Tolbert (bretttolbert@alaweb.com)
Contributor URL: http://www.geocities.com/btolbertnet
Details: 4.03 KB * Uploaded April 27 2004
Description: 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.

[ Get Source Code ]


Title: Text Encryption
Contributor: Tomislav Sereg (tsereg@net.hr)
Contributor URL: http://www.inet.hr/~tsereg/jse
Details: 8.32 KB * Uploaded August 3 2000
Description: This JavaScript library provides encryption using simple, text-oriented method called column transposition. The idea is to write the plain text in block on the row-first bases. The text is then read column-first. The trick is in that the columns are not read from left to right, but in the order specified by the encryption key. Transliteration is also used.

[ Get Source Code ]


Title: Three Tries
Details: 1.10 KB * Uploaded August 13 1997
Description: If you want to 'protect' a site and don't have CGI access, you can try this JavaScript. Visitors get three tries to enter the correct password then they are refused entry. Note: The password is: password

[ Get Source Code ]


Title: UNIX crypt(3) encryption
Contributor: Jeff Walden (Jswalden86@netzero.net )
Details: 1.23 KB * Uploaded October 30 2002
Description: .htpasswd files use crypt(3) to generate encryptions, and this script will do it for you without UNIX or an online script! Provided in .js format for your convenience.

[ Get Source Code ]


Title: Virgenere Encryption
Contributor: Francisco Ryan Tolmasky (iopossum@mailcity.com)
Contributor URL: http://iopossum.tripod.com
Details: 2.99 KB * Uploaded September 4 2000
Description: A fine example of the classic virgenere script and is nearly impossible to decode, even when using frequency analysis. This script is also entertaining since you can actually see the encryption taking place.

[ Get Source Code ]


Title: XOR Encryption4
Contributor: Terry Yuen (kaiser40@yahoo.com)
Details: 5.31 KB * Uploaded October 19 2001
Description: This encryption method performs a bitwise XOR on each character of the data you wish to encrypt with a series of mathematically generated keys. This key is generated using a pseudo-random number generater using a hash of the password as the seed. The security of the encrypted data is dependent on the length and randomness of the key. Don't make this script the only form of security on your site as XOR encryption has its weaknesses.

[ Get Source Code ]


javascriptsource.com
Link to Us!

Jupitermedia's Database Journal offers SQL courses and other database related resources for beginner to expert developers.






If you like JavaScript Source, please rate it! @ ScriptSearch.com

  Sign up for the Javascript Weekly Newsletters!
JavaScript is a registered trademark of Sun Microsystems, Inc.








JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
Avaya Article: Call Control XML - Powerful, Standards-Based Call Control
Tripwire Whitepaper: Seven Practical Steps to Mitigate Virtualization Security Risks
Internet.com eBook: The Pros and Cons of Outsourcing
Go Parallel Article: Scalable Parallelism with Intel(R) Threading Building Blocks
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
Go Parallel Article: James Reinders on the Intel Parallel Studio Beta Program
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Go Parallel Article: Getting Started with TBB on Windows
HP eBook: Storage Networking , Part 1
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Go Parallel Video: Intel(R) Threading Building Blocks: A New Method for Threading in C++
HP Video: Is Your Data Center Ready for a Real World Disaster?
Microsoft Partner Portal Video: Microsoft Gold Certified Partners Build Successful Practices
HP On Demand Webcast: Virtualization in Action
Go Parallel Video: Performance and Threading Tools for Game Developers
Rackspace Hosting Center: Customer Videos
Intel vPro Developer Virtual Bootcamp
HP Disaster-Proof Solutions eSeminar
HP On Demand Webcast: Discover the Benefits of Virtualization
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Microsoft Download: Silverlight 2 Software Development Kit Beta 2
30-Day Trial: SPAMfighter Exchange Module
Red Gate Download: SQL Toolbelt
Iron Speed Designer Application Generator
Microsoft Download: Silverlight 2 Beta 2 Runtime
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
IBM IT Innovation Article: Green Servers Provide a Competitive Advantage
Microsoft Article: Expression Web 2 for PHP Developers--Simplify Your PHP Applications
Featured Algorithm: Intel Threading Building Blocks - parallel_reduce
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES