Security

RSA 2048 Key Generator

RSA Key Pair

Generate a new RSA-2048 public and private key pair in your browser.

Never share your private key. Generate a new pair immediately if exposure is suspected.

Generated RSA Keys

Public Key

Private Key

Frequently Asked Questions

What is RSA and what is it used for?
RSA is an asymmetric encryption algorithm that uses a public/private key pair. The public key encrypts data or verifies signatures; the private key decrypts data or creates signatures. It is widely used in TLS/HTTPS, SSH authentication, PGP email, and code signing.
What key size should I choose for RSA?
2048-bit is the current minimum for new deployments. 4096-bit provides a larger security margin and is recommended for long-lived keys (certificate authorities, archival signing). NIST recommends migrating away from RSA toward elliptic-curve cryptography for future applications.
What is the difference between public and private keys?
Your public key can be freely shared with anyone. Your private key must be kept secret. In encryption: the sender uses your public key to encrypt; only your private key can decrypt. In signing: you use your private key to sign; anyone with your public key can verify the signature.