2019. 8. 24. 14:33, 워게임/System32.kr
from Crypto.Util.number import *
p = 11820547749265118607908336189140061659994883367758644383099900753008997316272341754974105712436833864387373302687964986221522289414610698068230842231006759
q = 2076478388690715447644222392295584753007140199740835763821170999934221864895193172716587341806099928941239417181782165665806324184552950128351328886814107
n = p*q
phi = (p-1)*(q-1)
e = 65537
c = 15175007508230661949213125841853820919948368859221761481847700530363990883761097704372435675552656459480039957857925187102590466676354015036181849182155680399350099015532296504916485091012255771133872737687990897080899160898509685794777509104691093814282101492973637294053730555124794841034604131492169339102
d = inverse(e, phi)
m = pow(c, d, n)
print(long_to_bytes(m))
'워게임 > System32.kr' 카테고리의 다른 글
[System32.kr] RSA103 (0) | 2019.08.24 |
---|---|
[System32.kr] RSA102 (0) | 2019.08.24 |
Comments