Architectural trade-offs, cryptographic mechanics, and explicit threat-model limits behind Ombracrypt v2.
1. The Problem: Where Do Your Decryption Keys Actually Live?
Consider a routine operational problem. A small engineering organization, research team, or independent firm needs to collect sensitive folders from external contractors, clients, or remote backup nodes. Everyone involved already relies on everyday infrastructure to move data around: cloud object storage, shared drives, network-attached storage, or standard file-transfer services. Those platforms are convenient and reliable for moving bytes from point A to point B.
The trouble starts when storage convenience gets bundled together with decryption authority.
Most mainstream cloud storage and collaboration tools advertise "encryption at rest" and "encryption in transit." In plain terms, that means the provider scrambles your files while they sit on its hard drives and while they travel over the network, while also holding the keys needed to unscramble them. That protects against someone stealing a physical disk from a data center or sniffing unencrypted Wi-Fi traffic. It does not remove the storage provider, its account-recovery systems, its misconfigured access policies, or legal demands served to that provider from your trust boundary.
Designing around untrusted storage forces you to separate three distinct cryptographic problems that often get lumped into a single checklist item:
- Bulk encryption: How the actual file contents are scrambled and checked for tampering. Modern symmetric ciphers (algorithms that use the same secret key to lock and unlock data) like AES-256 and ChaCha20 are fast, well-studied, and remain resilient even when accounting for theoretical quantum search speedups under Grover's algorithm.
- Key establishment: How the people or systems involved obtain the secret key needed to decrypt the files without handing that key to an intermediary. Sharing a single password works when you have a trusted channel to coordinate it, but distributing a shared decryption secret across multiple contributors breaks down as soon as you want someone to submit data without being able to read everyone else's submissions.
- Long-term confidentiality: Whether ciphertext captured today will remain unreadable years from now. Under a "Harvest Now, Decrypt Later" (HNDL) threat model, an adversary copies encrypted archives from public networks or breached cloud buckets today and stores them until future cryptanalytic advances, particularly cryptographically relevant quantum computers running Shor's algorithm against classical public-key algorithms like RSA and elliptic-curve key exchange, make decryption feasible.
Different local encryption tools answer different parts of this problem, and each reflects a deliberate architectural category:
- VeraCrypt focuses on mounted, on-the-fly encrypted virtual volumes, partitions, and full-disk encryption. Its XTS-mode sector design is built for live random-access storage rather than portable, recipient-sealed archive transfers.
- Picocrypt-NG (an actively maintained community continuation distinct from the original Picocrypt repository archived in September 2025) focuses on direct symmetric file and folder encryption using passwords and keyfiles, pairing heavy Argon2id key derivation with optional Reed-Solomon error recovery for physical archival media.
- AxCrypt (axcrypt.net) takes an account-centric approach to file encryption and key sharing. It relies on classical cryptography (AES-256 and 4096-bit RSA key sharing), ties encryption to an account-based AxCrypt ID single-password model rather than independent per-vault passwords, and puts full encryption, key sharing, and centralized admin Master Key recovery behind paid subscriptions.
-
age provides composable, Unix-style streaming file encryption with recipient-based public keys, including native hybrid post-quantum recipients (X25519 + ML-KEM-768) and multi-recipient files, while guaranteeing that unauthenticated plaintext is never released. By design, however, age is a minimalist single-stream CLI primitive with no official desktop GUI, mutually exclusive passphrase and recipient file-encryption modes, and no integrated folder staging, archive guardrails, or atomic publication (directory workflows rely on external
tarpipes).
Each of these tools is well suited to its intended category. The open engineering question is what an application looks like when you want an offline, account-free, portable folder-vault workflow that combines recipient-controlled hybrid post-quantum sealing, a mandatory per-vault password input, defensive staged extraction, and identical desktop GUI and CLI workflows without relying on a storage provider or centralized account service for key management.
2. Philosophy
Looking at where computing is heading, storing personal or sensitive data for the long term on public cloud platforms feels harder to justify every year. The same major providers hosting our files are investing heavily in quantum hardware and AI-driven research, while operating under terms of service and data policies that can change at any time. Under a "harvest now, decrypt later" reality, I did not want to leave long-lived archives sitting on third-party infrastructure while hoping that current practical limits around Shor's and Grover's algorithms hold indefinitely.
In day-to-day workflows, sharing sensitive data brings its own compromises. People routinely push confidential files or passphrases across third-party messaging platforms like WhatsApp, Telegram, or Signal, pulling external infrastructure right back into the loop. On the local encryption side, most established file encryptors rely strictly on symmetric encryption. That works well for solo storage, but it becomes awkward for group or external submissions, and simply bumping key sizes from 128 to 256 bits does not solve key distribution or protect against future offline attacks if a shared secret is exposed. When I looked into asymmetric, post-quantum alternatives, many still relied on centralized password or key management, where a single server compromise puts every user at risk.
What I actually wanted was an infrastructure-independent, disposable model: a workflow where I can share a public key to seal files into a strongly encrypted vault, while keeping private keys and per-vault passwords strictly local and compartmentalized. That way, even if one private key is ever compromised, other vaults sealed under different keys and passwords stay isolated. I searched extensively for a tool like this, only to find experimental CLI prototypes with rough stability and weak cross-platform usability. That gap is where the journey of Ombracrypt began. I am simply sharing my personal experience here, and the engineering choices that grew out of it.
3. Introducing Ombracrypt: Recipient-Controlled File Vaults
Ombracrypt v2 is a local-first encrypted-vault application built around recipient-controlled key ownership. Instead of treating encryption as a server-managed feature or a single shared-password container, it organizes the workflow around a simple directional boundary: the ability to lock a directory for a recipient is separated from the ability to unlock it.
3.1 Recipient-Sealed Contributions: Using a Public Key Without Distributing Private Keys
The clearest way to understand Ombracrypt is through a practical contribution workflow.
Suppose an organization needs five external contractors to submit confidential project directories over an ordinary cloud folder or file-transfer link. The organization does not want the cloud provider to read those files, and it does not want to hand its private decryption key to external contractors.
With Ombracrypt, the recipient generates a key pair locally: a public sealing key (.obp) and a private decapsulation key (.obk). Think of the .obp file as an open padlock you can copy and hand out freely. Anyone holding your .obp can place a folder inside a box and snap that padlock shut, producing an encrypted vault (.obv). Once it clicks closed, neither the cloud storage provider nor another contractor holding the same .obp can open it.
Only the recipient holding the matching .obk private key, together with the per-vault master password chosen when the vault was sealed, can recover the original directory.
Two operational boundaries are worth stating clearly upfront:
-
One recipient per vault: The v2 vault format carries a single recipient key encapsulation per
.obvfile. Multiple contributors can seal separate vaults for the same recipient using one.obpkey, but a single.obvvault is not decryptable by multiple independent recipient keys (unlikeage, which natively supports multi-recipient files). -
Separate password coordination: Because the master password participates directly in deriving the vault's encryption key, the contributor and recipient must coordinate that password through a separate channel. The
.obpkey alone seals the vault to the recipient's private key, and the.obkkey alone is not enough to open it without the corresponding password.
3.2 Artifact Separation and Independent Secret Custody
Rather than bundling key management and encrypted data inside one opaque account, Ombracrypt v2 separates its cryptographic responsibilities across three distinct components:
| Component | Role | Typical Handling |
|---|---|---|
.obv |
Encrypted directory archive, authenticated stream, and key-encapsulation ciphertext | Stored or moved across untrusted cloud drives, NAS, or transfer channels |
.obk |
Private decapsulation key material | Kept offline, backed up independently, never shared with contributors |
.obp |
Public encapsulation key material | Distributed to contributors or automated backup jobs |
| Master Password | Per-vault independent secret fed into master-key derivation | Memorized, held in a separate password manager, or shared out-of-band |
All three decryption inputs (.obv, .obk, and the master password) are required to recover the plaintext directory. Separating where these components live is an operational security recommendation rather than a protocol enforced by the software. You could put a vault in cloud storage, keep .obk on offline physical media, and manage passwords separately. Doing so does not provide an unconditional security guarantee (as covered in Section 5, the vault header still exposes metadata, and capturing both .obv and .obk enables offline password guessing), but it keeps the storage provider completely outside the decryption path.
4. Under the Hood: Four Core Design Choices
Ombracrypt's v2 cryptographic engine lives in a single Rust library crate (ombracrypt-core) shared by both the desktop application and the CLI. Four architectural choices define how it turns a folder into an encrypted vault and back again.
4.1 Hybrid Key Establishment
Public-key encryption in Ombracrypt uses a Key Encapsulation Mechanism (KEM), a cryptographic construction where the sender uses the recipient's public key to generate both a fresh random shared secret and a small encrypted capsule that only the recipient's private key can open.
Rather than betting exclusively on either classical elliptic-curve cryptography or newer lattice-based post-quantum math, Ombracrypt v2 uses hybrid key establishment in crypto.rs. A hybrid KEM combines two independent algorithms so that an attacker must break both to recover the shared secret.
- X-Wing (Default Profile): Combines ML-KEM-768 (standardized under NIST FIPS 203) with classical X25519, following the IETF X-Wing Internet-Draft (revision 11). Precision matters here: X-Wing is an active Internet-Draft, not a finalized IETF RFC, and its specification explicitly notes that X-Wing is not an authenticated KEM.
- Cypherpunk (Alternative Profile): Combines ML-KEM-1024 with X25519 for users seeking larger lattice parameters. This composition is an Ombracrypt-specific custom hybrid profile, not an independently standardized or certified protocol.
4.2 Two-Input Master-Key Derivation
Many file encryptors treat passwords and public keys as mutually exclusive modes: you encrypt either with a password or with a public key. Ombracrypt v2 combines both inputs inside its master-key derivation in crypto.rs.
First, the user's master password is run through Argon2id (a memory-hard password hashing function designed to slow down automated guessing on GPUs and specialized hardware) alongside a per-vault random salt. In parallel, the hybrid KEM produces a 32-byte shared secret tied to the recipient's public key. Both 32-byte outputs are concatenated and passed through HKDF (HMAC-based Key Derivation Function, a standard cryptographic mixer that extracts uniform randomness and expands it into context-specific keys) using an explicit v2 domain-separation label (OMBRACRYPT-V2-MASTER-KEY).
This construction is a custom conjunctive key derivation, not a standardized multi-factor authentication protocol. Its practical effect is straightforward: neither the private key alone nor the password alone is sufficient to derive the symmetric key that unlocks the vault.
4.3 Direct Streaming Vault Creation
A common weakness in naive folder-encryption wrappers is creating a temporary unencrypted .tar or .zip archive on disk, encrypting that archive, and then deleting the temporary file. That leaves an extra plaintext copy sitting in filesystem blocks or temporary directories.
In pipeline.rs and stream.rs, Ombracrypt avoids writing an intermediate plaintext archive to disk during encryption. A TAR builder streams directory entries directly into a bounded 1 MiB plaintext buffer, which feeds straight into a chunked AEAD (Authenticated Encryption with Associated Data) writer supporting XChaCha20-Poly1305 and AES-256-GCM. AEAD ciphers encrypt data and attach a cryptographic authentication tag to every chunk so any bit flip or forgery is detected immediately.
Each chunk derives a unique counter-based nonce (a number used once so identical plaintext blocks never produce identical ciphertext), and the digest of the vault header is bound into every chunk's Associated Data (AAD). That means modifying header fields, reordering chunks, or swapping chunks between vaults breaks cryptographic verification. Plaintext source files naturally still exist on disk and pass through application RAM during processing, where sensitive buffers are explicitly wrapped for zeroization using the RustCrypto zeroize crate.
4.4 Authenticated Staged Extraction and Atomic Final Publication
Successful cryptographic decryption proves that the bytes inside a vault were not altered in transit. It does not prove that the archive inside is safe to unpack onto your filesystem. Because Ombracrypt supports recipient-sealed contributions, you may legitimately decrypt a vault assembled by an external party whose archive structure is malformed or hostile.
To treat extraction as a security boundary, pipeline.rs and fs_guard/ implement authenticated streaming with staged extraction and atomic final publication:
During extraction, decrypted files are written into a restricted staging directory while fs_guard enforces path-traversal rejection, restricts entries to regular files and directories, rejects duplicate or conflicting paths, and caps directory depth (64 levels), path length (512 characters), total archive entries (50,000), and total extracted size against the authenticated header size bound.
Two important implementation nuances apply here. First, this is not purely in-memory extraction; decrypted files do temporarily touch disk inside the staging directory. Second, the final destination folder only appears via an atomic no-clobber rename (an operating-system operation that publishes a directory in one indivisible step without overwriting existing data) after the entire stream, including the final chunk, has authenticated cleanly. If verification fails mid-stream, the destination remains untouched and Ombracrypt performs best-effort cleanup of the staging directory. Because power loss, forced app termination, OS file locks, or restrictive permissions can still leave orphaned staging remnants behind, Ombracrypt includes a built-in Hygiene tool in the desktop interface (and a matching clean command in the CLI) specifically designed to locate and purge leftover temporary artifacts after an interrupted session.
5. What This Architecture Does Not Solve
Every cryptographic design draws a perimeter. Being explicit about what sits outside that perimeter is just as important as explaining what sits inside it. Full details live in SECURITY.md, and five boundaries deserve attention before anyone relies on Ombracrypt.
-
Confidentiality is not sender authentication: Because
.obpis a public key, anyone who obtains it can create a valid.obvvault addressed to you. Decrypting a vault proves confidentiality and confirms the ciphertext was not tampered with after sealing; it does not prove who created the vault. Similarly, Ombracrypt's 128-bit public-key fingerprint helps detect key substitution only if you verify that fingerprint with the recipient through a separate trusted channel. -
Vault headers expose metadata: The
.obvheader is authenticated (bound into the AEAD associated data so tampering causes decryption to fail), but it is not encrypted. Anyone inspecting the.obvfile on a cloud server can read its algorithm identifiers, KDF parameters, authenticated source content size, salt, nonce, and KEM ciphertext. Filenames and directory structure remain inside the encrypted payload, but file size and cryptographic parameters are visible to the storage layer. -
Offline password guessing when both
.obvand.obkare compromised: Stealing.obkalone does not give an attacker a verification target, and stealing.obvplus a weak password without.obkdoes not allow offline brute-forcing because the KEM secret is missing. However, if an attacker captures both the encrypted.obvvault and its corresponding.obkprivate key, they can decapsulate the KEM secret and test candidate master passwords offline against the authenticated ciphertext. Ombracrypt v2 currently configures Argon2id at 64 MiB of memory, 3 passes, and 4 lanes to remain usable on modest desktop and laptop hardware. Compared to heavier baselines like Picocrypt-NG's 1 GiB normal profile, that lowers per-guess memory cost. Using strong, unique passwords per vault remains essential. -
Zero-escrow means zero centralized recovery: There is no cloud account, no master admin key, and no password-reset flow. Losing the only usable copy of the private key (
.obk), or losing the corresponding master password, makes the vault permanently unrecoverable. Self-custody shifts backup discipline entirely onto the user or organization. -
Endpoint compromise, memory retention, and duress limits: File encryption cannot defend against malware, keyloggers, or a compromised operating system on the machine performing encryption or decryption. While
ombracrypt-coreexplicitly callszeroizeon sensitive Rust buffers, software zeroization cannot guarantee erasure across CPU registers, OS swap space, or JavaScript strings passing through a desktop WebView frontend (and while the CLI avoids the WebView surface, command-line workflows carry their own risks around shell history and environment variables). Likewise, Ombracrypt's optional deception passcode (deception.rs) attempts to overwrite the targeted.obkfile with random bytes, but software overwrites cannot guarantee physical erasure against SSD wear-leveling, copy-on-write filesystems, OS snapshots, or previously copied backups.
6. Design Transparency, Verification, and Open Review
Trusting a relatively young open-source encryption project requires more than reading a list of modern primitives. Algorithms do not guarantee safe software; implementation details, test coverage, and transparent boundaries do.
Ombracrypt v2 is structured so that anyone with a Rust toolchain can inspect the exact mechanics behind every claim in this article:
-
100% cryptographic parity across GUI, CLI, and platforms: Both the Tauri desktop application and the standalone CLI compile against the exact same Rust cryptographic engine inside
crates/ombracrypt-coreacross Linux, macOS, and Windows. There are no divergent encryption codebases or platform-specific format quirks: a.obvvault sealed in the desktop GUI on one operating system decrypts identically through the CLI on another, using the exact same key derivation, framing,fs_guardrules, and Hygiene cleanup logic. -
Reproducible compatibility checks: The repository maintains frozen compatibility fixtures (
apps/cli/tests/fixtures/desktop_v2andcrates/ombracrypt-core/tests/fixtures/xwing_revision11) and automated core-to-CLI interoperability tests inapps/cli/tests/interop_tests.rscovering all four combinations of KEM profiles (X-Wing,Cypherpunk) and AEAD ciphers (XChaCha20-Poly1305,AES-256-GCM). To be exact about scope, these automated tests verify interoperability betweenombracrypt-coreand the CLI executable rather than driving full end-to-end desktop GUI automation. -
Explicit standards and security documentation: The repository documents its threat boundaries and disclosure expectations in
SECURITY.md, clearly separating NIST-standardized primitives (ML-KEM under FIPS 203), active drafts (X-Wing), and custom compositions (Cypherpunk and the two-input master-key derivation). -
Permanent release archival: Release snapshots are archived on Zenodo (
DOI: 10.5281/zenodo.24519896) alongside the GitHub repository for permanent reference and version traceability. - Independent audit status: Ombracrypt v2 is an actively hardened open-source release, and it has not undergone a formal independent third-party cryptographic audit. Unit tests, regression checks, and known-answer fixtures catch implementation regressions; they are not a substitute for independent protocol and code review.
This introductory piece covers the overall architecture at a high level. Subsequent articles in this series will examine individual components in code-level detail: the protocol nuances of recipient-sealed submissions, the compromise mechanics of two-input master-key derivation, hybrid KEM trade-offs, bounded-memory streaming in Rust, defensive archive extraction, and the security boundaries of desktop WebView applications.
The interesting part of encryption is rarely just which cipher sits at the center of the diagram. It is how the surrounding system decides who holds the keys, what happens when inputs turn hostile, and where the software's guarantees stop. Ombracrypt v2 is one engineering attempt to draw that boundary cleanly. Its source code, test suite, and threat model are open on GitHub under the CAL-1.0 license for inspection, verification, and peer review.




Top comments (0)