CAESAR CIPHER
ENCRYPTION · SHIFT BY 3
prostudypk.com
Secret Message: Shift 3
plain
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
A
B
C
D
cipher
plain
cipher
H
K
E
H
L
O
L
O
O
R
key = 3
shift
HELLO
plaintext
KHOOR
ciphertext
1. Encryption
Each letter moves 3 ahead: A→D, B→E
Decrypt: go back 3
2. Formula
C = (P + k) mod 26
X→A, Y→B, Z→C (wrap around)
3. Why?
To hide data:
passwords, WhatsApp chats
COMPUTER SCIENCE · DATA SECURITY · PUNJAB BOARDS
‹ Labs
↺
❚❚
1×
Next ›