What is a Public & Private Key Pair Generator?
Asymmetric cryptography (Public Key Infrastructure) relies on a mathematically linked pair of keys: a Private Key that stays secret on your server or device, and a Public Key that can be safely shared with APIs, clients, or identity providers. A private key signs JWTs, decrypts payloads, or authenticates deployments; the public key verifies those signatures without ever exposing the secret key. Bramhify's Public & Private Key Pair Generator creates industry-standard RSA, ECDSA, and Ed25519 keys directly inside your browser using the native Web Crypto API (window.crypto.subtle).
RSA vs. ECDSA vs. Ed25519 — Which Algorithm Should You Choose?
firebase/php-jwt, Laravel Passport, Symfony LexikJWT), and legacy enterprise APIs. Choose 2048-bit for fast signing or 4096-bit for long-lived roots.PEM vs. JWK Output — Ready for PHP, Node.js, and Frontend Apps
Backend frameworks like PHP (openssl_pkey_get_private()), Laravel, Symfony, Python, Go, and OpenSSL CLI expect PEM format (-----BEGIN PUBLIC KEY----- SPKI and -----BEGIN PRIVATE KEY----- PKCS#8). If you supply an optional passphrase, Bramhify encrypts the private key locally into a standard -----BEGIN ENCRYPTED PRIVATE KEY----- file using PBES2 (PBKDF2-SHA256 + AES-256-CBC), fully compatible with PHP OpenSSL and command-line openssl pkey. For OAuth2 JWKS endpoints, Cloudflare Workers, or browser/Node Web Crypto apps, switch to JWK (JSON Web Key) mode for instant JSON export.
100% Client-Side Security & Companion Crypto Tools
Never generate production private keys on a remote server where access logs or proxies could retain them. Bramhify runs exclusively in your browser's local memory — open DevTools Network tab to verify zero outbound requests, and click Wipe Memory when finished. Already have a passphrase-locked PEM key to inspect or unlock? Use our Encrypted Private Key Decryptor. Need to inspect RS256, ES256, or SD-JWT tokens signed with these keys? Open our JWT & SD-JWT Decoder.
Frequently Asked Questions
How do I use the encrypted PEM key in PHP or OpenSSL? Save the downloaded private.pem file outside your public web root and load it with openssl_pkey_get_private(file_get_contents('private.pem'), $passphrase) in PHP, or verify it locally via openssl pkey -in private.pem -check. Both PBKDF2-SHA256 and AES-256-CBC parameters follow RFC 5958 / OpenSSL 3.x defaults.
