RSA Calculator
RSA toy parameters (small primes)
Client-side computation for analysis, verification, and learning. Do not paste production secrets into untrusted sites; prefer local tooling for key material.
Educational / engineering use. RSA mode uses tiny primes for illustration only—not for real key generation.
Add RSA Calculator Free On Your Website
Paste this HTML on your site.
What is RSA Calculator?
RSA is a public-key cryptographic algorithm based on the mathematical difficulty of factoring large prime numbers. It uses a key pair public for encryption, private for decryption to secure data transmission.
RSA Formula
Key generation:
Encryption: C = M^e mod n
Decryption: M = C^d mod n
RSA Step-by-Step
- Choose prime numbers p and q.
- Compute n and phi(n).
- Choose public exponent e with gcd(e, phi)=1.
- Compute private exponent d (mod inverse of e).
- Encrypt/decrypt with modular exponentiation.
RSA Worked Example
Step 1: n = p*q = 3233
Step 2: phi(n) = (p-1)(q-1) = 3120
Step 3: choose e=17
Step 4: compute d such that e*d ≡ 1 (mod 3120), so d=2753
Where RSA Calculator Is Applied
- HTTPS/TLS handshake for secure websites
- SSH authentication (server and user keys)
- Email signing and encryption (PGP, S/MIME)
- Digital certificates (SSL certificates, code signing)
- VPN authentication
- Blockchain wallet key pair generation
- JWT token signing in APIs
Related Cryptography Calculators
Explore similar calculators to streamline your workflow.