Wiener’s attack recovers an RSA private exponent from the public key when the exponent is unusually small: d < 1/3 n^(1/4). section 8.4.2
The attack treats e/n as a continued fraction. Its convergents supply candidate values for d; testing modular decryption identifies the correct private exponent. section 8.4.2
Executable attack
A vulnerable Go generator deliberately chooses d below the bound, computes e as the inverse of d modulo φ(n), and encrypts a message. The exploit computes continued-fraction convergents of e/n, tests each denominator, and successfully decrypts the ciphertext.
