I'm trying to do these without using number conversion or crypto libraries, as far as possible. That's why the code might look cray cray to you.
rorysaur/cryptopals-ruby
my cryptopals (matasano crypto challenges) solutions.. in ruby. http://cryptopals.com/
Ruby