CG-CTF CRYPTO部分wp

1,easy
base64解密得flag

2,keyboard
键盘码,在键盘上画画得flag:areuhack

3,异性相吸
根据提示,写脚本

with open('密文.txt')as a:
    a=a.read()
with open('明文.txt')as b:
    b=b.read()
d=''
for i in range(0,len(b)):
    c=chr(ord(a[i])^ord(b[i]))
    d+=c
print(d)

得到flag:nctf{xor_xor_xor_biueiubiu}
但这里不知为何是biueiubiu,改为biubiubiu后正确

猜你喜欢

转载自www.cnblogs.com/harmonica11/p/11365492.html