RSA Calculator
This is a teaching tool for the RSA algorithm, worked on numbers small enough to check by hand. Give it two primes and it returns the modulus, the totient, a public exponent and the private exponent found by extended Euclid, with the inverse check written out; separate actions encrypt a whole number, decrypt one, and run the extended Euclidean algorithm on any pair of numbers with every division step shown. The primes are capped at 50,000 so all the arithmetic stays exact. Nothing produced here is secure: a modulus this size is factored in microseconds, and textbook RSA without padding is broken even with large primes.