Skip to content
Doughnut Forge
Language:English (UK)

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.

Back to contents

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:

SettingValue
Memory19 MiB (19,456 KiB)
Passes2
Parallel lanes1
Salt128-bit, random
Output256-bit key

Your contact list is also stored encrypted (AES-256-GCM).

Unlocking on each device

DeviceUnlock
Macpassword. The app runs in the macOS App Sandbox.
Windowspassword.
iPhone and iPadpassword, 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.

Back to contents

What can be seen without the key

DetailWithout the key
File contentshidden.
Original file name and typehidden 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 forhidden.
Who sent ithidden.
How many people can open itvisible (the number of recipients, counting the sender).
Sizevisible, roughly (the compressed size).
Datesno 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 versionvisible.

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.

Back to contents

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.

Back to contents

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.

Back to contents

Libraries

Doughnut Forge uses these libraries for its cryptography and compression:

PurposeLibrary
AES-256-GCMaes-gcm (RustCrypto)
Argon2idargon2 (RustCrypto)
ML-KEM-768ml-kem (RustCrypto)
X25519x25519-dalek
Ed25519ed25519-dalek
Curve25519curve25519-dalek
HKDFhkdf (RustCrypto)
SHA-256 and SHA-512sha2 (RustCrypto)
Operating system random sourcegetrandom
Recovery wordsbip39
Secrets in memorysecrets (libsodium)
Wiping secrets from memoryzeroize
Compressionzstd

Back to contents

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.

Back to contents

Not audited yet

Doughnut Forge has not had an independent security audit yet. One is planned. See the roadmap

Back to contents