parameters: (self, challenge)
return_statement: return self.user + " " + hmac.HMAC(pwd, challenge, 'md5').hexdigest()
docstring: Authobject to use with CRAM-MD5 authentication.
docstring_summary: Authobject to use with CRAM-MD5 authentication.
docstring_tokens: Authobject to use with CRAM - MD5 authentication .
function: def _CRAM_MD5_AUTH(self, challenge):
          """ Authobject to use with CRAM-MD5 authentication. """
          import hmac
          pwd = (self.password.encode('utf-8') if isinstance(self.password, str)
                                               else self.password)
          return self.user + " " + hmac.HMAC(pwd, challenge, 'md5').hexdigest()
function_tokens: def _CRAM_MD5_AUTH ( self , challenge ) : import hmac pwd = ( self . password . encode ( 'utf-8' ) if isinstance ( self . password , str ) else self . password ) return self . user + " " + hmac . HMAC ( pwd , challenge , 'md5' ) . hexdigest ( )