Skip to content

Instantly share code, notes, and snippets.

@arn-e
Created September 21, 2012 21:18
Show Gist options
  • Select an option

  • Save arn-e/3763956 to your computer and use it in GitHub Desktop.

Select an option

Save arn-e/3763956 to your computer and use it in GitHub Desktop.
decode
def decode(to_decode,match_results)
match_results.each do |a,b|
decrypted = decrypt(((b.ord-a.ord).abs),to_decode)
decrypted.language == :english ? (return decrypted) : decrypted
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment