htttpss @ 2024-03-07 23:21:21 👍0
仿射密码
sudopacman @ 2023-12-07 23:21:21 👍0
#! /bin/python a = "szzyfimhyzd" flag = "" for i in a: flag += chr(pow(((ord(i)-97) + 8) * pow(17,-1,26),1,26)+97) print("flag{"+flag+"}") # 犯蠢了, 一直用9
Wang_Micro @ 2023-12-07 23:21:21 👍0
flag{affineshift},评论里打kali的是怎么回事
web1234 @ 2023-11-07 23:21:21 👍1
发现题目的名称是affine,直接想到放射加密,直接用在线网站进行解码(a=17,b=-8)直接解码flag里边的内容,得到的就是flag的值
你能刑 @ 2023-06-07 23:21:21 👍0
仿射加密
Champa9ne @ 2023-06-07 23:21:21 👍1
差点看成了affineshit
流 @ 2023-06-07 23:21:21 👍1
flag{affineskali}
aWxvdmVjdGY @ 2023-06-07 23:21:21 👍1
1、仿射Affine密码解密 2、a=17、b=-8
凤嘤嘤 @ 2023-06-07 23:21:21 👍0
ez
key = gmpy2.invert(17, 26) enc = "szzyfimhyzd" flag = "" for i in enc: flag += chr((ord(i) - 97 + 8) * key % 26 + 97) print("flag{" + flag + "}")