Cryptography & Security
Basic

Caesar Cipher Shift

Shift each letter forward by k positions.

Formula

c=(m+k)mod26c = (m + k) \bmod 26

Variables

cCipher letter (0–25)
mPlain letter (0–25)
kShift

Example

m=0 (A), k=3: c = 3 (D)

Did You Know?

Julius Caesar shifted letters by three to protect military messages over two thousand years ago.

Share this formula