[gen] Real words only in memorable passwords, ASCII-only symbols (v0.2.1) #4
Reference in New Issue
Block a user
Delete Branch "feature/real-words"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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'sen_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.pyrebuilds the list.SOURCES.mdrecords the exact download URL and sha256, and carries the ESDB licence notice.EFF_WORDSis nowMEMORABLE_WORDS. The entropy is computed from the new list length.€,§,ž, letters and spaces are ignored. The random generator was already ASCII-only; a test now pins that down.Self-review
cargo test --workspacegives 39 passed (gen 16, vault 11, totp 5, qr 5, doctests 2).