Short answer: Public-key encryption is ideal for sharing files because you never have to send a secret password — only the recipient’s private key can open what you encrypt with their public key. Traditional PGP/GPG made that workflow hard on phones. DotBGE packages your public key into a shareable identity card (QR code or .bgekey file), while keeping the private key in Apple Keychain or Android Keystore.
Why public-key encryption rarely reached everyday phones
Classic tools like GnuPG were built around desktop terminals, keyservers, subkey expiration policies, and long ASCII-armored key blocks. That flexibility is valuable for software maintainers, but it creates high friction when someone simply wants to send an encrypted tax document or ID scan from an iPhone to an Android phone.
How DotBGE identity cards simplify the workflow
- One-tap key creation in system storage: When you create an identity in DotBGE, your RSA-4096 private key is stored in the system Keychain (Apple) or Android Keystore — not in an unencrypted folder.
- Public key as a contact card: Your identity card contains your display name and public key. Share it as a QR code in person or as a
.bgekeyfile over chat. It cannot decrypt anything. - Encrypt by choosing a person: Once someone imports your card, they just pick your name in Contacts when encrypting a file or message.
- Same cards work in the terminal: You can import the exact same
.bgekeycard into the bge CLI address book on macOS or Linux and encrypt to a contact by name.
What happens under the hood (.bge format v3)
DotBGE uses hybrid encryption defined in the open .bge v3 specification:
- A fresh random 256-bit symmetric key encrypts the file payload in authenticated chunks using AES-256-GCM (including encrypted metadata such as filename and type).
- That symmetric key is wrapped with the recipient’s RSA-4096-OAEP public key and stored in the file header alongside a Key ID for fast local lookup.
- On the recipient’s device, DotBGE authenticates via Face ID, Touch ID, or Android biometrics, unwraps the symmetric key using the matching private key, and decrypts the file locally.
Important boundaries to know
- No central directory or keyserver: DotBGE has no accounts or servers. You exchange identity cards directly, which avoids account tracking — and means you should verify a contact’s card once for sensitive transfers.
- No key recovery: Because DotBGE never holds your private key, losing both your device and your encrypted identity backup makes identity-locked files unrecoverable.
- Not a replacement for PGP signatures: DotBGE focuses on encrypting files and messages for confidentiality. If you need detached cryptographic signatures or email S/MIME / OpenPGP interop, use GPG.
Next: Compare DotBGE with Cryptomator, VeraCrypt, 7-Zip, and PGP or How to encrypt and send sensitive files from iPhone or Android.