PGP Encryption for Gmail - A Chrome Extension
- Encrypt Emails: Secure your emails with OpenPGP encryption
- Decrypt Emails: Read encrypted emails directly in Gmail
- Sign Messages: Digitally sign your emails for authenticity
- Verify Signatures: Automatically verify signatures on received messages
- Key Server Lookup: Search for recipient public keys on HKP servers
- Key Management: Generate, export, import, and rotate your PGP keys
- Secure Storage: Your private keys are encrypted with AES-256-GCM
- RSA-4096 bit key generation
- AES-256-GCM encryption for local key storage
- PBKDF2 with 310,000 iterations for key derivation
- Brute-force protection (5 attempts = 30 min lockout)
- Passphrase strength validation
- Automatic clipboard clearing
- Session timeout
- Origin validation on all message handlers
- Message length limits to prevent DoS
- XSS prevention with proper HTML escaping
- Settings input sanitization
- Clone the repository
- Run
npm install - Run
npm run build - Open Chrome and go to
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked"
- Select the
distfolder
npm install
npm run build
npm test- Click the CipherMail icon in the toolbar
- Go to the "Keys" tab
- Click "Generate New Keys"
- Enter your name, email, and a strong passphrase
- Save your public key - share it with others
- Click the CipherMail icon
- Go to the "Keys" tab
- Paste the recipient's public key OR
- Use "Key Server Lookup" to search by email
- Compose a new email in Gmail
- Click the "Encrypt" button in the toolbar
- Enter your passphrase
- The message will be encrypted
- Open an encrypted email
- Click the "Decrypt" button
- Enter your passphrase
- The message will be decrypted and displayed
Ctrl+Shift+E- Encrypt messageCtrl+Shift+D- Decrypt messageCtrl+Shift+S- Sign message
- Sign messages by default: Automatically sign when encrypting
- Auto-lookup recipient keys: Automatically search for recipient keys when composing
- Confirm before encrypting: Show confirmation dialog
- Session timeout: Auto-lock after inactivity
- Secure clipboard: Auto-clear clipboard after copying
- Google Chrome 109+
- Microsoft Edge 109+
- Mozilla Firefox 109+
- Chromium-based browsers
CipherMail is a client-side only extension. Your private keys and passphrases never leave your browser. All cryptographic operations are performed locally.
MIT
Contributions welcome! Please submit pull requests or open issues on GitHub.