Skip to content

Instantly share code, notes, and snippets.

@johnkeith
Created June 25, 2014 19:45
Show Gist options
  • Select an option

  • Save johnkeith/8f202967cd91698643c5 to your computer and use it in GitHub Desktop.

Select an option

Save johnkeith/8f202967cd91698643c5 to your computer and use it in GitHub Desktop.
secret_secret_hash_challenge
require 'digest/md5'
erics_hash = "b354e9b8c7a5fb1e073670a28f957032"
("a".."z").each do |first|
("a".."z").each do |second|
("a".."z").each do |third|
("a".."z").each do |fourth|
("a".."z").each do |fifth|
("a".."z").each do |sixth|
test = first + second + third + fourth + fifth + sixth
hashed = Digest::MD5.hexdigest(test)
puts test
abort if hashed == erics_hash
end
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment