Skip to content

Instantly share code, notes, and snippets.

View robiyanto20's full-sized avatar
🎃
nama saya Agus

mas agus kalimantan robiyanto20

🎃
nama saya Agus
View GitHub Profile
@robiyanto20
robiyanto20 / caesar.py
Created September 19, 2023 06:47 — forked from mouadkhiat/caesar.py
Caesar Cipher Python [Encrypt / Decrypt]
############ Made By Mouad KHIAT / Python 3.7
############ if you have another idea to write this famous cipher put it in the comment
############ It's started with DOHD MDFWD HVW ==> ALEA JACTA EST (key = 3)
def transform(x):
x = list(x)
for i,n in enumerate(x):
if n in ABC:
x[i] = ABC.index(n)
return x
def crypt(x,key):