Enigma cipher written in Ruby and Rails