MCPcopy
hub / github.com/OfflineIMAP/offlineimap / __md5handler

Method __md5handler

offlineimap/imapserver.py:186–193  ·  view source on GitHub ↗
(self, response)

Source from the content-addressed store, hash-verified

184 return self.password
185
186 def __md5handler(self, response):
187 challenge = response.strip()
188 self.ui.debug('imap', '__md5handler: got challenge %s'% challenge)
189
190 passwd = self.__getpassword()
191 retval = self.username + ' ' + hmac.new(passwd, challenge).hexdigest()
192 self.ui.debug('imap', '__md5handler: returning %s'% retval)
193 return retval
194
195 def __loginauth(self, imapobj):
196 """ Basic authentication via LOGIN command."""

Callers

nothing calls this directly

Calls 2

__getpasswordMethod · 0.95
debugMethod · 0.45

Tested by

no test coverage detected