[gen] Real words only in memorable passwords, ASCII-only symbols (v0.2.1) #4

Manually merged
mnovak merged 1 commits from feature/real-words into main 2026-10-31 13:55:07 +01:00
Owner

Memorable passwords now use only real English words, and every generated password is limited to English letters, digits and ASCII symbols.

What changed

  • memorable.txt: the EFF large wordlist minus the 454 words that the standard US spellchecker dictionary (SCOWL/ESDB size 60, the size of hunspell's en_US) doesn't list. Gone: brand names (walmart, iphone, skype), names (monday, december), coinages (pranker, finlike) and the hyphenated words. 7,322 words remain, 12.838 bits each instead of 12.925.
  • derive_memorable.py rebuilds the list. SOURCES.md records the exact download URL and sha256, and carries the ESDB licence notice.
  • EFF_WORDS is now MEMORABLE_WORDS. The entropy is computed from the new list length.
  • Strict-site generator: the "symbols the site accepts" field keeps only ASCII symbols. €, §, ž, letters and spaces are ignored. The random generator was already ASCII-only; a test now pins that down.

Self-review

  • Tests: cargo test --workspace gives 39 passed (gen 16, vault 11, totp 5, qr 5, doctests 2).
  • New tests:
    • the list has 7,322 unique lowercase ASCII words, all from the EFF list, with the named non-words absent;
    • random output at the maximum length is ASCII-only;
    • strict output ignores non-ASCII symbols and errors when none are left.
  • No change to the vault format or any crypto.
Memorable passwords now use only real English words, and every generated password is limited to English letters, digits and ASCII symbols. **What changed** - `memorable.txt`: the EFF large wordlist minus the 454 words that the standard US spellchecker dictionary (SCOWL/ESDB size 60, the size of hunspell's `en_US`) doesn't list. Gone: brand names (`walmart`, `iphone`, `skype`), names (`monday`, `december`), coinages (`pranker`, `finlike`) and the hyphenated words. 7,322 words remain, 12.838 bits each instead of 12.925. - `derive_memorable.py` rebuilds the list. `SOURCES.md` records the exact download URL and sha256, and carries the ESDB licence notice. - `EFF_WORDS` is now `MEMORABLE_WORDS`. The entropy is computed from the new list length. - Strict-site generator: the "symbols the site accepts" field keeps only ASCII symbols. `€`, `§`, `ž`, letters and spaces are ignored. The random generator was already ASCII-only; a test now pins that down. **Self-review** - Tests: `cargo test --workspace` gives 39 passed (gen 16, vault 11, totp 5, qr 5, doctests 2). - New tests: - the list has 7,322 unique lowercase ASCII words, all from the EFF list, with the named non-words absent; - random output at the maximum length is ASCII-only; - strict output ignores non-ASCII symbols and errors when none are left. - No change to the vault format or any crypto.
mnovak added 1 commit 2026-10-31 13:54:51 +01:00
mnovak manually merged commit 4aac99fb47 into main 2026-10-31 13:55:07 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mnovak/CustosPublic#4