- Round: 26 (2022/09)
- Category: Crypto
- Points: 100
- Solves: 17
Alice tried to implement RSA in Python the first time, but there is a critical bug preventing Alice from getting her flag back.
The ^
in Python is not power (**
), but xor operator. So pow(m, e, n)
is basically computing a degree 5 polynomial. (5 is the hamming weight of e
) So you can bruteforce the
As for solving the polynomial, more people are using bruteforce combined with binary search to solve it. But it turns out if you are using binary search then you don't even need to bruteforce the