Skip to content

Glossary: AI App Interfaces

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.

Where the book teaches it

Related terms

Secret