摘要: #####1.题目 #####2.看完题目发现给了p,q,e,c,我还以为和这道题一样BUUCTF-crypto:rsarsa,直接用这道题的脚本跑了,一交答案发现答案错误。 #####3.修改脚本,将m转为bytes后提交,正确 阅读全文
posted @ 2020-11-13 17:50 李定鸿 阅读(590) 评论(0) 推荐(0) 编辑
摘要: #####1.题目: Math is cool! Use the RSA algorithm to decode the secret message, c, p, q, and e are parameters for the RSA algorithm. p = 9648423029010515 阅读全文
posted @ 2020-11-13 17:17 李定鸿 阅读(1772) 评论(0) 推荐(0) 编辑
摘要: #####1.题目 #####2.在RSA中e*d对(p-1)(q-1)取余等于1,本题已知e,p,q要求d,可以直接使用gmpy2中的invert来求逆元,也就是如下: #####3.得到答案: 阅读全文
posted @ 2020-11-13 16:47 李定鸿 阅读(357) 评论(0) 推荐(0) 编辑