Tags: crypto
Rating: 2.0
The longest way to solve the challenge
import md5
alph = "ABCDEFGHIJKLMNOPQRSTUVWXYZ{}"
enc = "LMIG}RPEDOEEWKJIQIWKJWMNDTSR}TFVUFWYOCBAJBQ"
for j in range(28):
for k in range(28):
for l in range(28):
for m in range(28):
for n in range(28):
i = 0
clear = ""
key = (7, 20, 22, 24, 15, 24, 11, j, k, l, m, n)
for char in enc :
clear += alph[(alph.index(char) + key[i]) % 28]
i = ((i+1)%12)
if md5.new(clear).hexdigest() == "f528a6ab914c1ecf856a1d93103948fe":
print "#"*20
print clear
print "#"*20
exit()