Generate passphrases from EFF word list
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Makefile
diceware.py
eff_large_wordlist.txt
readme.md
requirements.txt

readme.md

Inspired by Dr.Drang's Passphrases via shell pipeline, this is a python script to generate passphrases from EFF's wordlist.

Install

Run make install to symlink diceware.py to /usr/local/bin/diceware and install requirements with pip3.

Usage

$ diceware -h
usage: diceware [-h] [-c] [-d DELIMITER] num

Generate passphrases from EFF word list

positional arguments:
  num                   How many words you'd like to use

optional arguments:
  -h, --help            show this help message and exit
  -c, --copy            Flag to copy the passphrase to clipboard
  -d DELIMITER, --delimiter DELIMITER
                        The delimeter for your passphrase words. Defaults to a
                        space

diceware 3 would get you something like ligament oversleep ammonia and diceware -d _ 5 would get you playmate_smudgy_onscreen_craziness_diaper.

Security

I am not a security expert. This script uses secrets, which is a "used for generating cryptographically strong random numbers suitable for managing data such as passwords, account authentication, security tokens, and related secrets." An example similar to this project is shown in the Recipes and best practices section, so I trust this is a proper use of secrets.

Be aware that the use of --copy could expose your passphrase if your system is already compromised. If that's the case, you're already screwed.

Please create an issue with any security concerns.