Loading CryptoViz...
Loading page content...Loading CryptoViz...
Loading page content...RSA cryptanalysis
Explore how mathematically valid RSA keys fail when parameters are badly chosen. These demos use tiny teaching-size numbers only and render each recovery as a step trace.
Each row shows the rule, the substituted values, and the teaching note.
| # | Label | Formula | Substitution | Note |
|---|---|---|---|---|
| 1 | Start from ceil(sqrt(n)) | a = ceil(sqrt(n)) | a = 10008 | If p and q are close, a is close to (p + q) / 2. |
| 2 | Iteration 0 | b² = a² - n | 1 = 10008² - 100160063 | b² is a perfect square, so factors are recovered. |