def _auth_key(nonce, username, password):
 digest = _password_digest(username, password)
 md5hash = md5()
 data = ('%s%s%s' % (nonce, username, digest))
 md5hash.update(data.encode('utf-8'))
 return _unicode(md5hash.hexdigest())

def _auth_key ( nonce , username , password ) : digest = _password_digest ( username , password ) md5hash = md5 ( ) data = ( '%s%s%s' % ( nonce , username , digest ) ) md5hash . update ( data . encode ( 'utf-8' ) ) return _unicode ( md5hash . hexdigest ( ) )
get an auth key to use for authentication .