RSA Key Generator
Generate RSA public and private key pairs in PEM format. Choose from 1024, 2048, or 4096-bit key sizes for different security requirements.
Select a key size and click "Generate Key Pair" to create your RSA keys.
RSA Key Generator — Generate RSA Key Pair Online
RSA (Rivest–Shamir–Adleman) is one of the first public-key cryptosystems and is widely used for secure data transmission. An RSA key pair consists of a public key (for encryption or verifying signatures) and a private key (for decryption or signing).
Key Sizes
- 1024 bits: Legacy. Not recommended for new applications due to advances in factoring algorithms.
- 2048 bits: The current standard. Provides strong security for most applications through at least 2030.
- 4096 bits: High security. Computationally more expensive but suitable for long-term sensitive data.
Key Format (PKCS#1 PEM)
Keys are generated in PKCS#1 PEM format, recognizable by -----BEGIN RSA PUBLIC KEY----- and -----BEGIN RSA PRIVATE KEY----- headers. This format is widely compatible with OpenSSL and most cryptographic libraries.
Security Note
Keys are generated server-side using Node.js's built-in crypto module and are not stored or logged. For maximum security in production, generate keys on your own machine using OpenSSL: openssl genrsa -out private.pem 2048.