RSA Key Generator
Generate cryptographically secure RSA public/private key pairs
Key Settings
Recommended for most use cases. Good balance of security and performance.
Generating RSA key pair...
This may take a few seconds for larger key sizes
Private Key
Keep this key secret and secure
Public Key
Safe to share publicly
Key Fingerprint (SHA-256)
-
Important: Store your private key securely. Never share it or commit it to version control. Anyone with access to your private key can impersonate you or decrypt your data.
Privacy & Security
- All key generation happens locally in your browser using Web Crypto API
- Keys never leave your device or get sent to any server
- Cryptographically secure random number generation
- Safe for generating production keys
About RSA Key Generator
RSA (Rivest-Shamir-Adleman) is one of the most widely used public-key cryptosystems. It's used for secure data transmission, digital signatures, and key exchange. This tool generates cryptographically secure RSA key pairs using the Web Crypto API.
Key Sizes
- 2048 bits: Minimum recommended size. Suitable for short-term use and non-critical applications.
- 3072 bits: Provides ~128 bits of security. Recommended by NIST for use through 2030.
- 4096 bits: Maximum security. Recommended for long-term protection and sensitive data.
Output Formats
- PKCS#8: Modern standard format. Compatible with most software and libraries.
- PKCS#1: Legacy format specific to RSA. Some older systems may require this.
Common Use Cases
- SSH key authentication
- SSL/TLS certificates
- Code signing
- Email encryption (S/MIME, PGP)
- JWT token signing
- API authentication
Security Recommendations
- Use at least 2048-bit keys for any new deployment
- Prefer 4096-bit keys for long-term security
- Store private keys with strong encryption
- Use passphrases for additional protection
- Rotate keys periodically