Golub can encrypt and sign mail with OpenPGP, compatible with Thunderbird, GnuPG, Proton Mail, Mailvelope and other OpenPGP programs (PGP/MIME, RFC 3156).
All encryption happens in your browser. The server never sees the text of an encrypted message or your unlocked private key.
- Your private key is stored in a hidden folder of your own mailbox, always protected by your passphrase.
- Unlocking a key keeps it in the memory of that browser tab only. It locks again after 15 minutes without use, when you close the tab, or with Lock keys now.
- Nobody can recover a forgotten passphrase, not even the server administrator. Export your private key and keep it somewhere safe.
Setting up your key
Open Settings → Encryption (PGP).

Create a new key: pick the identity under Create key, type a passphrase of at least 8 characters twice, and click Create key. Golub creates a modern Curve25519 key.
Or import your existing key: paste it into Import key, or click Choose file… to pick an .asc file. A private key without a passphrase gets one before it is stored.

Each key has Export public key, Export private key and Delete. Send your public key to the people who should write to you encrypted.
Keys of other people
To send someone encrypted mail you need their public key. Import it in the same Import key box. When a message has a key attached (an .asc file), it gets an Import key button right in the message.
Sending encrypted or signed mail
Once you have a key, compose shows two more options:

- Encrypt: only the recipients can read the message, and so can you, because Golub also encrypts it to your own key so you can read your copy in Sent. Golub needs the public key of every recipient; if one is missing, it lists the addresses before sending.
- Sign: recipients can check that it came from you and was not changed. Signed messages without encryption stay readable for everyone.
If your key is locked, Golub asks for the passphrase when you send:

Limits:
- Encrypted messages are not saved as drafts, because the draft would sit unencrypted on the server.
- Attachments taken over from another message (when forwarding) can't be encrypted or signed; attach the files again.
Reading encrypted and signed mail
Encrypted messages ask you to unlock your key, then show the decrypted text and attachments. The badge above the text shows the result of the signature check:

| Badge | Meaning |
|---|---|
| Encrypted | The message was encrypted. |
| Signed by … (green) | The signature is valid and comes from a key you have. |
| Signed with a key you don't have | Import the sender's public key to check it. |
| The signature does not match | The message may have been changed after it was signed. |
Messages that were not encrypted for any of your keys say so; Golub can't open them.
Both PGP/MIME and older inline PGP (-----BEGIN PGP MESSAGE----- in the text) are understood.



