Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Second solution in Clear category for Scytale Encryption by kazuki.h
def scytale_decipher(ciphertext, crib):
result = None
for n in range(2, len(ciphertext)//2+1):
s = "".join(ciphertext[i::n] for i in range(n))
if crib in s:
if result is None: result = s
else: return None
return result
Feb. 9, 2022
Comments: