本文记录BUUCTF上Crypto部分2020年的题目。其他BUUCTF的题目参见文末的链接。
$[timeformat('2020-11-02T11:55:44+08:00')]
#CTF#Crypto

[GKCTF2020]小学生的密码学

e(x)=11x+6(mod26)
密文:welcylk
(flag为base64形式)
import string
ctext = "welcylk"
ptext = ""
for i in ctext:
    for j in string.ascii_lowercase:
        n = ord(j) - 97
        if chr((11 * n + 6) % 26 + 97) == i:
            ptext += j
            print(ptext)

评论