Security Whitepaper: How RocketShare Encrypts Files

Technical whitepaper on RocketShare: AES-256-GCM in the browser, key handling in the URL fragment, what the server stores, threat model and known limits.

Last updated: October 15, 2026

This document provides a comprehensive technical overview of how RocketShare protects your data. It is intended for security professionals, compliance officers, and anyone who wants to understand exactly how our encryption works.

1. Executive summary

RocketShare is a zero-knowledge encrypted file sharing platform. Files are encrypted client-side using AES-256-GCM before upload, and the encryption key is embedded exclusively in the URL fragment—a part of the URL that browsers never transmit to servers. This architecture means that RocketShare operators cannot read or decrypt file contents, including in response to lawful interception requests. The one exception is optional email delivery: if the sender asks RocketShare to email the link, the key passes through our servers once to send that email (it is never stored). File names, sizes and other metadata are not encrypted (see section 4).

Key properties:

  • Zero-knowledge architecture — the server never stores decryption keys
  • End-to-end encryption — files are encrypted before leaving the sender's device and decrypted only on the recipient's device
  • No server-side key storage — keys exist only in the share link URL fragment (with email delivery, the key is used transiently to send the email and then discarded)
  • Automatic expiry and deletion — files are permanently deleted after expiry

2. Threat model

What we protect against

  • Server compromise — even if an attacker gains full access to our servers, stored files remain encrypted and unreadable without the per-transfer key
  • Network interception — TLS (HTTPS) protects data in transit; encryption keys in URL fragments are not sent to our servers when the sender shares the link directly
  • Insider threats — RocketShare operators have zero access to file contents by design, not policy
  • Lawful interception — we cannot comply with decryption requests because we do not hold the keys; we can only provide encrypted blobs and metadata

What is outside our threat model

  • Compromised sender or recipient device — if malware has access to the user's browser, it could intercept keys or plaintext files
  • Share link interception — anyone who obtains the full share link (including the URL fragment) can decrypt the files; users must share links securely
  • Email delivery — if the sender uses RocketShare's email delivery, the link (including the key) is handled by our servers and our email provider to send the message, and it sits in the recipient's mailbox; senders who want the strongest guarantee should share the link themselves
  • Browser vulnerabilities — we rely on the Web Crypto API provided by the browser; browser-level exploits are outside our control

3. Encryption implementation

Algorithm

All file encryption uses AES-256-GCM (Galois/Counter Mode), a symmetric authenticated encryption algorithm. GCM provides both confidentiality and integrity, meaning any tampering with the ciphertext is detected during decryption.

Key generation

Encryption keys are generated client-side using the browser's Web Crypto API (crypto.subtle.generateKey), which is backed by the operating system's cryptographically secure pseudorandom number generator (CSPRNG).

  • Key size: 256 bits
  • Source: Web Crypto API (crypto.subtle.generateKey), backed by OS-level CSPRNG
  • Scope: one unique key per transfer (file or bundle)

Encryption process

  1. The user selects files for upload
  2. A 256-bit AES key is generated using crypto.subtle.generateKey()
  3. A unique 96-bit initialization vector (IV) is generated per encryption operation
  4. Files are encrypted in the browser using AES-256-GCM via the Web Crypto API
  5. The encrypted ciphertext is uploaded to the server
  6. The raw key material is Base64url-encoded and placed in the URL fragment (#<base64url-key>)

Streaming encryption

For large files, RocketShare uses a streaming encryption approach. Files are processed in chunks to minimize memory usage, allowing encryption and upload of files that exceed available RAM.

Each chunk is encrypted with its own randomly generated 96-bit IV (crypto.getRandomValues), ensuring unique ciphertext for each chunk even if file contents repeat.

4. Key management

URL fragment approach

The decryption key is embedded in the URL fragment (the portion after #). This is the critical security property of the system:

  • Browsers never transmit URL fragments to servers in HTTP requests (RFC 3986, Section 3.5)
  • The fragment stays entirely client-side — in the browser's address bar, history, and when shared by the user
  • The server only receives the path and query parameters, never the #... key portion

Key lifecycle

  1. Generation — created in the sender's browser using CSPRNG
  2. Use — used immediately for client-side encryption
  3. Embedding — placed in the share link URL fragment
  4. Transmission — the user shares the link via their preferred secure channel (email, messenger, etc.), or optionally asks RocketShare to email it (the key then passes through our servers once and is not stored)
  5. Decryption — the recipient's browser reads the fragment and decrypts the file
  6. No storage — keys are never stored on the server; they exist only in the share link

What the server stores

The server stores only:

  • Encrypted file blobs (ciphertext)
  • Transfer metadata (not encrypted): file names and folder paths, file sizes, MIME types, expiry date, timestamps, and — if provided — the transfer title, message to the recipient, and sender/recipient email addresses
  • Transfer settings: download limit and download count, password hash (if password protection is enabled)
  • Account-level data: email, auth tokens (not related to file encryption)

The server never stores: encryption keys, plaintext file contents, or any data that could be used to derive the key.

5. File lifecycle

Upload

  1. User selects files → encryption key generated client-side
  2. Files encrypted with AES-256-GCM in the browser
  3. Encrypted blobs uploaded to object storage via HTTPS
  4. Server stores ciphertext + metadata, returns transfer ID
  5. Share link constructed: https://rocketshare.app/d/{id}#{base64url-key}

Storage

  • Encrypted files are stored on S3-compatible object storage hosted in the EU (Amsterdam)
  • Files are stored as opaque encrypted blobs — the storage provider cannot read them
  • Metadata is stored in PostgreSQL with encryption-at-rest on the database volume

Download

  1. Recipient opens the share link
  2. Browser extracts the key from the URL fragment (never sent to server)
  3. Encrypted blob is downloaded from the server
  4. Decryption happens entirely in the recipient's browser
  5. Plaintext file is presented to the user for download

Expiry and deletion

  • Transfers have a configurable expiry (1 to 90 days, with the maximum depending on plan; without an account, 3 days)
  • After expiry, an hourly cleanup task permanently deletes the encrypted blobs from object storage
  • The transfer and file metadata records (file names, sizes, timestamps) are retained in an expired state for accounting and audit purposes, but all encrypted file data is irreversibly removed
  • No backups are kept of expired file data

5a. Local share (device-to-device)

Local share sends files directly between two browsers on the same network, without uploading them.

  • Discovery and signaling. Browsers open a WebSocket to a signaling Worker on Cloudflare. Devices are grouped by a salted SHA-256 hash of their public IP address (the /64 prefix for IPv6). The signaling server sees only that hash, each device's display name and device type, and the WebRTC handshake messages (session descriptions and ICE candidates). It stores nothing persistently.
  • Transport. Files travel over a WebRTC data channel, which is encrypted with DTLS. When devices are on the same network the connection is direct; RocketShare runs no relay (TURN) server, so transfers that cannot connect directly fail rather than being relayed.
  • End-to-end layer. Inside the data channel, each side generates an ephemeral ECDH P-256 key pair and exchanges public keys. Both run HKDF-SHA256 over the shared secret, both public keys and both DTLS certificate fingerprints to derive an AES-256-GCM key and a 6-digit verification code. Binding the DTLS fingerprints means a signaling server that substitutes certificates (man-in-the-middle) produces different codes on the two screens.
  • Messages. Every message after the key exchange — transfer requests, file names and sizes, file data and control messages — is encrypted with AES-256-GCM using a per-direction counter nonce. The channel is ordered and reliable, so reordered, replayed or dropped messages fail authentication and end the connection.
  • Receiving. Nothing is transferred until the recipient accepts. Received data streams directly to disk (or a ZIP for several files) with a 16 MB acknowledgement window, so memory use does not grow with file size.
  • Limitations. Comparing the verification code is optional; without comparing it, users rely on the signaling server not to interfere. Devices behind the same public IP that are not on the same local network (for example on a carrier-grade NAT) can see each other's display names, which is why every transfer requires explicit acceptance.

5b. Upload requests (Teams)

Upload requests let someone without an account send files to a team. The design keeps the zero-knowledge property: RocketShare stores the files and the keys in a form it cannot open.

  • Team key. An owner or admin's browser generates an ECDH P-256 key pair and a random 256-bit team secret. The private key is encrypted with AES-256-GCM under a key derived from the team secret with HKDF-SHA256 (the team ID and key version are bound as associated data). The server stores the public key and the wrapped private key only.
  • Unlocking devices. The team secret is shown once, as an unlock link that carries it in the URL fragment. Team members share it among themselves outside RocketShare. Each member's browser unwraps the private key once and keeps it in IndexedDB as a non-extractable key; the fragment is removed from the address bar and history straight away.
  • Request links. A request link has the form /r/{id}#{team public key}. Because the public key is in the fragment, the server never receives it from the sender's browser and cannot swap in a key of its own.
  • Sending. The sender's browser encrypts the files with a fresh per-transfer AES-256-GCM key, using the same streaming pipeline as normal transfers. It then wraps that key for the team: an ephemeral ECDH P-256 key, HKDF-SHA256 bound to the request and transfer IDs, and AES-256-GCM. The server stores the ephemeral public key and the wrapped key.
  • Receiving. A team member's browser unwraps the transfer key with the team's private key and opens the normal download page. Transfers received through a request are only served to signed-in members of that team; upload calls require a per-transfer upload token issued to the sender's browser.
  • Limitations. File names, sizes, the sender's name and email and the optional message are stored in plaintext, as for every transfer. Anyone with a request link can upload until it expires, reaches its size limit or is closed. If every team member loses the team secret, files received through request links cannot be decrypted. Removing a member does not remove the key from a device they already unlocked; creating a new team key for new requests is the remedy.

6. Infrastructure

Hosting

  • Application: deployed on Cloudflare Workers (edge compute)
  • Database: PostgreSQL, hosted in the EU
  • Object storage: S3-compatible, EU (Amsterdam) region
  • Cache: Cloudflare KV (key-value store), for session and rate-limiting data only — never used for file content
  • CDN: Cloudflare global network for static assets and edge routing

Data residency

All file storage and database servers are located within the European Union. We do not replicate file data outside the EU. The application itself runs on Cloudflare's global edge network, so requests (including metadata) may be processed outside the EU, as described in our Privacy Policy.

Network security

  • TLS (HTTPS) on all connections
  • HSTS with preloading — browsers are instructed to always use HTTPS
  • HTTP security headers — CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy
  • No mixed content — all resources loaded over HTTPS

7. Authentication and access control

User authentication

  • Email/password — passwords hashed with scrypt (N=16384, r=16, p=1), minimum 8-character length enforced
  • OAuth — sign in with Google or Microsoft via OAuth 2.0 / OpenID Connect
  • Not available: two-factor authentication and enterprise single sign-on (SSO)
  • Session management — secure HTTP-only cookies with proper SameSite attributes

Transfer access controls

  • Link-based access — anyone with the complete share link can decrypt (the key is in the URL)
  • Optional password protection (signed-in senders) — transfers can require an additional password. This is a server-side access gate, separate from encryption: the password is hashed with PBKDF2-SHA256 (100,000 iterations, random salt), and the file list and download URLs are only released after it is verified. File contents remain protected by the link key
  • Download limits (signed-in senders) — configurable maximum number of downloads, after which the transfer expires
  • Expiry — automatic time-based expiry after which encrypted file data is permanently deleted

8. Data minimization and retention

Principle of least data

We collect only what is necessary to operate the service:

  • Account data: email address, name (if provided via OAuth), hashed password
  • Transfer metadata: file names and folder paths, sizes, MIME types, timestamps, expiry dates, and any title, message or email addresses the sender adds
  • Usage data: transfer counts and storage used (for plan enforcement)
  • Analytics: usage patterns via PostHog (EU-hosted), only after cookie consent; URL fragments are stripped before events are sent, session recordings mask all text and inputs, and download pages are excluded from recording

What we do not collect

  • File contents (we cannot access encrypted blobs)
  • Encryption keys
  • Browsing history or cross-site tracking data

Retention

  • Transfers: encrypted file data deleted automatically at expiry; transfer metadata retained in expired state
  • Account data: retained while account is active; deleted upon account deletion request
  • Logs and analytics: see our Privacy Policy for retention periods

9. Incident response

In the event of a security incident:

  1. Containment — isolate affected systems immediately
  2. Assessment — determine scope and impact; thanks to zero-knowledge architecture, a server breach does not expose file contents
  3. Notification — the supervisory authority is notified within 72 hours where GDPR requires it, and affected users are informed without undue delay when a breach poses a high risk to them
  4. Remediation — fix root cause, improve defenses
  5. Disclosure — public disclosure of the incident and our response

Security issues can be reported to us via our Responsible Disclosure policy.

10. Limitations and transparency

We believe in being transparent about what our security architecture does and does not protect:

  • We cannot recover lost links — if a user loses the share link (including the URL fragment), the encrypted files cannot be decrypted. We do not have the key.
  • Link security is the user's responsibility — the share link is the sole access credential. If it is intercepted (e.g., sent over an insecure channel), the interceptor can decrypt the files.
  • Content Security Policy — server-rendered responses use a nonce-based script policy with strict-dynamic; prerendered static pages use a 'self'-based policy that still allows inline scripts. Inline styles require unsafe-inline due to Tailwind CSS.
  • Browser trust — our encryption relies on the Web Crypto API. If the browser is compromised, all bets are off.
  • Metadata visibility — while file contents are encrypted, file names, folder paths, sizes, timestamps, the transfer title and message, and any email addresses entered are visible to the server.
  • Email delivery — when the sender uses email delivery, the key passes through our servers to send the email. It is not stored or logged, but this is a trust-based guarantee rather than a cryptographic one. Sharing the link yourself avoids it.

This whitepaper is current as of October 2026. We update this document when our security architecture changes. For questions, contact us.