PGP Key Generator

Generate PGP/GPG key pairs for secure email encryption, digital signatures, and data protection with customizable key parameters.

How It Works

1

Configure Key Parameters

Enter your name, email, and optional passphrase. Choose key type (RSA/ECC), key size, and expiration settings.

2

Generate Key Pair

The tool creates a cryptographically secure public/private key pair using your browser's random number generator.

3

Export and Store Keys

Download your public and private keys in standard PGP format. Share the public key and keep the private key secure.

Frequently Asked Questions

What is PGP and why do I need key pairs?

PGP (Pretty Good Privacy) uses public-key cryptography. Your public key encrypts messages that only your private key can decrypt, and your private key signs messages that others can verify with your public key.

Should I use a passphrase for my private key?

Yes, always use a strong passphrase. This adds an extra layer of security - even if someone gets your private key file, they can't use it without the passphrase.

What key size should I choose?

For RSA keys, 2048 bits is minimum, 4096 bits is recommended for long-term security. ECC keys offer equivalent security with smaller sizes (256-bit ECC ≈ 3072-bit RSA).

How long should my keys be valid?

Key expiration is a security best practice. Consider 2-5 years for personal use, shorter for high-security environments. You can always extend expiration later.

Is key generation secure in the browser?

Yes, all key generation uses cryptographically secure random number generation (crypto.getRandomValues()) and happens entirely locally. Keys are never transmitted to servers.

Can I use these keys with other PGP software?

Yes, the generated keys are in standard OpenPGP format and compatible with GPG, Thunderbird, Outlook, and other PGP-compatible software.