← Back to CryptoToolkit

RSA attack guide

RSA attacks explained through runnable browser demos.

RSA is not broken by one trick. It fails when keys are weak, padding is missing, messages are reused badly, or implementation shortcuts leak structure. CryptoToolkit groups those failures into interactive modules.

Factoring weak moduli

RSA Attack Workflow factors small semiprimes, rebuilds the private key, and decrypts the ciphertext.

Textbook RSA

Textbook RSA demonstrates why raw RSA encryption is malleable without padding.

Small private exponent

Wiener's attack uses continued fractions to recover a private key when d is too small.

Broadcast attack

Hastad broadcast combines ciphertexts with CRT when the same message is sent with e=3.

Padding oracle

Bleichenbacher shows why PKCS#1 v1.5 oracle behavior is dangerous.

What these demos teach

Production boundary

CryptoToolkit is for education. The demos intentionally make attacks visible at small sizes. Production RSA should use audited libraries, modern padding, strong key sizes, and protocol-level review.