This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############ 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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######## Made By Mouad Khiat | |
######## This script is the Famous Vigenere cipher its like caesar that ive made in the previous gist | |
######## but the difference is that we deal here with letters not numbers | |
######## So with this script you can encrypt anything you want with your given key , decrypt it either with a key or a part of it | |
######## or by guessing | |
from random import sample | |
from itertools import product as col | |