Technical details
Doughnut Forge encrypts files, folders and short messages on your own device. There are no accounts, no servers and no cloud storage. This page lists the standard methods it uses, for readers who want to check them.
At a glance
- AES-256-GCM
- Post-quantum hybrid key exchange
- No network connections of its own
- No accounts or servers
Encryption
- Cipher: AES-256-GCM (256-bit key, 96-bit nonce, 128-bit authentication tag).
- One key per item: every file, folder or message gets its own new random 256-bit key.
- Authentication: the content and the item's header are authenticated. If they are changed, opening fails and nothing is saved.
- Nonces: never reused under the same key. Each item has its own key and its own random values.
- Compression: content is compressed (Zstandard) before it is encrypted.
- Randomness: keys, nonces and salts come from the operating system's secure random source.
Keys and identity
- Your identity: made from one 256-bit random secret, created on your device.
- Recovery: that secret can be written down as your 24 recovery words (BIP-39).
- Key exchange (post-quantum hybrid): each item's key is sealed separately for every recipient, and for you, using X25519 together with ML-KEM-768. The two shared secrets are combined with SHA-256.
- Signatures: Ed25519, used to sign contact cards. Proof of who sent an item is not yet offered.
- Key derivation: HKDF-SHA-256.
- Several recipients: one encrypted item can be opened by up to 1,024 people, each with their own sealed copy of the item's key.
How your secret is stored
Your secret is stored only in encrypted form. It is encrypted with AES-256-GCM, using a key made from your password with Argon2id:
| Setting | Value |
|---|---|
| Memory | 19 MiB (19,456 KiB) |
| Passes | 2 |
| Parallel lanes | 1 |
| Salt | 128-bit, random |
| Output | 256-bit key |
Your contact list is also stored encrypted (AES-256-GCM).
Unlocking on each device
| Device | Unlock |
|---|---|
| Mac | password. The app runs in the macOS App Sandbox. |
| Windows | password. |
| iPhone and iPad | password, or Face ID or Touch ID if you turn it on. Doughnut Forge then keeps your password in the iOS Keychain, on this device only, and only while the device is unlocked. iOS releases it after Face ID, Touch ID or the device passcode. The app's files use iOS Complete data protection. |
What can be seen without the key
| Detail | Without the key |
|---|---|
| File contents | hidden. |
| Original file name and type | hidden inside. By default the encrypted file is named after the original (for example report.vlt2). Rename it if the name itself is private. |
| Who it is for | hidden. |
| Who sent it | hidden. |
| How many people can open it | visible (the number of recipients, counting the sender). |
| Size | visible, roughly (the compressed size). |
| Dates | no dates can be read without the key. The file has the normal dates your computer gives any file. |
| That it is a Doughnut Forge file, and its format version | visible. |
Files made with versions older than 0.4.41 show who they are for, and who sent them, without the key. They still open in the current version.
Copying an encrypted message as text
An encrypted message is plain text: standard Base64 between a BEGIN FORGE ENCLAVE line and an END FORGE ENCLAVE line. It can be pasted into an email, a chat or a post.
- Line wrapping is fine. Spaces and line breaks are ignored when the message is opened.
- Extra text around it is fine. Anything before the BEGIN line or after the END line is ignored.
- Changes inside it are not. If an app changes, removes or adds a character inside the message, shortens it, or changes the dashes in the BEGIN and END lines, it will not open. It never opens as different text.
Doughnut Forge has not been tested with each app that the text might pass through.
Network
Doughnut Forge makes no network connections of its own. There is no account, no sign-in, no analytics, no crash reporting and no update check. The app's content policy does not allow its screens to load anything from the internet.
On Mac, iPhone and iPad, the operating system may contact the Doughnut Forge website so that password managers can offer to save and fill your password. Apple's system does this, not the app.
Encrypted items leave your device only when you share them yourself.
Libraries
Doughnut Forge uses these libraries for its cryptography and compression:
| Purpose | Library |
|---|---|
| AES-256-GCM | aes-gcm (RustCrypto) |
| Argon2id | argon2 (RustCrypto) |
| ML-KEM-768 | ml-kem (RustCrypto) |
| X25519 | x25519-dalek |
| Ed25519 | ed25519-dalek |
| Curve25519 | curve25519-dalek |
| HKDF | hkdf (RustCrypto) |
| SHA-256 and SHA-512 | sha2 (RustCrypto) |
| Operating system random source | getrandom |
| Recovery words | bip39 |
| Secrets in memory | secrets (libsodium) |
| Wiping secrets from memory | zeroize |
| Compression | zstd |
What Doughnut Forge does not protect against
- A device that is already compromised. While Doughnut Forge is unlocked, malware with full access to your device could read your secrets.
- Anyone with your password and your device, or your 24 recovery words. Keep them safe.
- Your device passcode, on iPhone and iPad with Face ID or Touch ID turned on. iOS accepts the passcode in place of Face ID or Touch ID.
- Recipients. Anyone who can open an item can save, copy or share what is inside.
- Proof of who sent an item. Doughnut Forge does not yet prove who sent an item.
- Size, number of recipients and file name. These can be seen without the key, as listed above.
- Unencrypted copies. The original file stays where it was after encrypting, and opened files are saved as normal files. Deleting them is up to you. On SSDs, deleting or overwriting a file does not guarantee the old data is gone.
Not audited yet
Doughnut Forge has not had an independent security audit yet. One is planned. See the roadmap