BUUCTF 每日打卡 2021-7-16
引言
颓废了一天,水了
[UTCTF2020]hill
hill?山丘?变异栅栏? 没有头绪,找wp 原来是希尔密码,没见过 主要就是要求一个nxn的密钥矩阵,然后解密即可 从wp中得知utflag被加密成wznqca,只能构造6个式子,还要模26,所以不可能是3x3的矩阵,只有可能是2x2的矩阵,4个未知数 即
1 | import random |
1 | [1, 22, 11, 91] |

utflag{d4nger0us_c1pherText_qq}
[INSHack2017]rsa16m
题干描述: When you need really secure communications, you use RSA with a 4096 bit key. I want really really really secure communications to transmit the nuclear launch codes (yeah IoT is everywhere man) so I used RSA with a 16777216 bit key. Surely russians will not be able to factor that one !
平时为了保证安全RSA会采用4096位的密钥,但他给我整了个16777216位的 wtm直接找wp 啊这 这还真想不到 代码如下:
1 | import gmpy2 |
结果为
结语
希望继续坚持