Use PGP Key Generator

Enter your data below to use the PGP Key Generator

📌 Try these examples:
RESULT

Last updated

Key Size Comparison

Passphrase Best Practices

Examples

Example 1: Generating a 4096-bit RSA Key Pair

Fill in your details and select key size to generate a key pair:

Name: Alice Johnson
Email: alice@example.com
Key Size: 4096-bit
Expiration: 2 years
Passphrase: correct-horse-battery-staple-2024

Generated public key (ASCII-armored format):

-----BEGIN PGP PUBLIC KEY BLOCK-----

mQINBGXk...
[base64 encoded key data]
...AB3T==
=xYzW
-----END PGP PUBLIC KEY BLOCK-----

Generated private key (keep this secret and back it up securely):

-----BEGIN PGP PRIVATE KEY BLOCK-----

lQdGBGXk...
[base64 encoded encrypted private key data]
...Qr9A==
=mNpL
-----END PGP PRIVATE KEY BLOCK-----

Example 2: Key Fingerprint Verification

After generating your key, verify its fingerprint to share with contacts for out-of-band verification:

Key Fingerprint:
A1B2 C3D4 E5F6 7890 1234  5678 9ABC DEF0 1234 5678

Short Key ID: 0x12345678
Long Key ID:  0x9ABCDEF012345678

Share your fingerprint via a separate channel (in person, phone call) so contacts can confirm they have the right key. Never rely solely on email to verify a fingerprint.

Example 3: Encrypting a Message with a Recipient's Public Key

Once you have a recipient's public key, encrypt a message for them:

-----BEGIN PGP MESSAGE-----

hQIMA...
[encrypted message content in base64]
...Zp==
=AbCd
-----END PGP MESSAGE-----

Only the holder of the corresponding private key can decrypt this message. Even if intercepted in transit, the content remains unreadable without the private key and its passphrase.

Frequently Asked Questions

Simply enter your data, click the process button, and get instant results. All processing happens in your browser for maximum privacy and security.

Yes! PGP Key Generator is completely free to use with no registration required. All processing is done client-side in your browser.

Absolutely! All processing happens locally in your browser. Your data never leaves your device, ensuring complete privacy and security.