{
  "id": "generator-tool-2026-11-18",
  "title": "Our password and passphrase generator: requests, offline use, failure modes and evenness",
  "status": "completed",
  "date": "2026-11-18",
  "method": "tool-network-capture-v1 + tool-failure-matrix-v1",
  "machine": "Privacy Proven lab box: Debian 13 Linux container, headless Chromium 159.0.8154.6 driven by playwright-core 1.65.1",
  "network": "Local Worker build of this site (127.0.0.1); the connection was cut mid-run for the offline check",
  "software": {
    "browser": "Chromium 159.0.8154.6 (headless, playwright-core)",
    "page": "/tools/generator/ from the local build of this site",
    "code": [
      "/js/generator-v1.js",
      "/js/eff-wordlist-v1.js"
    ],
    "wordlist": "EFF Large Wordlist, 7,776 words, sha256 addd35536511597a02fa0a9ff1e5284677b8883b83e986e43f15a3db996b903e, CC BY 4.0"
  },
  "procedure": [
    "Load the page in a fresh browser profile and record every request. Make 100 passphrases, switch to passwords and make 100 more, change length, character sets, separator, capitalization and the trailing digit, then press Copy. Record every request made after the page loaded.",
    "Load the page, cut the network connection, and make 20 more passphrases.",
    "Load the page with JavaScript off, and again with every page script made to throw and the tool's script files blocked. Check that no password appears and that every control stays disabled.",
    "Press the button 500 times as fast as the page allows and compare the outputs.",
    "Draw 700,000 numbers from 0 to 7,775 through the page's own random function and run a chi-square test for evenness; repeat with 300,000 draws over 3, 7, 10 and 80 values, where modulo bias would show most."
  ],
  "results": {
    "requests": {
      "after_load": 0,
      "on_load": 4,
      "third_party": 0,
      "receipt": "data/receipts/generator.json"
    },
    "evenness": {
      "range": 7776,
      "draws": 700000,
      "expected_per_value": 90.02,
      "chi_square": 7875,
      "degrees_of_freedom": 7775,
      "z": 0.8,
      "min": 55,
      "max": 141,
      "small": [
        {
          "range": 3,
          "draws": 300000,
          "chi_square": 0.98,
          "z": -0.51
        },
        {
          "range": 7,
          "draws": 300000,
          "chi_square": 4.76,
          "z": -0.36
        },
        {
          "range": 10,
          "draws": 300000,
          "chi_square": 0.89,
          "z": -1.91
        },
        {
          "range": 80,
          "draws": 300000,
          "chi_square": 73.83,
          "z": -0.41
        }
      ]
    },
    "checks": [
      {
        "check": "js-off: #gen-new is disabled",
        "pass": true
      },
      {
        "check": "js-off: #gen-copy is disabled",
        "pass": true
      },
      {
        "check": "js-off: #mode-password is disabled",
        "pass": true
      },
      {
        "check": "js-off: #pw-len is disabled",
        "pass": true
      },
      {
        "check": "js-off: #pp-words is disabled",
        "pass": true
      },
      {
        "check": "js-off: tells the reader the tool needs JavaScript",
        "pass": true
      },
      {
        "check": "js-off: no API call and no third-party request",
        "pass": true,
        "detail": "2 requests"
      },
      {
        "check": "js-off: no password is shown (none ships with the page)",
        "pass": true
      },
      {
        "check": "script-error: #gen-new stays disabled",
        "pass": true
      },
      {
        "check": "script-error: #gen-copy stays disabled",
        "pass": true
      },
      {
        "check": "script-error: #mode-password stays disabled",
        "pass": true
      },
      {
        "check": "script-error: #pw-len stays disabled",
        "pass": true
      },
      {
        "check": "script-error: #pp-words stays disabled",
        "pass": true
      },
      {
        "check": "script-error: page still renders its content",
        "pass": true
      },
      {
        "check": "script-error: no API call and no third-party request",
        "pass": true,
        "detail": "2 simulated error(s)"
      },
      {
        "check": "script-error: no password is shown",
        "pass": true
      },
      {
        "check": "third-party: only declared destinations (this site only)",
        "pass": true,
        "detail": "4 requests"
      },
      {
        "check": "malformed-api: not applicable: this tool calls no API (see its receipt)",
        "pass": true
      },
      {
        "check": "repeated-submit: 500 rapid clicks: 500 different passphrases, zero requests",
        "pass": true,
        "detail": "500 distinct, 0 requests"
      },
      {
        "check": "offline: connection cut after load: still makes passphrases",
        "pass": true,
        "detail": "patriot-penalty-gout-remover-elves-nutshell"
      },
      {
        "check": "offline: no request attempted while offline",
        "pass": true
      },
      {
        "check": "output: default passphrase: six EFF words, about 78 bits",
        "pass": true
      },
      {
        "check": "output: default password: 20 characters from the four sets, about 126 bits",
        "pass": true,
        "detail": "20 chars"
      },
      {
        "check": "output: lowercase only: no other characters",
        "pass": true,
        "detail": "vjjdqfdojrwzgdydlsuj"
      },
      {
        "check": "output: can’t untick every set (one stays on)",
        "pass": true
      },
      {
        "check": "randomness: 700,000 draws over 7,776 words spread evenly (chi-square z = 0.8)",
        "pass": true,
        "detail": "chi² 7875 on 7775 df"
      },
      {
        "check": "randomness: range 3: no bias (z = -0.51)",
        "pass": true
      },
      {
        "check": "randomness: range 7: no bias (z = -0.36)",
        "pass": true
      },
      {
        "check": "randomness: range 10: no bias (z = -1.91)",
        "pass": true
      },
      {
        "check": "randomness: range 80: no bias (z = -0.41)",
        "pass": true
      }
    ]
  },
  "findings": [
    "After the page's own four files loaded, 200 generations, every option change and Copy made zero network requests.",
    "With the connection cut, it kept making passphrases, and attempted no request.",
    "With JavaScript off, or with the script crashing, no password appeared and every control stayed disabled. The page never ships a ready-made password.",
    "500 rapid presses gave 500 different passphrases.",
    "700,000 draws over 7,776 values spread evenly: chi-square z = 0.8 (anything within ±4 is consistent with a fair draw). The small ranges, where modulo bias would show, were even too."
  ],
  "limits": [
    "Chromium only. The code uses only crypto.getRandomValues and standard DOM calls, so other modern browsers should behave the same, but we didn't run them.",
    "An evenness test can catch bias; it can't prove randomness. That rests on the browser's cryptographic generator, which we don't test.",
    "No web page can protect a password from a compromised device or a malicious browser extension."
  ]
}