Wordish – A password generator

by

in

See the password generator here:

https://cmroanirgo.github.io/wordish/

This project came to fruition because I was dissatisfied with the quality of the dictionary based password generators that abound everywhere.

It came to my attention that most of those projects used massive word sets, and were full of slang and idioms that are as strange to type as a random set of characters are. Not only that, they were generally limited to a specific dictionary, typically the most common English words.

This sample password generator uses 5 different texts in order to generate different flavours of passwords. Ranging from The Happy Prince, by Oscar Wilde, Sermon on the Mount, The Bible (KJV), the original phrasing of Lorem Ipsum (source), a smattering of Klingon that I could find on the web and a snippet of War and Peace, by Tolstoy which also includes some French, it seems. You can even use your own custom text as a source (eg. copy the text off this page, as a demo).

Some samples, based on the text of The Happy Prince, by Oscar Wilde:

prince-beads-passion-clean
pluck-gates-asked-beautiful-tossing-through
allowed-happy-given-sorrow-things-chimney

Or, by the opening of War and Peace:

выражением-нисколько-atrocites-понять
понять-быстротою-павловна-грустью

(Note that I don’t speak russian & can’t verify its validity!)

Or, perhaps spiritual passwords:

knoweth-means-whole-sheep
should-perish-quickly-corrupt-curse
thine-angry-whole-light-himself

How it works

Hearkening back to my first year of uni — we were given a project to write a program that simulated the monkeys problem*, but with a twist: the keys on the typewriter was to be changed to reflect the previously typed character, in order to promote actual words, but would still be random.

For example, given the input string:

Sally sells seashells by the seashore.

The ‘first’ keyboard would have 6 letters, 4 of them are ‘s’, as well as ‘b’ and ‘t’.

After randomly selecting a letter, the keyboard is changed. So, if ‘s’ was chosen, then the keyboard would now have three ‘e’s and one ‘a’. And so on.

This project uses that mentality. Given a source document we generate a tree of possible letter combinations. We control our accuracy by limiting how deep the tree can be. I think it provides a much better result than a dictionary system proposed in xkcd’s correct horse battery staple:

xkcd comic, describing how 'correct horse battery staple' is an easier to remember password than

A word on licensing

Finally, the source of this project is GPLv3. I think there is too much rampant ‘ripping’ off when MIT is used, so sadly this code isn’t provided using such permissive licensing. Feel free to contact me if you need to discuss this issue, and am willing to re-license or dual-license. (eg. I’m open for a Creative Commons License)

* The gist of the theorem was that given an infinite number of monkeys behind a typewriter, eventually they’ll type out the works of Shakespeare. Sadly, experimentation showed the folly of such mentation:

Not only did the monkeys produce nothing but five total pages largely consisting of the letter S, the lead male began by bashing the keyboard with a stone, and the monkeys continued by urinating and defecating on it.

https://en.wikipedia.org/wiki/Infinite_monkey_theorem#Real_monkeys