Created
May 17, 2021 03:27
-
-
Save thezakman/af5aade770471c8b7ca5c26bfac4f2c5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import time | |
import string | |
tamanho = len('UHJTBCUOZXXTHNIUWANDNR') | |
alpha = string.ascii_uppercase | |
achados = [] | |
def corte(i): | |
txt = open('cipher.txt', 'r', encoding='utf-8') | |
seg = [] | |
for linha in txt: | |
letra = linha[i:i + 1] | |
if letra not in seg: | |
seg.append(letra) | |
seg.sort() | |
for c in alpha: | |
if c not in seg: | |
achados.append(c) | |
for x in range(tamanho): | |
corte(x) | |
print ''.join(achados) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment