Skip to content

Commit f5eb521

Browse files
committed
reformatted
1 parent 092c3b3 commit f5eb521

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Caesars_Cipher/Caesars_Cipher.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
One of the simplest and most widely known ciphers is a `Caesar cipher`, also known as a `shift cipher`. In a shift cipher the meanings of the letters are shifted by some set amount.
22

3-
A common modern use is the `[ROT13](https://www.freecodecamp.org/news/how-to-code-the-caesar-cipher-an-introduction-to-basic-encryption-3bf77b4e19f7/) cipher`, where the values of the letters are shifted by 13 places. Thus `A ↔ N`, `B ↔ O` and so on.
3+
A common modern use is the [ROT13](https://www.freecodecamp.org/news/how-to-code-the-caesar-cipher-an-introduction-to-basic-encryption-3bf77b4e19f7/) cipher, where the values of the letters are shifted by 13 places. Thus `A ↔ N`, `B ↔ O` and so on.
44

5-
Write a function which takes a `[ROT13](https://www.freecodecamp.org/news/how-to-code-the-caesar-cipher-an-introduction-to-basic-encryption-3bf77b4e19f7/) cipher` encoded string as input and returns a decoded string.
5+
Write a function which takes a [ROT13](https://www.freecodecamp.org/news/how-to-code-the-caesar-cipher-an-introduction-to-basic-encryption-3bf77b4e19f7/) cipher encoded string as input and returns a decoded string.
66

77
All letters will be uppercase. Do not transform any non-alphabetic character (i.e. spaces, punctuation), but do pass them on.

Caesars_Cipher/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Check [Caesars_Cipher.md](https://github.com/codewithmide/JavaScript-Algorithms-and-Data-Structures-Projects/blob/master/Caesars_Cipher/Caesars_Cipher.md)
2+
3+
`rot13("SERR PBQR PNZC")` should decode to the string `FREE CODE CAMP`
4+
`rot13("SERR CVMMN!")` should decode to the string `FREE PIZZA!`
5+
`rot13("SERR YBIR?")` should decode to the string `FREE LOVE?`
6+
`rot13("GUR DHVPX OEBJA SBK WHZCF BIRE GUR YNML QBT.")` should decode to the string `THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG`.

0 commit comments

Comments
 (0)