Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Solution with numpy module solution in 3rd party category for Cipher Map by piotr.sawicki
import numpy as np
def recall_password(cipher_grille, ciphered_password):
result = ''
char_table = np.chararray((len(ciphered_password),len(ciphered_password)))
for enum1, i in enumerate(ciphered_password):
for enum2, k in enumerate(i):
char_table[enum1][enum2] = k
pass_key = np.zeros((len(cipher_grille), len(cipher_grille)), dtype=int)
for enum1, i in enumerate(cipher_grille):
for enum2, k in enumerate(i):
if k == 'X':
pass_key[enum1][enum2] = 1
for rotate in range(4):
for i in np.rot90(pass_key,rotate,(1,0))*char_table:
for k in i:
if str(type(k)) == r"":
result += k.decode("utf-8")
return result
Nov. 18, 2017
Comments: