Package: nodice-cli
🎲 nodiceA simpledicewaregenerator with no dependencies.📦 SetupClone the repository:git clone https://github.com/avnigo/nodice-cli.git && cd nodice-cli[Optional] Installnodiceto path:python-mpipinstall.Otherwise, use as follows inside thenodice-clidirectory:pythonnodice📖 Usage$nodice--helpusage: nodice [-h] [--words WORDS] [--entropy ENTROPY] [--spacer SPACER] [--dice DICE] [--sides SIDES] [--show-rolls] [--file FILE] [--delimiter DELIMITER] [--verbose]Generate diceware passphrases from wordlists.options:-h, --help                            show this help message and exit--words WORDS, -w WORDS               number of words (default: `5`)--entropy ENTROPY, -e ENTROPY         set minimum bits of entropy--spacer SPACER, -s SPACER            separate words with a spacer (default: ` `)--dice DICE, -d DICE                  number of dice per word; ignores --file and --entropy options--sides SIDES, -D SIDES               number of sides per die (default: `6`)--show-rolls, -r                      show dice rolls only--make-custom, -m                     generate keys (dice rolls) for custom wordlist--file FILE, -f FILE                  diceware dictionary file (default: `wordlists/eff_large_wordlist.txt`)--delimiter DELIMITER, -t DELIMITER   dictionary delimiter (default: $'\t')--verbose, -v                         show entropy information🗒️ ExamplesRunningnodiceorpython -m nodicewithout any options falls back to defaults:5 random wordsfromeff_large_wordlist.txt.$nodiceanybody desecrate battalion agility skidChoosing thenumber of wordsto generate:$nodice--verbose--words8citric trimming whole unlivable drivable percent suitor clump> 8 random words from a 7776-word list yield 103.4 bits of entropy.Setting theminimum bits of entropyfor the passphrase will generate the appropriate amount of words:$nodice-v--entropy120-s"-"glade-unmoved-pacemaker-gallon-jogging-sculpture-gentleman-disburse-unsaddle-surprise> 10 random words from a 7776-word list yield 129.2 bits of entropy.Onlyshow dice rollsgenerated based on the provided wordlist:$nodice-w10--show-rolls--filemy_printed_wordlist.txt21162 54422 55235 46233 61313 62442 21411 23555 54232 55436Use acustom delimiterto parse wordlist:$nodice-w7--show-rolls--filemy_wordlist.csv--delimiter","23611 62433 55136 12534 55642 51415 13611Set thenumber of diceto roll for each word:$nodice-d6-w10-s$'\n'464645664516111426133531416231613133541445156546325161566625Use an alternative EFF wordlist:$nodice-v-fnodice/wordlists/eff_short_wordlist_2_0.txt-w8goldfish depot unwrinkled tiger caviar rustproof urgent urethane> 8 random words from a 1296-word list yield 82.7 bits of entropy.Set thenumber of sidesof the dice used (e.g. two-sided coin):$nodice-v-fnodice/wordlists/bip_0039.txt-w12-D2mountain noble arctic joke hero fruit novel palace quarter genuine rather price> 12 random words from a 2048-word list yield 132.0 bits of entropy.🛠️ Custom wordlistsIt is possible to use custom wordlists, either delimited alongside their corresponding dice rolls, or simply a bare list of words, as in the examples below respectively.Fordelimited wordlists, the defaults apply (i.e., delimiter and number of sides), otherwise they would need to be passed in as arguments.11111	abacus
11112	abdomen
11113	abdominal
11114	abide
11115	abiding
11116	ability
...In the case of abare wordlistlike the one below, dice roll keys for aperfect-power-length wordlistwill be generated when possible using smaller than 10-sided dice, whereas other length wordlists are unhandled for now.abacus
abdomen
abdominal
abide
abiding
ability
...Using the--make-customflag with a bare wordlist creates the wordlist alongside the corresponding keys (dice rolls):$nodice--make-custom-t,-fbare_wordlist.txt|tail66656,zombie66661,zone66662,zoning66663,zookeeper66664,zoologist66665,zoology66666,zoom🔗 AttributionEFF wordlistsBIP-0039 wordlist