BUU刷题日记20221021 RSA2 题目给定n、e、dp、c 非预期解:直接分解n 下面考虑n不能分解的情况 推导过程 dp ≡ d mod (p-1) ed ≡ 1 mod (p-1) * (q-1) ed = 1 + k2(p-1)(q-1) 对1式两端同乘e,得 e * dp ≡ ed mod (p-1) e * dp = k1(p-1) + ed 代入ed得 e * dp = k1(p-1) + 1 + k2(p- 2022-10-21 CTF #diary
BUU刷题日记20221020 RSA1 给定dp、dq类型 dp ≡ d mod (p-1) dq ≡ d mod (q-1) m ≡ cd mod n m = cd + k * n m = cd +k * p * q 对上式两端同时对p、q分别取余,得:(中国剩余定理) m1 ≡ cd mod p m2 ≡ cd mod q 同理,可得到 cd = m1 +k * p 代入到 m2 ≡ cd mod q 中: m2 ≡ (m 2022-10-20 CTF #diary
2022BUUCTF新生赛-RSA 题目源码 123456789101112131415161718from Crypto.Util.number import *import gmpy2m = bytes_to_long(flag)p = getPrime(512)q = getPrime(512)n = p * p * qe = 0x10001d = inverse(e, p * (p-1) * (q-1))assert m & 2022-10-16 CTF #wp
2021ByteCTF-easyxor 题目源码如下 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152#! /usr/bin/env pythonfrom Crypto.Util.number import bytes_to_long, long_to_bytesfrom random impor 2022-10-16 CTF #wp
梦开始的地方 Mac下利用Hexo和github pages搭建个人博客 环境配置 1.Node.js安装 下载地址:Node.js 2.淘宝镜像安装 12//打开终端terminal$ npm install -g cnpm --registry=https://registry.npm.taobao.org 3.安装Hexo 1234// 使用命令去安装Hexocnpm install -g hexo-c 2022-10-15 建站 #博客搭建
Hello World Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick 2022-10-15