Mastering Ancient Affine Ciphers: Python Examples of ATBaSh, Caesar, ROT13 & More ๐Ÿ”

Explore comprehensive Python code to generate all number pairings for six classic affine cipher examples, including ATBaSh, Caesar, ROT13, and Monoalphabetic Substitution Ciphers. Perfect for cryptography enthusiasts!

Mastering Ancient Affine Ciphers: Python Examples of ATBaSh, Caesar, ROT13 & More ๐Ÿ”
Elucyda
214 views โ€ข Aug 20, 2025
Mastering Ancient Affine Ciphers: Python Examples of ATBaSh, Caesar, ROT13 & More ๐Ÿ”

About this video

Python code for generating all number pairings for the 6 affine cipher examples is shown below:
AShBaR: print([[i%22,(-i)%22] for i in range(1,23)])
[[1, 21], [2, 20], [3, 19], [4, 18], [5, 17], [6, 16], [7, 15], [8, 14], [9, 13], [10, 12], [11, 11], [12, 10], [13, 9], [14, 8], [15, 7], [16, 6], [17, 5], [18, 4], [19, 3], [20, 2], [21, 1], [0, 0]]
ATBaSh: print([[i%22,(-i+1)%22] for i in range(1,23)])
[[1, 0], [2, 21], [3, 20], [4, 19], [5, 18], [6, 17], [7, 16], [8, 15], [9, 14], [10, 13], [11, 12], [12, 11], [13, 10], [14, 9], [15, 8], [16, 7], [17, 6], [18, 5], [19, 4], [20, 3], [21, 2], [0, 1]]
BaTGaSh: print([[i%22,(-i+2)%22] for i in range(1,23)])
[[1, 1], [2, 0], [3, 21], [4, 20], [5, 19], [6, 18], [7, 17], [8, 16], [9, 15], [10, 14], [11, 13], [12, 12], [13, 11], [14, 10], [15, 9], [16, 8], [17, 7], [18, 6], [19, 5], [20, 4], [21, 3], [0, 2]]
ABGaD: print([[i%22,(i+1)%22] for i in range(1,23)])
[[1, 2], [2, 3], [3, 4], [4, 5], [5, 6], [6, 7], [7, 8], [8, 9], [9, 10], [10, 11], [11, 12], [12, 13], [13, 14], [14, 15], [15, 16], [16, 17], [17, 18], [18, 19], [19, 20], [20, 21], [21, 0], [0, 1]]
ALBaM: print([[i%22,(i+11)%22] for i in range(1,23)])
[[1, 12], [2, 13], [3, 14], [4, 15], [5, 16], [6, 17], [7, 18], [8, 19], [9, 20], [10, 21], [11, 0], [12, 1], [13, 2], [14, 3], [15, 4], [16, 5], [17, 6], [18, 7], [19, 8], [20, 9], [21, 10], [0, 11]]
ROT13: print([[i%26,(i+13)%26] for i in range(1,27)])
[[1, 14], [2, 15], [3, 16], [4, 17], [5, 18], [6, 19], [7, 20], [8, 21], [9, 22], [10, 23], [11, 24], [12, 25], [13, 0], [14, 1], [15, 2], [16, 3], [17, 4], [18, 5], [19, 6], [20, 7], [21, 8], [22, 9], [23, 10], [24, 11], [25, 12], [0, 13]]

Cryptographic Curiosities: https://www.youtube.com/playlist?list=PLl0eQOWl7mnU5Tg3zmtBzr08jR7hS0av1

Video Information

Views

214

Likes

12

Duration

19:25

Published

Aug 20, 2025

Related Trending Topics

LIVE TRENDS

Related trending topics. Click any trend to explore more videos.