/caesar_cipher

Sinatra web app that applies the Caesar cipher to input

Primary LanguageHTML

Caesar Cipher

This Sinatra app accepts a text input and a shift integer, and it outputs the resulting text after applying the Caesar cipher.

A Caesar cipher is one of the oldest and most widely known encryption techniques. It's a type of substitution cipher in which each letter is replaced by a different letter a set number of positions away in the alphabet. For example, with a right shift of 3, "D" becomes "G", and "L" becomes "O".

This project is part of The Odin Project curriculum.

Heroku

To see this app in action, check it out on Heroku.

To run this app locally

  1. Fork this repository on GitHub.
  2. Clone your forked repository onto your local computer.
  3. Use cd caesar_cipher to move into the project folder.
  4. Run ruby app.rb to start the server.
  5. In your browser, navigate to http://localhost:4567/.