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.
To see this app in action, check it out on Heroku.
- Fork this repository on GitHub.
- Clone your forked repository onto your local computer.
- Use
cd caesar_cipher
to move into the project folder. - Run
ruby app.rb
to start the server. - In your browser, navigate to http://localhost:4567/.