message = "WKH TXLFN EURZQ IRA MXPSV RYHU WKH ODCB GRJ RI FDHVDU DQG BRXU XQLTXH VROXWLRQ LV EQOVPRHSORRR"
for j in range(26):
flag = ""
for i in range(len(message)):
if message[i].isalpha()==False:
flag += message[i]
elif ord(message[i])+j>ord('Z'):
flag += chr(ord(message[i])+j-26)
else:
flag += chr(ord(message[i])+j)
print flag
Flag = THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG OF CAESAR AND YOUR UNIQUE SOLUTION IS BNLSMOEPLOOO
'Wargame > wechall challenge' 카테고리의 다른 글
[wechall challenge] Training: Crypto - Substitution I (0) | 2019.11.04 |
---|---|
[wechall challenge] Training: Crypto - Caesar II (0) | 2019.11.04 |
[wechall challenge] Training: Crypto - Transposition I (0) | 2019.11.04 |