Skip to content

Instantly share code, notes, and snippets.

@kamaci
Created May 1, 2023 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kamaci/20047984a4cf56fa02902f53ae351c39 to your computer and use it in GitHub Desktop.
Save kamaci/20047984a4cf56fa02902f53ae351c39 to your computer and use it in GitHub Desktop.
for index, perm in enumerate(permutations([0, 1, 2, 3, 4, 5])):
permutation_cipher = PermutationCipher(perm)
if permutation_cipher.decrypt(cipher_of_cipher_data) == trimmed_cipher_data:
print(f"Found at epoch: {index}. Result is: {perm}")
break
index += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment