*crypto*--- 复盘--网鼎杯青龙组2020-you_raise_me_up

sagemath的使用

 from Crypto.Util.number import *
from sympy.ntheory import discrete_log
n = 2 ** 512

m = 391190709124527428959489662565274039318305952172936859403855079581402770986890308469084735451207885386318986881041563704825943945069343345307381099559075
c = 6665851394203214245856789450723658632520816791621796775909766895233000234023642878786025644953797995373211308485605397024123180085924117610802485972584499
flag=discrete_log(n, c, m)
print(hex(flag))

原文地址:https://www.cnblogs.com/kubopiy/p/13861040.html