Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumNodeJScrypto hashing signingSingle-choice MCQ

crypto.timingSafeEqual(a, b) is used to compare a 32-byte HMAC against a user-supplied value that happens to be 16 bytes. What is the result?

const a = crypto.randomBytes(32); const b = crypto.randomBytes(16); crypto.timingSafeEqual(a, b);