Skip to content

Instantly share code, notes, and snippets.

@thezakman
Created May 17, 2021 03:27
Show Gist options
  • Save thezakman/af5aade770471c8b7ca5c26bfac4f2c5 to your computer and use it in GitHub Desktop.
Save thezakman/af5aade770471c8b7ca5c26bfac4f2c5 to your computer and use it in GitHub Desktop.
#!/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