https://github.com/lucas4tech/ruby-caesar-cipher-example
Implement a caesar cipher that takes in a string and the shift factor and then outputs the modified string using Ruby 🎯
https://github.com/lucas4tech/ruby-caesar-cipher-example
challenge desing-patterns hackathon logic-programming ruby
Last synced: 10 months ago
JSON representation
Implement a caesar cipher that takes in a string and the shift factor and then outputs the modified string using Ruby 🎯
- Host: GitHub
- URL: https://github.com/lucas4tech/ruby-caesar-cipher-example
- Owner: lucas4tech
- Created: 2023-03-04T18:42:04.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-04T18:42:44.000Z (over 3 years ago)
- Last Synced: 2025-07-12T05:24:35.693Z (11 months ago)
- Topics: challenge, desing-patterns, hackathon, logic-programming, ruby
- Language: Ruby
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Caesar Cipher
Implement a caesar cipher that takes in a string and the shift factor and then outputs the modified string:
```
caesar_cipher("What a string!", 5)
=> "Bmfy f xywnsl!"
```
#### Quick Tips:
* You will need to remember how to convert a string into a number.
* Don’t forget to wrap from z to a.
* Don’t forget to keep the same case.