Skip to content

Commit 092c3b3

Browse files
committed
added test cases
1 parent 0fce38d commit 092c3b3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Caesars_Cipher/Caesars_Cipher.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
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.
2+
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.
4+
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.
6+
7+
All letters will be uppercase. Do not transform any non-alphabetic character (i.e. spaces, punctuation), but do pass them on.

0 commit comments

Comments
 (0)