(ch)
return dgstr.hexdigest()
Compute hash of challenge object.
Compute hash of challenge object.
Compute hash of challenge object .
def hash_challenge(ch):
    '''Compute hash of challenge object.'''
    dgstr = hashlib.sha256()
    dgstr.update(ch['username'])
    dgstr.update(ch['ts'])
    dgstr.update(ch['spki_b64'])
    dgstr.update(ch['ip'])
    dgstr.update(ch['nonce'])
    return dgstr.hexdigest()
def hash_challenge ( ch ) : dgstr = hashlib . sha256 ( ) dgstr . update ( ch [ 'username' ] ) dgstr . update ( ch [ 'ts' ] ) dgstr . update ( ch [ 'spki_b64' ] ) dgstr . update ( ch [ 'ip' ] ) dgstr . update ( ch [ 'nonce' ] ) return dgstr . hexdigest ( )