public final class MSCHAP extends Object
| Constructor and Description |
|---|
MSCHAP() |
| Modifier and Type | Method and Description |
|---|---|
static void |
DesHash(byte[] key,
int offsetKey,
byte[] Cypher,
int offsetCypher) |
static byte[] |
doMSCHAPv1(byte[] Password,
byte[] AuthChallenge)
Do MSCHAPv1 (supports using NT Password)
|
static byte[] |
doMSCHAPv2(byte[] UserName,
byte[] Password,
byte[] AuthChallenge)
Do MSCHAPv2
|
static byte[] |
LmChallengeResponse(byte[] Challenge,
byte[] Password) |
static byte[] |
LmPasswordHash(byte[] Password) |
static boolean |
verifyMSCHAPv2(byte[] UserName,
byte[] Password,
byte[] Challenge,
byte[] Response) |
public static void DesHash(byte[] key,
int offsetKey,
byte[] Cypher,
int offsetCypher)
public static byte[] LmPasswordHash(byte[] Password)
public static byte[] LmChallengeResponse(byte[] Challenge,
byte[] Password)
public static byte[] doMSCHAPv1(byte[] Password,
byte[] AuthChallenge)
throws NoSuchAlgorithmException
Password - The User's Password value in bytesAuthChallenge - The 16 byte authentication challengeNoSuchAlgorithmExceptionpublic static byte[] doMSCHAPv2(byte[] UserName,
byte[] Password,
byte[] AuthChallenge)
throws NoSuchAlgorithmException
UserName - The User-Name attribute value bytesPassword - The User's Password value in bytesAuthChallenge - The 16 byte authentication challengeNoSuchAlgorithmExceptionpublic static boolean verifyMSCHAPv2(byte[] UserName,
byte[] Password,
byte[] Challenge,
byte[] Response)
throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionCopyright © 2017. All rights reserved.