# Design This file fixes the parts that are easy to get wrong. The language and tools are up to you, as long as the numbers here hold. ## Fixture Password and secret are in `fixtures/secret-page.json`, used only by tests. The page ships a salt, a verifier, and a ciphertext. PBKDF2 parameters (iterations, hash) are in `design` of the built file, and tests use those. ## Screenshot tolerance 8 levels, 98% of pixels. The revealed text must also match the secret exactly. ## Inputs | Key | Label | Default | Notes | | --- | --- | --- | --- | | `title` | Title | A small lock | Shown on the locked page. | | `hint` | Optional hint | not the year | Shown under the field. May be empty. | | `hint_on` | Show the hint | on | If off, the hint is not rendered. | | `attempts` | Limit attempts | on | A documented cap, after which the form is disabled for a session. | | `kdf` | Key derivation | pbkdf2 | How the password checks a verifier in the file. The secret is decrypted only after a match. | ## Acceptance at the defaults The numbers, names and fixture paths already in this file are the authority. Where a later table or a shipped fixture file disagrees with prose, the table or the fixture wins. | Fixture | Role | | --- | --- | | `fixtures/secret-page.json` | A shipped fixture. The build may move it, but then `design.md` must name the new path. | | `spekkr.inputs.json` | A shipped fixture. The build may move it, but then `design.md` must name the new path. | Golden frames are compared at 1400 by 1000 CSS pixels unless a requirement names another size. Tolerance, unless a tighter figure is given above: 8 levels, 98% of pixels, with motion, cursors and clocks frozen as this file says. A build's goldens are of that build; they do not have to match a shipped reference preview pixel-for-pixel if the tool or the type is different, but they do have to match this file's layout, counts and copy. ## Screenshots These pictures are headless-Chrome captures of the working reference in `reference/preview.html`, at the default inputs. They are not drawings of a product that has not been built. The first picture is the one Spekkr shows on the spec's card. A build may ship its own goldens; those goldens are of that build and do not have to match these frames pixel-for-pixel. | File | What it shows | | --- | --- | | `shots/lock.png` | The locked page, hint not the year, the fixture secret still hidden. | ## How to verify 1. Run the checks at the default inputs, without a network. 2. Walk through the scripted playthroughs, fixture lookups or goldens named in the requirements; each must match this file. 3. Repeat once at the person's inputs when they differ from the defaults. 4. A wrong password fails and a right password reveals the fixture secret. The shipped file does not contain the secret in plaintext. The page is self-contained: no server and no network, with a fetch hook to prove it. An attempt cap is tested. The fixture secret is harmless.