摘要:
from Crypto.Util.number import * from gmpy2 import * from secret import flag p = getPrime(25) e = '# Hidden' q = getPrime(25) n = p * q m = bytes_to_l 阅读全文
摘要:
lfsr题目 flag = "flag{xxxxxxxxxxxxxxxx}" assert flag.startswith("flag{") assert flag.endswith("}") assert len(flag)==14 def lfsr(R,mask): output = (R << 阅读全文
摘要:
给出了 RSA的标准public key生成 直接用标准库 from Crypto.PublicKey.RSA import * with open(r'D:\浏览器下载\attachment\safety_in_numbers\pubkey.pem','r+') as f: key = f.rea 阅读全文
摘要:
这题的关键在于 移位的过程中要防止溢出!!! 因为它移的很大(<<6) 可能超过char(8位)的范围 exp: #include<bits/stdc++.h> #include<windows.h> using namespace std; signed main(){ unsigned char 阅读全文