An open API service indexing awesome lists of open source software.

https://github.com/justin-bento/ruby-caesar-cipher

This repository contains solutions and exercises for the Basic Ruby Projects module in the Full Stack Ruby on Rails course from The Odin Project.
https://github.com/justin-bento/ruby-caesar-cipher

ruby the-odin-project

Last synced: about 1 year ago
JSON representation

This repository contains solutions and exercises for the Basic Ruby Projects module in the Full Stack Ruby on Rails course from The Odin Project.

Awesome Lists containing this project

README

          

# Project – Caesar Cipher

This repository contains the very first project in the first module of the Basic Ruby Projects curriculum. The project is based on Caesar's Cipher encryption, a classic technique in cryptography. It works by substituting each letter in a text file with another letter a fixed number of positions down the alphabet

- **Institution:** [The Odin Project](https://www.theodinproject.com)
- **Course:** Full Stack Ruby on Rails
- **Module:** Basic Ruby Projects
- **Author:** Justin Bento
- **Date Started:** 2025-06-29

## Project Goals

The goal of this project is to implement a Caesar cipher that takes in a string and a shift factor, and then outputs the modified string using a right shift.

## Features to Implement

- [ ] Create your own method called caesar_cipher.
- [ ] Apply two paramaters called message, and shifter.
- [ ] The first method 'message' returns a string outpt.
- [ ] The second method 'shifter' returns a number outpt.
- [ ] Ensure the text and the message output both at the same time.
- [ ] Keep the text output the same casing.

## Example Usage

Here is an example of Caesar Cipher encryption in practice:

```ruby
caesar_cipher("What a string!", 5)
→ "Bmfy f xywnsl!"
```