Skip to content

Instantly share code, notes, and snippets.

@DataWraith
Created February 7, 2014 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DataWraith/8870423 to your computer and use it in GitHub Desktop.
Save DataWraith/8870423 to your computer and use it in GitHub Desktop.
A simple passwort generator based on koremutake
#!/usr/bin/env ruby
require 'securerandom'
# Generates a random password made up of NUM_SYLLABLES koremutake syllables.
# See http://shorl.com/koremutake for more on koremutake.
NUM_SYLLABLES=14
SYLLABLES = %w{
BA BE BI BO BU BY DA DE DI DO DU DY FA FE FI FO FU FY GA GE GI GO GU GY
HA HE HI HO HU HY JA JE JI JO JU JY KA KE KI KO KU KY LA LE LI LO LU LY
MA ME MI MO MU MY NA NE NI NO NU NY PA PE PI PO PU PY RA RE RI RO RU RY
SA SE SI SO SU SY TA TE TI TO TU TY VA VE VI VO VU VY BRA BRE BRI BRO
BRU BRY DRA DRE DRI DRO DRU DRY FRA FRE FRI FRO FRU FRY GRA GRE GRI GRO
GRU GRY PRA PRE PRI PRO PRU PRY STA STE STI STO STU STY TRA TRE
}.map(&:downcase)
NUM_SYLLABLES.times do
print SYLLABLES[SecureRandom.random_number(SYLLABLES.length)]
end
puts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment