[gen] Real words: memorable passwords from EFF words a US English dictionary knows; strict-site symbols ASCII only (v0.2.1)
This commit is contained in:
@@ -2,14 +2,28 @@
|
||||
|
||||
| File | Used for | Source | Licence |
|
||||
|:--|:--|:--|:--|
|
||||
| `eff_large_wordlist.txt` | Memorable passwords (7,776 words, 12.925 bits each) | Electronic Frontier Foundation, "Deep Dive: EFF's New Wordlists for Random Passphrases" (2016), downloaded unchanged from https://www.eff.org/files/2016/07/18/eff_large_wordlist.txt (sha256 `addd35536511597a02fa0a9ff1e5284677b8883b83e986e43f15a3db996b903e`) | CC BY 3.0 US. Attribution: © Electronic Frontier Foundation. |
|
||||
| `eff_large_wordlist.txt` | The source of `memorable.txt` (kept as published) | Electronic Frontier Foundation, "Deep Dive: EFF's New Wordlists for Random Passphrases" (2016), downloaded unchanged from https://www.eff.org/files/2016/07/18/eff_large_wordlist.txt (sha256 `addd35536511597a02fa0a9ff1e5284677b8883b83e986e43f15a3db996b903e`) | CC BY 3.0 US. Attribution: © Electronic Frontier Foundation. |
|
||||
| `memorable.txt` | Memorable passwords (7,322 words, 12.838 bits each) | The EFF list minus every word that SCOWL/ESDB size 60, US spelling (the size of hunspell's `en_US` dictionary) does not list as a plain lowercase word. Made by `derive_memorable.py` from https://app.aspell.net/create?max_size=60&spelling=US&max_variant=0&diacritic=strip&download=wordlist&encoding=utf-8&format=inline (ESDB revision 1e5b7d3, 2026-06-24; sha256 of the download `bfbc258a6baaa50aec6fe07330b25b57cd90f3dd429345b8280df0414ccf242c`) | CC BY 3.0 US (© Electronic Frontier Foundation), and the ESDB notice below |
|
||||
| `nouns.txt`, `adjectives.txt`, `verbs.txt` | Nicknames (`{Word}`) | Written for Custos Domi in 2026 by hand: common, family-friendly English words | CC0 1.0 (public domain dedication) |
|
||||
|
||||
## How they are used
|
||||
|
||||
- The EFF list file is kept as published. Four of its words contain a hyphen (`drop-down`, `felt-tip`,
|
||||
`t-shirt`, `yo-yo`); the generator removes the hyphen so every word is plain letters (`dropdown`, …).
|
||||
`yoyo` is already in the list, so `yo-yo` becomes `yoyos` instead. All 7,776 words stay distinct (tested),
|
||||
so each word is still worth log2(7,776) bits.
|
||||
- Memorable passwords use only real English words. The EFF list has brand names (`walmart`, `iphone`,
|
||||
`skype`), names (`monday`, `december`), coinages (`pranker`, `finlike`) and four hyphenated words
|
||||
(`felt-tip`, …); a word stays only if the standard US spellchecker dictionary knows it. 454 words go,
|
||||
7,322 stay (tested, with examples), so each word is worth log2(7,322) = 12.838 bits instead of 12.925.
|
||||
- To rebuild `memorable.txt`, download the URL above and run `python derive_memorable.py <file>`.
|
||||
- The nickname lists are not secret material: a nickname is a name, not a password. They are kept short,
|
||||
friendly and unique (tested), and each word has at least three letters.
|
||||
|
||||
## ESDB (SCOWL) notice
|
||||
|
||||
Copyright 2000-2026 by Kevin Atkinson
|
||||
|
||||
Permission to use, copy, modify, distribute, and sell any part of the English
|
||||
Speller Database (ESDB, previously known as SCOWLv2), or word lists
|
||||
created from it, is hereby granted without fee, provided that the above
|
||||
copyright notice appears in all copies and that both the above copyright
|
||||
notice and this notice appear in supporting documentation. Kevin Atkinson
|
||||
makes no representations about the suitability of this database for any
|
||||
purpose. It is provided "as is" without express or implied warranty.
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
"""Rebuilds memorable.txt: the EFF large wordlist minus every word that the standard US English
|
||||
spellchecker dictionary (SCOWL/ESDB size 60, the size of hunspell's en_US) does not list as a plain
|
||||
lowercase word. That removes brand names (walmart), names and capitalised words (monday) and coinages
|
||||
(pranker). See SOURCES.md for the exact download.
|
||||
|
||||
python derive_memorable.py <scowl-size-60.txt>
|
||||
"""
|
||||
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
here = Path(__file__).parent
|
||||
scowl = Path(sys.argv[1]).read_text(encoding="utf-8")
|
||||
dictionary = set(scowl.split("---", 1)[1].split())
|
||||
eff = [line.split("\t")[1].strip() for line in (here / "eff_large_wordlist.txt").read_text().splitlines()]
|
||||
kept = [w for w in eff if w in dictionary]
|
||||
|
||||
header = """\
|
||||
# Memorable-password words: the EFF large wordlist (CC BY 3.0 US, (c) Electronic Frontier Foundation)
|
||||
# minus the words not in SCOWL/ESDB size 60 (US). Word list (c) 2000-2026 by Kevin Atkinson, see SOURCES.md.
|
||||
# Generated by derive_memorable.py; do not edit by hand.
|
||||
"""
|
||||
(here / "memorable.txt").write_text(header + "\n".join(kept) + "\n", encoding="utf-8", newline="\n")
|
||||
print(f"kept {len(kept)} of {len(eff)}")
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user