0x01. 加密过程
from Crypto.Util.number import bytes_to_long
print("加密过程...")
n = 2 ** 512
m = 3097502164103987164323080671192386511065857410221288153061140622970224914473224807053016180200525552838404973541878618391348653867355109392070344210878871
e = 95225608106780286174533253225403741535234459109003153780283169100088225690381088627758919156459056579
c = pow(m, e, n)
print('c=',c)
# c = 7575520525465161327133831389027121519268752255113564686585808502942641702897542584106400374391419523883832010238676747853882832409855139906428435538853383
0x02 解密过程
from sympy.ntheory import discrete_log
print("解密过程...")
n = 2**512
m = 3097502164103987164323080671192386511065857410221288153061140622970224914473224807053016180200525552838404973541878618391348653867355109392070344210878871
c = 7575520525465161327133831389027121519268752255113564686585808502942641702897542584106400374391419523883832010238676747853882832409855139906428435538853383
e = discrete_log(n,c,m)
print('e=',e)
# e= 95225608106780286174533253225403741535234459109003153780283169100088225690381088627758919156459056579