哇,这里有压缩包的密码哦,于是我低下了头,看向了我的双手,试图从中找到某些规律
xdfv ujko98 edft54 xdfv pok,.; wsdr43
键盘码,得到的密码为circle
密文为:SRLU{LZPL_S_UASHKXUPD_NXYTFTJT}
SRLU未加密前应为ACTF,编写脚本如下:
#破解key
s='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
s1='ACTF'
s2='SRLU'
key =''
for i in range(len(s1)):
key+=s[(s.find(s2[i])-s.find(s1[i]))%26]
print key
#解密
cipher = 'SRLU{LZPL_S_UASHKXUPD_NXYTFTJT}'
key = 'SP'
#decode
flag = ''
for i in range(0,len(cipher)):
flag += table[(table.find(cipher[i])+26-table.find(key[i%len(key)]))%26]
print flag
#ACTFHWHATKAKCLASSICALKVIGENEREH
'''
cipher = SRLU{LZPL_S_UASHKXUPD_NXYTFTJT}
ACTF{WHAT_A_CLASSICAL_VIGENERE}
'''