RSA数论推导经典三题 [GKCTF 2021]RRRRsa 1 & 东华杯fermat‘s revenge & 2019-AceBear Security Contest-babyRSA
[GKCTF2021]RRRRsa1题目描述:fromCrypto.Util.numberimport*fromgmpy2importgcdflag=b'xxxxxxxxxxxxx'p=getPrime(512)q=getPrime(512)m=bytes_to_long(flag)n=p*qe=65537c=pow(m,e,n)print('c={}'.format(c))p1=getPrime