How PGP File Encryption & Decryption Works
PGP uses asymmetric cryptography to secure files. Encrypt files with a recipient's public key, and only their corresponding private key can decrypt them. This ensures secure file transfer and storage.
Encryption Process
- Select File: Choose any file you want to encrypt
- Provide Public Key: Paste the recipient's PGP public key
- Choose Format: Select binary (.pgp) for smaller files or armored (.asc) for text compatibility
- Client-Side Encryption: File is encrypted in your browser using OpenPGP.js
- Download Encrypted File: Download the encrypted file (.pgp or .asc)
- Share Securely: Send the encrypted file to the recipient
Decryption Process
- Select Encrypted File: Choose the encrypted file (.pgp or .asc)
- Provide Private Key: Paste your PGP private key
- Enter Passphrase: Unlock your private key with passphrase
- Client-Side Decryption: File is decrypted in your browser
- Download Decrypted File: Original file is automatically downloaded
Security Features
- Client-Side Processing: All operations happen in your browser - nothing sent to server
- Public Key Cryptography: Files encrypted with public key, decrypted with private key
- No File Upload: Files are processed locally in your browser
- OpenPGP Standard: Uses RFC 4880 compliant OpenPGP format
- Memory Safety: Keys and files cleared from memory after processing
Security Note: Never share your private key or passphrase. Always verify recipient identity before encrypting. Verify sender before decrypting files.