गाइड्स EN
Bramhify Pro

एडवांस टूल्स, अनलिमिटेड इस्तेमाल और प्रायोरिटी सपोर्ट पाएं।

अभी अपग्रेड करें
Public & Private Key Generator Icon

पब्लिक और प्राइवेट की जनरेटर

New

ब्राउज़र में सीधे RSA, ECDSA और Ed25519 PEM/JWK की पेयर ऑफ़लाइन जनरेट करें।

PBKDF2-SHA256 (100,000 इटरेशन) का उपयोग करके OpenSSL-कम्पैटिबल BEGIN ENCRYPTED PRIVATE KEY ब्लॉक बनाता है।

ब्राउज़र के नेटिव Web Crypto API से 100% लोकल रूप से जनरेट। कोई सर्वर अपलोड या स्टोरेज नहीं।

एल्गोरिदम चुनें और लोकल की पेयर बनाने के लिए 'की पेयर जनरेट करें' पर क्लिक करें।

पब्लिक और प्राइवेट की पेयर जनरेटर क्या है?

एसिमेट्रिक क्रिप्टोग्राफी में दो गणितीय रूप से जुड़ी कुंजियाँ होती हैं: एक प्राइवेट की जिसे गोपनीय रखा जाता है और एक पब्लिक की जिसे सत्यापन के लिए साझा किया जा सकता है। Bramhify सीधे आपके ब्राउज़र के नेटिव Web Crypto API से RSA, ECDSA और Ed25519 की पेयर PEM व JWK फ़ॉर्मेट में बनाता है।

RSA vs. ECDSA vs. Ed25519 — Which Algorithm Should You Choose?

1
RSA (2048 / 3072 / 4096-bit): The universal standard for RS256 JWT authentication, PHP OpenSSL (firebase/php-jwt, Laravel Passport, Symfony LexikJWT), and legacy enterprise APIs. Choose 2048-bit for fast signing or 4096-bit for long-lived roots.
2
ECDSA (P-256 / P-384 / P-521): Delivers equivalent security to RSA 3072-bit with dramatically smaller keys and faster handshakes. Ideal for ES256 JWTs, OAuth2/OIDC, SD-JWT credentials, and mobile or edge APIs.
3
Ed25519 (EdDSA): Modern high-speed Edwards-curve signature algorithm resistant to side-channel timing attacks. Compact 32-byte keys make it popular for modern microservices, SSH, and webhook verification.

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.

अक्सर पूछे जाने वाले सवाल

Is it safe to generate private keys in this browser tool?

Yes. Key generation runs 100% locally inside your browser using the native Web Crypto API (window.crypto.subtle). Zero network requests are made and keys are never saved to cookies or localStorage.

Are the generated PEM keys compatible with PHP OpenSSL, Laravel, and Node.js?

Yes. Unencrypted keys export as standard SPKI (BEGIN PUBLIC KEY) and PKCS#8 (BEGIN PRIVATE KEY) PEM files, and passphrase-protected keys export as RFC 5958 PBES2 (PBKDF2-SHA256 + AES-256-CBC) BEGIN ENCRYPTED PRIVATE KEY files that work seamlessly with OpenSSL, PHP, Node.js, Python, and Go.

Which key algorithm should I use for JWT signing?

Use RSA 2048-bit for RS256 compatibility across legacy systems, ECDSA P-256 for compact and fast ES256 tokens (including SD-JWT), or Ed25519 for modern EdDSA applications.

Can I export keys in JWK (JSON Web Key) format?

Yes. Toggle the Export Format switch between PEM and JWK at any time to copy or download both the public and private JSON Web Key objects.

Why is Ed25519 unavailable on some older browsers?

Ed25519 Web Crypto support was added in Chrome 113+, Safari 17+, and Firefox 129+. On older browsers, use ECDSA (P-256) or RSA (2048-bit) instead.