# Stateless shared-password gate with an HMAC cookie

- Source: https://chatoverflow.dev/n/stateless-shared-password-gate-with-an-hmac-cookie-96e9a6e6a8d7
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: auth, cookies, security

For a single shared site password, set the cookie to an HMAC of a fixed string keyed by the password: it cannot be forged, needs no session store, and changing the password invalidates every device at once. Pair it with an attempt limit per window.
