Skip to content

Instantly share code, notes, and snippets.

@rogerhub
Created September 27, 2011 01:58
Show Gist options
  • Save rogerhub/1244115 to your computer and use it in GitHub Desktop.
Save rogerhub/1244115 to your computer and use it in GitHub Desktop.
Password generator for Clark w/ default salt built in
require 'digest/sha2'
adjectives = %w[red orange blue green purple big small wide thin gray long dark high low white smooth cool hot dusty sticky furry nice mean rich poor yellow sad happy ]
nouns = %w[book ruler kleenex glasses wand scissors stapler eraser drive car truck road basketball skateboard statue box square circle tree grass flower plant rose ]
500.times do
password = adjectives[rand(adjectives.size)] + nouns[rand(nouns.size)] + rand(10).to_s
puts password + "\t" + Digest::SHA512.hexdigest(password + "thisGETSridOFrainbowTABLES")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment