Skip to content

Glossary: System Design Beyond the Basics in Go

Constant-time comparison

Also written: hmac.Equal

A comparison that takes the same time whether the first or last character differs, so attackers can't guess a signature by timing. Go's hmac.Equal does this.

Where the book teaches it

Related terms

HMACSigned URL