This is a Python implementation of the Diceware pasword-generating algorithm. It uses uses
equivalent using calls within Python's
How to use
You may need to set some permissions first.
$ chmod u+x diceware
Run the program:
$ ./diceware -w n
nis the number of words you want in your passphrase. The passphrase is printed to the terminal. The
-wflag is mandatory, but you may also add
-sto add a few random numbers and a random special character to the end of the passphrase in order to satisfy password complexity requirements.
I'm not an expert in security or cryptography. If you want this to be more secure, use physical dice (or some other offline method of random number generation) to generate your passphrase the old-skool [sic] way.