Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A simple implementation of the Caesar cipher in 22 lines of Ruby. Just for fun.
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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
Something went wrong with that request. Please try again.