Ruby version of the mechanical encryption machine 'Enigma'.