โš™๏ธ Encryption & Security

PGP Key Generator โ€” Create PGP Keys in Your Browser

Generate PGP-compatible RSA key pairs directly in your browser. Create public and private keys for secure email and file encryption.

PGP Key Generator

Generate an RSA key pair for encryption. Keys are generated entirely in your browser using the Web Crypto API.

Note:This generates simplified RSA key pairs in SPKI/PKCS8 format compatible with most cryptographic libraries. This is not a full OpenPGP implementation โ€” for production use with email encryption, use a dedicated tool like GnuPG or OpenPGP.js.

About RSA Key Pairs

RSA is an asymmetric encryption algorithm. It uses a pair of mathematically linked keys:

  • Public key: Share freely. Others use it to encrypt messages to you
  • Private key: Keep secret. Only you can decrypt messages encrypted with your public key
  • 2048-bit keys are considered secure for most purposes today
  • 4096-bit keys provide additional security margin but take longer to generate
  • Keys are exported in standard SPKI (public) and PKCS8 (private) formats
TIP

For full PGP email encryption, use a dedicated tool like GnuPG or the OpenPGP.js library. This tool generates standard RSA keys suitable for learning and basic encryption tasks.

โ“ Frequently Asked Questions

What are PGP keys used for?+
PGP (Pretty Good Privacy) keys are used to encrypt emails, sign files, and verify identities. Your public key encrypts messages that only your private key can decrypt.
Is it safe to generate PGP keys in a browser?+
This tool uses the Web Crypto API for key generation, which is cryptographically secure. However, for high-security needs, generate keys on an air-gapped machine using GPG command-line tools.
What key size should I use?+
RSA-2048 is the minimum recommended. RSA-4096 offers a larger security margin and is preferred for long-term use. The trade-off is slightly slower encryption and decryption.