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

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 🎯

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.