文章
104
标签
2
分类
70
Home
Archives
Tags
Categories
List
Music
Movie
Link
About
Rhea's Blog
eg1
搜索
Home
Archives
Tags
Categories
List
Music
Movie
Link
About
eg1
发表于
2025-06-14
|
更新于
2025-06-18
|
Crypto
替换加密
仿射密码(Affine Cipher)
|
浏览量:
WGRMcdt{Rxqtsdgncdghxqz}
a=7,b=3
TZCFlag{Congratulations}
文章作者:
Rhea
文章链接:
https://rhea006.github.io/2025/06/c6778b7d8e59.html
版权声明:
本博客所有文章除特别声明外,均采用
CC BY-NC-SA 4.0
许可协议。转载请注明来源
Rhea's Blog
!
上一篇
p,q,e,c
p = 3487583947589437589237958723892346254777q = 8767867843568934765983476584376578389e = 65537cipher = 26369494845903294944045520286034018329014599704760363106090278637665342700044 123456789101112131415161718192021from sympy import mod_inversee = 65537p = 3487583947589437589237958723892346254777q = 8767867843568934765983476584376578389cipher = 26369494845903294944045520286034018329014599704760363106090278637665342700044n = p * q #计算模数phi_n = (p - 1) * (q - 1) #计算欧拉函数d = mo...
下一篇
p,q,e
在一次RSA密钥对生成中,假设p=473398607161,q=4511491,e=17求解出d作为flga提交 1234567p=473398607161q=4511491e=17z=(p-1)*(q-1) #欧拉函数d = pow(e, -1, z) #(e * d) % z == 1 #m = pow(c, d, n)print(d) or 1234567import gmpy2p = 473398607161 q = 4511491 e = 17 z = (p - 1) * (q - 1) d = gmpy2.invert(e, z) # e*d mod z = 1print(d) 右键125631357777427553
评论
Rhea
正在学PWN的菜狗
文章
104
标签
2
分类
70
Follow Me
公告
This is my Blog
最新文章
pwn135-159【停更先,堆好难,打打新生赛去了,学一下re】
2025-09-17
16.04dockerfile
2025-08-27
docker命令
2025-08-27
pwn111-134
2025-08-27
pwn101-110
2025-08-17
搜索
数据加载中