Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
speedy! solution in Speedy category for Cipher Dict (decryption) by tamagoyaki
def get_plain(cipher: dict) -> str:
arr,que,count = [],[cipher],1
while que:
count+=1
q = que.pop(0)
for k,v in sorted(q.items(),reverse=count%2):
arr.append(k)
que.append(v)
return str(bytes.fromhex(str(hex(int("".join([str(i) for i in arr]))))[2:]).decode())
May 7, 2024
Comments: