File Encryption Standards and Formats
What you'll learn: How to choose between PGP/GPG, age, and ZIP encryption when protecting files at rest.
The Landscape of File Encryption
When encrypting files for storage or sharing, you need to pick the right tool for the job. Three common approaches—PGP/GPG, age, and ZIP encryption—each solve different problems with different trade-offs.
PGP/GPG (OpenPGP Format)
Use when: You need public-key encryption, identity verification, or compatibility with existing PGP infrastructure.
PGP/GPG creates .pgp or .gpg files that support asymmetric encryption (encrypt to someone's public key) and digital signatures. It integrates with the Web of Trust model you've already studied. However, it's complex, has aging cryptographic defaults, and requires careful key management.
Best for: Professional contexts where identity verification matters and recipients already use PGP.
age
Use when: You want simple, modern file encryption with minimal ceremony.
age is a modern tool designed to replace PGP for file encryption. It uses modern cryptography (X25519, ChaCha20-Poly1305), supports both password-based and public-key encryption, and deliberately avoids signature functionality. Keys are small, shareable strings.
Best for: Personal file encryption, automated backups, sharing with technical users who value simplicity over legacy compatibility.
ZIP Encryption
Use when: Convenience matters more than strong security, or you're constrained to ZIP-only environments.
Standard ZIP encryption (ZipCrypto) is cryptographically weak and easily cracked. Even the stronger AES-256 ZIP encryption lacks authenticated encryption and leaks metadata (filenames, sizes). However, it's universally supported—every OS can open encrypted ZIPs without special software.
Best for: Low-sensitivity files where convenience trumps security; never for confidential data.
Choosing Your Format
Think of it like locks: PGP is a commercial safe with identity cards, age is a modern smart lock, and ZIP encryption is a luggage padlock—convenient but not truly secure.
Key Takeaway: Use age for modern file encryption simplicity, PGP/GPG when identity verification or legacy compatibility is required, and avoid ZIP encryption for anything sensitive.