Generate RSA key pairs, encrypt and decrypt messages, and watch attacks break small keys in real time. All arithmetic uses BigInt for correctness.