Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
1-liner (clear version in 3rd party) solution in Creative category for Rotating Grille Cipher by Phil15
grille_encrypt=lambda t,g,N=__import__('numpy'),I=__import__('itertools'):None if(sum(r:=[N.rot90(m,-k)for m in [N.array([[c=="X"for c in r]for r in g])]for k in range(4)])!=1).any()else"".join(s for p in[[i for m in r for i in I.compress(range(16), m.flat)]]for x in zip(*[iter(t)]*16)for _,s in sorted(zip(p,x)))
Dec. 16, 2021
Comments: