སྒྱུ་རྩལ
མཛེས་སྡུག་དང་བདེ་ཐང
བཟོ་རིག
རིག་གནས་དང་ལོ་རྒྱུས
དགའ་སྟོན
ཁོར་ཡུག
ཟས་དང་བཏུང་རྫས
ཕྱིར་འཕྲུལ་རིག
ཚན་རིག
རྩེད་འགྲན
རིག་རྩལ
གྱོན་རུང
Caesar Cipher
Pixel

བཟོས་མཁན

Pixel

20. སྤྱི་ཟླ་བརྒྱད་པ 2026FI

Caesar Cipher

Shift every letter three places along the alphabet and A becomes D, B becomes E, and the message becomes unreadable to anyone who does not know to shift it back. Suetonius records Julius Caesar using exactly this. It is the simplest substitution cipher there is, and it survived for centuries not because it was strong but because most people could not read at all — the cipher was protecting against the literate few rather than against analysis. It is completely broken by two separate attacks, and building both of them is more instructive than building the cipher: there are only 25 possible keys to try, and even without trying any of them, the letter frequencies give the answer away.
འགོ་བཙུགས
45 minutes

ལམ་སྟོན

1

Build a shift strip and encrypt

Two alphabets, one sliding against the other.

  1. Write the alphabet along a strip of card.
  2. Write it twice, end to end, on a second strip.
  3. Slide the second strip three places and read off the pairs.
Sliding rather than looking up prevents the commonest error, which is forgetting to wrap around from Z back to A. The device makes the modular arithmetic automatic — and this is modular arithmetic, working modulo 26.

གོམ་པ་འདིའི་རྫས་རིགས:

Card Stock (Heavy, 50 Sheets)Card Stock (Heavy, 50 Sheets)1 སྒྲིལ་ཐུམ།
Graphite Pencil SetGraphite Pencil Set1 ཚན་པ།
2

Break it by brute force

The first attack needs no cleverness at all.

  1. Take a ciphertext with an unknown shift.
  2. Write out all 25 possible decryptions.
  3. One will be English.
Time it. Twenty-five options is a key space you can exhaust by hand over a cup of tea. This is why key SIZE matters as an independent property from cleverness — a brilliant cipher with 25 keys is a broken cipher.
3

Break it by frequency, without trying any key

The second attack works even when brute force would not.

  1. Tally letter frequencies in a long ciphertext and draw a bar chart.
  2. Compare with English frequencies — E is commonest, then T, A, O, I, N.
  3. Measure the distance from the ciphertext's tallest bar to E's position.
That distance IS the key. The whole frequency profile has simply slid along by the shift amount, so the shape is unchanged and its offset betrays everything. Note this scales: it works just as well against a cipher with a million keys, because it does not try keys at all.

གོམ་པ་འདིའི་རྫས་རིགས:

Graph PaperGraph Paper1 pad
4

Try to fix it, and fail informatively

Upgrade to a random alphabet and see what survives.

  1. Replace the shift with a fully scrambled substitution alphabet.
  2. Count the key space — 26 factorial, around 4 × 10²⁶.
  3. Now run the frequency attack again on a long message.
It still breaks. The key space is astronomically larger and brute force is hopeless, but each letter still maps to exactly one other letter, so the frequency profile is merely shuffled rather than flattened. Adding keys does not help when the weakness is structural — which is exactly the problem the Vigenère cipher was invented to solve.
5

History and context

Suetonius describes Caesar's use of a shift of three in military correspondence, and Aulus Gellius mentions it too. It was adequate in a world where interception was rare and readers rarer.

Frequency analysis is the important invention, not the cipher. The Arab polymath al-Kindi described it in Baghdad in the ninth century, in a manuscript on deciphering cryptographic messages — the earliest known account. It emerged from scholarship on the Qur'an, where counting letter and word frequencies was already an established method. Cryptanalysis therefore begins as a by-product of textual scholarship, and Europe did not catch up for six hundred years.

ROT13 is a Caesar cipher with a shift of 13, still used online — not for secrecy but to hide spoilers and punchlines from casual view. Because 13 is half of 26, encrypting twice returns the original, which makes it its own inverse. It is honest about being a courtesy rather than a protection.

What this teaches for the rest of cryptography: two independent properties matter, and they are not the same. A cipher must have a key space too large to search, AND it must destroy the statistical structure of the plaintext. Caesar fails both. A random substitution alphabet fixes the first and not the second, which is why it also falls.

རྫས་རིགས

3

འབྲེལ་ཡོད་བིལུ་པིརིན་ཊི

བིལུ་པིརིན་ཊི་འདི་ཚུ་ཐབས་ལམ་དང་རྫས་རིགས། སྤྱི་ཆོས་བགོ་བཤའ་བྱེད

CC0 སྤྱི་དབང

བིལུ་པིརིན་ཊི་འདི་CC0 འོག་བཀྲམས་ཡོད། ཁྱེད་རང་གིས་ཆོག་མཆན་མ་བཞེས་པར་ཕབ་ལེན་དང་བཟོ་བཅོས། བགོ་བཤའ། དགོས་མཁོ་གང་ལའང་བཀོལ་སྤྱོད་བྱས་ཆོག

བཟོ་མཁན་ལ་རྒྱབ་སྐྱོར་བྱེད་པའི་ཆེད་ཁོང་ཚོའི་བིལུ་པིརིན་ཊི་བརྒྱུད་ཐོན་སྐྱེད་ཉོ། བཟོ་མཁན་གྱིས བཟོ་མཁན་གྱི་ཁེ་ཕོགས ཚོང་པས་གཏན་འཁེལ་བྱས་པ། ཡང་ན་བིལུ་པིརིན་ཊི་འདིའི་པར་གསར་བཟོས་ཏེ་ཁྱེད་རང་གི་བིལུ་པིརིན་ཊི་ནང་མཐུད་སྦྲེལ་བྱས་ཏེ་ཡོང་སྒོ་བགོ་བཤའ་བྱེད།

གྲོས་བསྡུར

(0)

ནང་འཛུལ གྲོས་བསྡུར་ནང་མཉམ་ཞུགས་ཆེད

བསམ་ཚུལ་ཚུ་ཐོབ་བཞིན...