149 runs

RSA Key Pair Generator (2048 & 4096-bit)

Generate cryptographically secure RSA public and private key pairs directly in your browser using Web Crypto RSA-OAEP with PEM export.

Instructions:
Select 2048-bit or 4096-bit key size and click Generate RSA Key Pair. Copy or download the Public Key (SPKI) and Private Key (PKCS#8) PEM files.

RSA Cryptographic Keypair & Envelope Suite

RFC 8017 / NIST SP 800-57 Standard: 2048, 3072 & 4096-bit In-Browser Key Generator & Roundtrip Crypto Sandbox

100% Client-Side Air-Gapped Security: Key pairs are synthesized exclusively inside your browser's private memory sandbox via the W3C Web Cryptography API (window.crypto.subtle). Private keys are never transmitted over the network or stored on any server.
Modulus Bit Strength
2048 Bits
NIST 112-bit Security Equivalent
Public Exponent (e)
65,537
Standard 0x010001 prime
Padding Standard
OAEP-MGF1
Optimal Asymmetric Encryption
Generation Latency
~45 ms
WebCrypto Subtles API
Public Key (X.509 SPKI)
Private Key (PKCS#8)
SHA-256: Computing fingerprint...
MD5 (SSH): Computing legacy fingerprint...
Live Asymmetric Roundtrip Verification Sandbox Encrypt with Public Key • Decrypt with Private Key

NIST Security Strength Guide

Per NIST SP 800-57, 2048-bit RSA provides 112 bits of symmetric cryptographic equivalent (approved through 2030). For infrastructure intended to operate past 2030, 3072-bit (128-bit security) or 4096-bit is strongly mandated.

PKCS#8 vs PKCS#1 Standards

Traditional OpenSSL keys used PKCS#1 headers (BEGIN RSA PRIVATE KEY). Modern cryptographic systems standardize on RFC 5208 PKCS#8 (BEGIN PRIVATE KEY), an ASN.1 standard supporting arbitrary asymmetric algorithms.

Why RSA-OAEP Over PKCS#1 v1.5

Legacy RSA PKCS#1 v1.5 encryption is vulnerable to Bleichenbacher chosen-ciphertext padding oracle attacks. RFC 8017 Optimal Asymmetric Encryption Padding (OAEP) incorporates Feistel-network mask generation (MGF1) to render chosen-ciphertext attacks mathematically infeasible.