ArkiveSecurity architecture
Security notes/Encryption format v1

How Arkive's encryption architecture works.

Arkive uses a platform-independent, versioned file format. A trusted client encrypts before files reach storage and decrypts them after vault unlock. The web app is available today; desktop and mobile clients are in development and are intended to use the same key model and format.

The current web client is the first implementation of format v1. The cryptographic boundary is the client, not a particular browser API.

File format
Version 1
File encryption
AES-256-GCM
Password protocol
OPAQUE profile

01 / System map

Three parts. Different responsibilities.

The client handles readable data and keys. Core manages account and access state. Object storage holds encrypted file objects.

Figure 01 / Client, control plane, object planeArkive format v1

01 / Trusted client

Your Arkive client

Web available; desktop and mobile in development. Plaintext and unlocked keys stay on the client.

Control channel ↕ OPAQUE, encrypted metadata, IDs, access rules, signed URLs

02 / Control plane

Arkive Core API

Coordinates the account, file records, sharing rules, and signed transfer URLs.

Direct data channel ↕ client to storage; file bytes bypass Core

03 / Object storage

S3-compatible storage

Stores encrypted file chunks and thumbnails. Object size and timing remain visible.

Core authorizes transfers with signed URLs. File bytes travel directly between the client and object storage; they do not pass through the Arkive API.

02 / Key model

Sign-in, vault unlock, and file encryption are separate jobs.

OPAQUE authenticates the account and produces an export key for the client. HKDF derives a wrapping key from it; a separate random vault key protects file keys.

Figure 02 / How the keys connect

01 / Authenticate

OPAQUE exchange

The client derives an export key. Core stores a registration record, not the raw password.

02 / Derive

HKDF-SHA-256

Export key, vault salt, and a fixed context produce a vault key-encryption key.

03 / Unlock

Random vault master key

The derived key unwraps the 32-byte vault key. The server stores its encrypted envelope.

04 / Encrypt

Per-file keys

The vault key wraps random file keys; AES-256-GCM encrypts chunks and file records.

Recovery path

Recovery keyHKDF-SHA-256separate wrapping keysecond wrapped copy of the vault key

The raw export, vault, and recovery keys are needed on an unlocked client. Arkive stores wrapped key material so the client can unlock the vault later. Lose both your password and recovery key, and Arkive cannot restore your files.

03 / Data boundary

What the service stores and sees.

Encrypted content does not mean an empty database. Core needs records to find objects, apply sharing rules, measure storage, and return the right encrypted data.

Data visible to Arkive Core and S3-compatible storage
DataArkive CoreObject storage
File contentsDoes not receive plaintext in the normal upload flowEncrypted file chunks
Names and file recordsEncrypted metadata, manifests, and wrapped key envelopesEncrypted thumbnail objects
KeysWrapped vault, recovery, file, and share key materialNo unwrapped client keys
Account and structureEmail, OPAQUE record, IDs, parent links, versions, and timestampsOpaque object identifiers
Search and sharingBlind name-search tokens, link policy, expiry, and access limitsObject size and transfer timing

Search tokens hide the name itself, but repeated tokens can reveal equality patterns. Core also sees operational request data and enough file structure to provide the workspace.

Version history

Each revision keeps encrypted file objects and key/metadata envelopes. A client with the vault unlocked can preview or restore a revision.

04 / Sharing

A folder can keep the same link as it changes.

Folder shares let collaborators return to one shared place. The link can show newly added items while access remains active.

Figure 03 / Share lifecycle

01 / Select

Choose a file or folder

Share a single item or a workspace folder.

02 / Prepare

Wrap keys for the share

The client prepares the required key material without uploading plaintext keys.

03 / Link

Send the full URL

The decryption secret sits after #key=; browsers omit fragments from ordinary HTTP requests.

04 / Control

Set limits or revoke

Use a password, expiry, preview/download rules, or revoke future access.

When an item is added inside a shared folder, the client prepares key entries for its active share scope, so collaborators can see new content at that folder link.

Revoking a link blocks future access through Arkive. It cannot erase a copy a recipient has already opened or saved.

05 / Authentication design

Why use OPAQUE?

OPAQUE is a password-authentication protocol, not a file cipher. Arkive uses its client-side export key as one input to a separate vault-key hierarchy.

This keeps account authentication separate from file encryption. A password change can re-wrap the random vault master key instead of re-encrypting every file. Recovery uses a separate key path.

OPAQUE does not make Arkive more secure by itself, hide service metadata, or protect a compromised unlocked client.

Publicly documented authentication and key-management designs
Published designKey-management approach
ArkiveOPAQUE export key → HKDF wrapping key → random vault master key
Proton DriveOpenPGP payload keys and a hierarchical folder/node-key model
FilenPassword-derived master-key history and AES-GCM file encryption
TresoritSeparate password-derived authentication and profile keys

These systems solve related problems with different tradeoffs. This is a comparison of published key-management designs, not a security ranking; implementation details can change.

06 / Threat model

What this design protects—and what it cannot.

The model reduces what a storage or database read can reveal. It does not make every part of the service, device, or sharing process invisible.

Designed to protect

  • 01Stored file contents and sensitive metadata are encrypted; file keys are wrapped.
  • 02OPAQUE sign-in messages do not send the raw password to Core.
  • 03AES-GCM detects modified ciphertext when a client decrypts it.

Outside that protection

  • 01A compromised device or altered client code can expose files while unlocked.
  • 02Core sees account and file structure, timing, sizes, access rules, and repeated search-token patterns.
  • 03Recipients can keep copies; encryption cannot stop the service withholding or deleting data, or prove it returned the newest valid revision.
  • 04A stolen OPAQUE registration plus server secret can enable offline password guesses. Lost password and recovery key mean lost access.

Post-quantum status

The current OPAQUE profile is classical.

Arkive uses Ristretto255 with TripleDH and Argon2 for OPAQUE. This is not post-quantum key establishment. Adding a hybrid profile would require protocol and key-envelope migration; it is not a server-only switch. File encryption can remain AES-GCM if clients can unlock and re-wrap the vault key.

07 / Platforms & sources

One format, implemented per platform.

The user-facing client changes by device. The cryptographic roles and file format stay consistent so a file encrypted on one Arkive client can be opened by another compatible client.

Web client
Available · v1 reference implementation
Desktop
In development · Linux first
Sync engine
In development
Mobile apps
In development

Current v1 building blocks

Cryptographic primitives and their roles in format version 1
AES-256-GCMFile chunks, metadata, and key envelopes
HKDF-SHA-256Derive vault and recovery wrapping keys
HMAC-SHA-256Create blind name-search tokens
SHA-256Hash encrypted chunks for transfer checks
OPAQUE profileRistretto255 OPRF · TripleDH with SHA-512 · Argon2

Version 1 envelopes contain a version byte, a random 12-byte nonce, ciphertext, and the GCM authentication tag. Associated data binds encrypted values to their intended context.