1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2025-05-18 12:02:53 +02:00

chore: ignore lockfiles + markdownlint

This commit is contained in:
divlo
2020-12-09 12:42:12 +01:00
parent d4428a6ade
commit 0e0dc67efa
24 changed files with 111 additions and 837 deletions

View File

@ -2,13 +2,13 @@
Created by [@Divlo](https://github.com/Divlo) on 21 October 2020.
## Instructions :
## Instructions
In cryptography, a **Caesar cipher**, also known as **Caesar's cipher**, the **shift cipher**, **Caesar's code** or **Caesar shift**, is one of the simplest and most widely known encryption techniques. It is a type of substitution cipher in which each letter in the plaintext is replaced by a letter some fixed number of positions down the alphabet. For example, with a left shift of 3, D would be replaced by A, E would become B, and so on. The method is named after Julius Caesar, who used it in his private correspondence.
### Example of the alphabet with a rotation by 3 :
### Example of the alphabet with a rotation by 3
```
```txt
Original alphabet : ABCDEFGHIJKLMNOPQRSTUVWXYZ
Alphabet rotated +3 : DEFGHIJKLMNOPQRSTUVWXYZABC
```
@ -20,10 +20,10 @@ The function has the following parameter(s):
- `string`: a string in cleartext (everything uppercase)
- `shift`: an integer, the alphabet rotation factor
## Source :
## Source
- [Wikipedia - Caesar cipher](https://en.wikipedia.org/wiki/Caesar_cipher)
## Examples :
## Examples
See the `input-output.json` file for examples of input/output.