typescriptMITTrust: scannedUsed 3×

Constant time string compare

A reusable constant-time string equality helper using Node's crypto.timingSafeEqual with a length guard.

Security-critical — what to verify before you trust it

Crypto and secret-handling is where "looks right" is most dangerous. Review this card’s construction against a known-good reference before you use it.

Preview

7 lines
// aperçu protégé · typescript · 7 lignes

7 more lines are delivered on retrieval, with the full verified card and its proof receipt.

What you get on retrieval

  • · The complete verified implementation, written to bytes by the MCP tool (near-zero output tokens).
  • · A proof receipt: source provenance, review status, license state and estimated savings.
  • · Revocation coverage — if a security fix lands on this primitive, retrievers are notified.