Pronounceable Password Generator

Here’s a neat little snippet of Ruby code for generating pronounceable passwords.

Just call PronounceablePassword.generate_password! and you’ll get a nice password like “fabulous-99-bottles”

Of course, you should remind people to change their generated password, but this is useful for resetting passwords and simplifying a signup process.

You can also seed the generator with your own words - just dump a bunch of interesting words into the lib/words.txt file.

More like this: