CryptographyLevel 4★★★★☆140 pts

Cryptanalysis - Wiener's Attack on RSA

Mission

An embedded-device team made the RSA private exponent d very small to speed up decryption. The public exponent e in public_key.txt is almost as large as n. Recover d from the continued fraction expansion of e/n, decrypt ciphertext.txt and extract the flag.

#cryptography#rsa#wiener#continued-fraction