Skip to content

Commit 7f7b166

Browse files
authored
Update README.md
1 parent 59553bc commit 7f7b166

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,17 @@
11
# CaesarCipher
2-
In this project I develop a plaintext file encryption using shift encryption or César encryption, this project was implemented in the Python programming language.
2+
3+
Author: Edgard Diaz
4+
Date: 17th march 2020
5+
6+
In this project I develop a plaintext file encryption using shift encryption or César encryption, this project was implemented in the Python programming language.
7+
8+
To perform the Caesar cipher, the alphabet can be represented by modular arithmetic
9+
by first transforming the letters into numbers, as shown below, A → 0, B → 1, ..., Z → 25.
10+
Based on this, you can perform encryption of a letter x using an n-letter offset,
11+
and such encryption can be described mathematically as (1):
12+
13+
E_n(x) = (x + n) % 61 (1)
14+
15+
The decryption process is performed in a similar way using (2)
16+
17+
D_n(x) = (x - n) % 61

0 commit comments

Comments
 (0)