RSA_2

Description

Woah! Are these launch codes? Probably not...but can you find out what they mean?

Launch the Ship

We're given some values, which appear to belong to RSA

c = 4519595837258131182432680292760199726858465047370563757831166189248293616160819902277442750691931010639242010386584639325228745787372353607300343994557363101961956376999346258599093288477537033714341298932933608867878893587755392351356640357619202700761334568929728963380143117696093843740980191971532408514353304363622892811507963376245555869085759865963000104587355779394272400329406137360546814661151197871599393759143943152093149874047501290282591806676372749789349193454014871154189449454124066101313277357011196902304150115026208706546784140072933221662704898834642110023305125411615408655906977954891849558168
n = 10882518774669003944157704154060893727176500312851091673222032446414397983329226648710524029530042506917548405010321886888383784437412878317279125735266665738710451000324479427474121632543211455820612255552659064645273924838793242943609006737270444426887045752914518591646586220172704209771168691131241434485638708369819937441923718442231903304106407595055064180706313266003253677979788910301741561915699397442292917477201518112404469650348466954494099715412511446346180435407895859429218811738889417028415772780951792086360918580019747176099576543219583251001078053766176721057772275442488586174379496337825440683913
e = 65537

We can use Alpertron to help us decrypt n to get the value of the two primes, p and q

Using these values, we can find the secret key d and decrypt the cipher c

Which prints out bytearray(b'retroCTF{numb3er_th30ry_w1n5}')

Flag

retroCTF{numb3er_th30ry_w1n5}

Last updated