Processing math: 54%
CTFs
Upcoming
Archive
Past events
Tasks
Writeups
Calendar
Teams
Rating
Compare
Create new team
Get team members
FAQ
Contact us
For organizers
Feedback
About
Sign in
Home
/
CTF events
/
S㎩mAndFlags Uけimate w呎は屸de C㏊mᒆonship Teaser ꕫꕫ - ㎩㏚i㎄ Edition
/
Tasks
/
Shor
/
Writeup
Shor
by
Hennich
/
ENOFLAG
Rating:
4.0
Task
3 times RSA:
n
,
e
,
c
-- cipher
Additionally some number
a
with its order
order
o
(
a
)
=
smallest
k
with
a
k
mod
Solution
element-order divides group-order
multiplicative group modulo n has
\varphi(n)
elements
o(a) \mid \varphi(n) = (p-1)(q-1)
\varphi(n) \approx n
(a bit smaller)
Test
phi = n // o(a) * o(a)
compute private key
d = e^{-1}\mod\varphi(n)
, like in key generation
decode message
Approach worked for all 3, gives flag in 3 parts
First part of the flag is "SaF{Wikipedia_still"
Second part of the flag is "_says_you_have_to_di"
Third part of the flag is "scard_odd_orders...}
Original writeup
(https://github.com/ENOFLAG/writeups/tree/master/SpamAndFlags2020/shor).
Comments
x
Sign in with
I don't remember