class documentation

Credentials for use in APOP authentication.

Method __init__ No summary
Method checkPassword Validate a plaintext password against the credentials.
Instance Variable digest See __init__
Instance Variable magic See __init__
Instance Variable username See __init__
def __init__(self, magic, username, digest): (source)
Parameters
magic:bytesThe challenge string used to encrypt the password.
username:bytesThe username associated with these credentials.
digest:bytesAn encrypted version of the user's password. Should be generated as an MD5 hash of the challenge string concatenated with the plaintext password.
def checkPassword(self, password): (source)

Validate a plaintext password against the credentials.

Parameters
password:bytesA plaintext password.
Returns
boolTrue if the credentials represented by this object match the given password, False if they do not.