加密一:base64加密
加密二:数据以13个为一组进行调换
加密三:凯撒加密
解密:
import base64
data='EmBmP5Pmn7QcPU4gLYKv5QcMmB3PWHcP5YkPq3=cT6QckkPckoRG'
data1=''
# 凯撒解密
for i in data:
if ord(i)>=48 and ord(i)<=57:
data1 += chr((ord(i)-3-48)%10+48)
elif ord(i)>=65 and ord(i)<=90:
data1 += chr((ord(i)-3-65)%26+65)
elif ord(i)>=97 and ord(i)<=122:
data1 += chr((ord(i)-3-97)%26+97)
else:
data1 += i
# 数据调换
flag = data1[13:26] + data1[39:] + data1[:13] + data1[26:39]
# base64解密
print(base64.b64decode(flag))
b'GWHT{672cc4778a38e80cb362987341133ea2}'
// 参考:[羊城杯 2020]easyre_hello,dasctfer~~~\ninput your flag,i will tell you-CSDN博客
// 注:文章为本人为督促自己学习而做的做题笔记,如有侵权,请联系我,我将在第一时间删除