Short answer: Encrypt the file locally on your phone before attaching it to email or chat. With DotBGE (free for single-file encryption and decryption on iOS and Android), you can lock a PDF, photo, or document to a contact’s public key — so only their device’s private key can open it — or lock it with a strong password shared through a separate channel.
Option 1 (Recommended): Encrypt for a specific person — no shared password
Identity encryption removes the weakest link of password-protected files: sending the password in the same chat thread.
- Get the recipient’s identity card: Ask the recipient to share their DotBGE identity card as a QR code or
.bgekeyfile. It contains only their name and public key — never their private key. - Import them as a contact: Scan the QR code or open the
.bgekeyfile in DotBGE to save them under Contacts. - Select the file and choose the recipient: Pick a document or photo in DotBGE (or send it from another app’s system share sheet), then choose that contact as the recipient.
- Send the
.bgefile anywhere: Share the resulting.bgefile through email, WhatsApp, Telegram, AirDrop, or a cloud link. Only the recipient’s matching private key can decrypt it — even your own private key cannot open it.
Option 2: Encrypt with a password (one-off sharing)
If you have not exchanged identity cards yet, you can still protect a file with a passphrase:
- Choose the file in DotBGE and select Password mode.
- Enter a strong, unique password and create the encrypted
.bgefile. - Send the
.bgefile over email or chat, and deliver the password through a different channel (for example, a phone call or a separate messaging app).
Note that password mode creates a .bge file encrypted with PBKDF2-SHA512 and AES-256-GCM — not a standard password-protected PDF or ZIP.
What the recipient needs to open it
- DotBGE on iPhone/iPad (iOS 17.6+) or Android (Android 8.0+), or the bge CLI on macOS and Linux.
- Opening and decrypting a
.bgefile is always free. You can share How to open a .bge file with the recipient if it is their first time receiving one.
Practical checklist before sending
- Keep your original safe (or remove it if unneeded): Encrypting a file creates a separate
.bgeoutput unless you explicitly choose in-place encryption (Pro). Remember to check whether an unencrypted copy still sits in your Photos or Downloads folder. - Verify the recipient’s identity card once: For high-sensitivity transfers, confirm the contact’s identity card in person or over a quick voice call when adding it.
- Back up your own private key: If you encrypt files for yourself, export an encrypted identity backup — DotBGE cannot recover lost keys or passwords.
Related: DotBGE vs Cryptomator, VeraCrypt, 7-Zip, and PGP · Public-key file encryption without PGP complexity.