Moodle  2.2.1
http://www.collinsharper.com
Crypt_CHAP Namespace Reference

Detailed Description

Classes for generating packets for various CHAP Protocols: CHAP-MD5: RFC1994 MS-CHAPv1: RFC2433 MS-CHAPv2: RFC2759

Author:
Michael Bretterklieber <michael@bretterklieber.com> public
Version:
Revision:
1.2

class Crypt_CHAP

Abstract base class for CHAP

class Crypt_CHAP_MD5

Generate CHAP-MD5 Packets

class Crypt_CHAP_MSv1

Generate MS-CHAPv1 Packets. MS-CHAP doesen't use the plaintext password, it uses the NT-HASH wich is stored in the SAM-Database or in the smbpasswd, if you are using samba. The NT-HASH is MD4(str2unicode(plaintextpass)). You need the mhash extension for this class.

class Crypt_CHAP_MSv2

Generate MS-CHAPv2 Packets. This version of MS-CHAP uses a 16 Bytes authenticator challenge and a 16 Bytes peer Challenge. LAN-Manager responses no longer exists in this version. The challenge is already a SHA1 challenge hash of both challenges and of the username.

 All Data Structures Namespaces Files Functions Variables Enumerations