In: Computer Science
English Alphabet (A..Z) are represented numerically by (0..25), e.g. A is 0, B is 1, etc. Use Caesar’s Cipher to encrypt the message HELLO WORLD with the Key being 4.
Char = H
H is 7
7 + 4 = 11
11 mod 26 = 11
11 => L
Char = E
E is 4
4 + 4 = 8
8 mod 26 = 8
8 => I
Char = L
L is 11
11 + 4 = 15
15 mod 26 = 15
15 => P
Char = L
L is 11
11 + 4 = 15
15 mod 26 = 15
15 => P
Char = O
O is 14
14 + 4 = 18
18 mod 26 = 18
18 => S
Char = W
W is 22
22 + 4 = 26
26 mod 26 = 0
0 => A
Char = O
O is 14
14 + 4 = 18
18 mod 26 = 18
18 => S
Char = R
R is 17
17 + 4 = 21
21 mod 26 = 21
21 => V
Char = L
L is 11
11 + 4 = 15
15 mod 26 = 15
15 => P
Char = D
D is 3
3 + 4 = 7
7 mod 26 = 7
7 => H
Answer: LIPPS ASVPH