Home arrow JavaScript arrow Building a CHAP Login System: An Object-Oriented Approach
JAVASCRIPT

Building a CHAP Login System: An Object-Oriented Approach


Welcome to the last part of the series “Building a CHAP login system.” In three parts, this tutorial provides the basics for building secure login forms, by utilizing the Challenge Handshake Authentication Protocol (known popularly as CHAP). The programming foundation of the system resides primarily on the implementation of the cryptographic MD5 hashing algorithm in JavaScript for sending out encrypted data to the server, which in turn authenticates the client.

Author Info:
By: Alejandro Gervasio
Rating: 5 stars5 stars5 stars5 stars5 stars / 14
September 12, 2005
TABLE OF CONTENTS:
  1. · Building a CHAP Login System: An Object-Oriented Approach
  2. · Using a procedural script: a quick overview of the previous login system
  3. · Taking the object-oriented approach: using a session handling class
  4. · Putting the pieces together: integrating the “ChallengeGenerator” class

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Building a CHAP Login System: An Object-Oriented Approach
(Page 1 of 4 )

Introduction

Referring back to the previous article, strong attention was put on developing some PHP functions, which together comprised the core engine for generating random strings, as well as registering session variables. The JavaScript code was able to use this random value and build up the proper MD5 hashes to be transmitted to the server.

Asides from explaining a procedural approach for generating server-side random seeds, I introduced some modifications to the original JavaScript program with the purpose of providing an updated method for performing data validation, even when this topic is out of the article’s scope.

In this final part of the series, I shall do two things. First, I will provide a quick overview of the CHAP login system I developed. Second, I’ll focus on the makings of a PHP class for encapsulating all the required processing for generating random seeds and managing session variables. The starting point for building the wrapping class will be the procedural script that you saw in the previous part of the series.

With the objectives of the articles clearly defined, let’s get started.


blog comments powered by Disqus
JAVASCRIPT ARTICLES

- More Top jQuery Plugins for Menus
- Top jQuery Tutorials for Beginners
- New UI Framework and SDK for JavaScript Rele...
- JavaScript OpenPGP Tool, Node.js 0.6.3 Avail...
- Yahoo Releases Cocktails Language and Develo...
- Customizing jQuery Slideshows: Dynamic Contr...
- Customizing jQuery Slideshows: the animate()...
- Customizing jQuery Slideshows: slideUp() and...
- Customizing jQuery Slideshows: hide() and sh...
- Web Workers: Performing Calculations in Para...
- More Top JavaScript Frameworks and Libraries
- More Dynamic jQuery Styling Techniques
- The Top JavaScript Libraries
- The Top JavaScript Frameworks
- Dynamic jQuery Styling

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 8 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials