A simple implementation of the Caesar cipher in 22 lines of Ruby. Just for fun.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
README.markdown
caesar.gemspec

README.markdown

A simple implementation of the Caesar cipher in 22 lines of Ruby.

puts Ceasar.encipher(72,"HELLO WORLD! THIS IS AN ENCRYPTED MESSAGE.") # => "BYFFI QILFX! NBCM CM UH YHWSJNYX GYMMUAY."
puts Ceasar.decipher(72,"BYFFI QILFX! NBCM CM UH YHWSJNYX GYMMUAY.") # => "HELLO WORLD! THIS IS AN ENCRYPTED MESSAGE."

To install:

gem install Caesar.rb