def sasl_auth_cram_md5(self, user, password):
        try:
            self.sasl_auth_start('CRAM-MD5', '')
        except MemcachedError, e:
            if e.status != memcacheConstants.ERR_AUTH_CONTINUE:
                raise
            challenge = e.msg

        dig = hmac.HMAC(password, challenge).hexdigest()
        return self._doCmd(memcacheConstants.CMD_SASL_STEP, 'CRAM-MD5',
                           user + ' ' + dig)
Start a plan auth session.
dataset/ETHPy150Open dustin/memcached-test/mc_bin_client.py/MemcachedClient.sasl_auth_cram_md5