Horse batteries
On any given day I find myself creating a new account for some new, web-based, service. Whenever I do, I am prompted by Firefox with a password. It’s totes random! But it’s hard to remember. So I decided to build a passphrase generator using python.
The generator uses python, pandas, and numpy to read in the EFF’s large word list to create a passphrase consisting of five words. (The EFF has an informative article on the list of words.) In addition, randomly selected characters are capitalized and numbers and special characters are also inserted.
There is a jupyter notebook version of the code and a python file as well. I included a windows batch file to show how the code can be called from the command line and the output piped to the clipboard. Note that the batchfile activates an Anaconda environment to run the python code.