PGP (GnuPG) Tool

Online OpenPGP tool supporting PGP key generation, encryption/decryption, signing/verification, fully browser-based.

PGP Key Generation

Instructions

OpenPGP Introduction

OpenPGP (Pretty Good Privacy) is an open standard for encryption and digital signatures (RFC 4880). Identity binding: PGP keys are typically bound to a user's name and email; Web of Trust: PGP relies on the Web of Trust to verify public key authenticity rather than centralized CA authorities; Hybrid encryption: PGP uses symmetric encryption to encrypt the message, then encrypts the session key with the recipient's public key, combining asymmetric security with symmetric efficiency.

Steps

1. Key Management: Fill in name, email, passphrase, select key type (ECC/RSA), click 'Generate Key Pair'; 2. Encrypt: Enter plaintext and recipient public key, optionally sign (requires sender private key and passphrase), click 'Encrypt' to get ciphertext; 3. Decrypt: Enter ciphertext, recipient private key and passphrase, optionally verify (requires sender public key), click 'Decrypt' to get plaintext and signature verification result.

Notes

This tool uses the openpgp.js library, all operations are performed locally in the browser, keys are never uploaded to a server; it is recommended to set a passphrase to protect private keys during key generation; for encrypted signing, sender private key and passphrase must be provided; for decryption, sender public key can be provided to verify message origin; ECC keys are smaller and faster, RSA has better compatibility.