Substitution Ciphers in Python | PTP #1

4 months ago
262

PTP #1
As I continue my coding journey I decided to look into ciphers. The purpose of this project was to implement four substitution ciphers in (p)ython (a)nd lea(r)n a little m(o)re about the math behind them. I’m (s)ure every(o)ne has heard of the Caesar cipher, (m)yself i(n)cluded, but after looking that up I fell (i)nto (a) rabbit hole of a few other types of substitution (c)iphers I wanted to learn about as well. Comment below with your favorite cipher or any suggestions for improvement!

Note: In the video I didn't account for the key in the viginere cipher having uppercase letters. I have since updated the code to return the key as lowercase with return key.lower()

Ihrbc mah not lakqzwzt! Xet Pnxikhm nl Awvujhs!

Timestamps:
00:00 Intro & Menu
02:03 Atbash Cipher
03:06 Caesar Cipher
04:54 Affine Cipher
08:02 Viginere Cipher
09:35 Full Code & Testing

(I can't add links yet :p)
Resources:
ASCII Table: cs.cmu.edu/~pattis/15-1XX/common/handouts/ascii.html

Full Code on GitHub:
github.com/parosomniac/Ciphers-Python

Tags: #python #ciphers #cryptography #ptp

Loading 1 comment...