Language: English

Security

Encryption

  • On your device: files are split into chunks, each encrypted with AES-256-GCM. For standard links, keys come from a fresh 256-bit secret using HKDF-SHA-512. Other sharing modes derive keys using their required secrets. Tampering with any chunk is detected.
  • Passphrases are stretched with scrypt (128 MB per guess) on your device.
  • Sizes: small files are padded so their exact size doesn't show.
  • The server checks that an upload looks like an encrypted Locker, but it can't check what's inside: it has no key.

Layers of protection

Locker protects your files in several independent layers, from the random key made on your device to the connection itself. Each is shown below; the green layers protect your files, the blue ones the server's few records, and the orange ones transfers and connections.

Security layers: every place Locker uses encryption, keyed hashing or randomness.
Text version of this figure
  • Security layers: every place Locker uses encryption, keyed hashing or randomness.
  • Your files. Link key: 256 random bits from the browser's secure generator, carried only after # in the link and never sent to the server.
  • Your files. File encryption: HKDF-SHA-512 derives a key for each chunk and AES-256-GCM seals every chunk, so tampering is detected.
  • Your files. Hidden size and name: the file name and type are encrypted inside, and the stored size is padded so it does not reveal the content length.
  • Your files. Passphrase: an optional second secret, stretched on the device with memory-hard scrypt (128 MB).
  • The server's records. Identifiers: random 128-bit locators in day namespaces, keyed with HMAC-SHA-256; no permanent history.
  • The server's records. Access: Access Words or Emojis are checked on the server against encrypted check data; access never opens files.
  • The server's records. Shop replay records are sealed with AES-256-GCM and expire after 60 days; rate counters are keyed and kept in memory.
  • Transfers and transport. Nearby (beta): pairing by camera codes; each direction has its own AES-256-GCM key over WebRTC, with no signaling server.
  • Transfers and transport. Camera Codes: encrypted frames from screen to camera; enhanced mode adds a separate 256-bit key QR.
  • Transfers and transport. HTTPS with the hybrid X25519MLKEM768 key exchange where the server's OpenSSL supports it; a Tor onion address is optional.

Access is not file access

Three things stay separate:

Part Can Can never
The WordPress plugin Create invitations; check, change the tier of, or end access it created Upload, open, list or delete Lockers, see links or keys, or see other access
The Locker server Allow uploads, enforce allowances, store encrypted data Receive, make or hold file keys, or link access to files
Your browser Make keys, encrypt and decrypt Use access or invitations as keys

A Locker's address lets anyone download its encrypted data, by design. Opening it needs the secrets its sharing mode requires: the link's key, a separately sent key, or the passphrase. Tests try a stolen provisioning token, Access Words, invitations, revocation codes and other Lockers' keys against a Locker: none opens it.

Quantum resistance

See Quantum resistance for the details. Locker uses only symmetric cryptography (AES-256, HKDF, scrypt, SHA-2) and never sends a key through a public-key exchange, so encrypted Lockers are designed to resist "harvest now, decrypt later" attacks by future quantum computers.

What no web app can promise

  • Delivered code. Whoever runs a Locker server controls the JavaScript it serves and could change it to capture what you type in future visits. The source is public so it can be checked; the browser extension runs its own bundled code.
  • Recipients may keep what they received, or the link.
  • Your device: malware or a compromised browser can see what you see.

Report a problem

Report security issues privately to security@privacysafe.net, using the published GPG key.

This page is licensed under CC BY-SA 4.0. PrivacySafe Locker is free software under the GNU AGPL version 3 or later; see License.