hmac.compare_digest
Also written: compare_digest
A Python function that compares two secrets in constant time. It stops attackers guessing a password by timing the replies.
Also written: compare_digest
A Python function that compares two secrets in constant time. It stops attackers guessing a password by timing the replies.