Security

How your files are kept

Where they live, who can read them, and the one thing that can’t be undone.

The short version is below. For the technically curious, the diagrams further down show exactly what happens to a file you put in the drive.

Where your files live

Your files are stored in Cloudflare’s R2 storage. When you open or save a file, your Mac talks to storage directly using a short-lived link that works for that one file only: about an hour for reading, 15 minutes for writing. Your files never pass through our own servers. Our servers only keep track of your folders and give out those links.

Every connection is encrypted in transit (HTTPS). Storage encrypts everything at rest. That protects your files from outsiders, but without the option below, we could technically read them.

Optional encryption: only you hold the key

Encryption is off unless you turn it on. With it on, your Mac locks each file and each file and folder name before anything leaves it. We receive only locked data. We can see how many files you have, how big they are and when they changed, but not what they’re called or what’s in them.

  • Each file gets its own random key. Those keys are locked by one main key for your account.
  • On each Mac, the main key is protected by a key that never leaves that Mac’s secure chip (the Secure Enclave).
  • When you turn encryption on, you get a recovery key: 52 characters in groups of four. Save it in Passwords, as a PDF, or on paper. We never see it.
  • Your files already in the drive are re-uploaded in locked form in the background. You can keep working while it happens.
  • We use Apple’s built-in cryptography (CryptoKit) with standard, well-studied methods. Nothing home-made.

Adding another Mac

Type your recovery key on the new Mac, or approve it from a Mac you’re already signed in on. To approve, both Macs show the same six digits; check they match and click Approve.

If you lose your recovery key

While you’re signed in on at least one Mac, you can make a new recovery key there. The old one stops working.

If you lose your recovery key and every signed-in Mac, your encrypted files cannot be recovered. Not by you, not by us, not by anyone. We don’t keep a copy of your key, which is exactly why nobody else can read your files.

Sharing encrypted files

A share link for an encrypted file carries the file’s key after a # in the link. Browsers don’t send that part to servers, so the person you share with can open the file and we still can’t. Anyone who has the whole link can open the file, so share it the way you’d share the file itself. Files that others upload to you through a request link arrive unlocked and are locked by your Mac at its next sync.

On the web

If your account is encrypted, the web app asks for your recovery key once per browser session and keeps it in memory only, never on disk. Names and files are unlocked in your browser. Pages that handle your key load no third-party scripts.

How we run things

  • Each Mac signs in with its own token, stored in the Keychain. You can sign out any device from your account.
  • Every request is checked against your account, so one account can never read or write another’s files.
  • Share and request links use long random codes and stop working when the file is deleted or you turn them off.
  • Our logs never contain file names, paths, keys or links.
  • The app is signed and notarized by Apple, and updates are signed so only ours install.
  • Deleted files stay in Recently Deleted for 30 days. If you delete your account, you can undo it for 7 days; then we erase your files, within 8 days of the deletion.

Not a backup

PhantomDisk keeps one copy of each file, in the cloud, plus 30 days of older versions and deleted files. It isn’t a backup. Keep a separate copy of anything you can’t afford to lose.

Found a problem?

Write to hello@phantomdisk.com. We’ll reply, fix it and credit you if you’d like.

Under the hood

What happens to a file you drop in.

PhantomDisk cuts it into pieces, sends them straight to storage and keeps a short list of where each one went. That list is what lets any part of the file come back on its own.

What happens to a file you put in PhantomDisk, in seven parts.

  1. Your file. Any size. This one is a 52.41 GB film, as an example.

  2. Cut into 8 MiB pieces. This film makes 6,248 of them. Each one uploads and is checked on its own.

  3. 64 blocks of 128 KiB in every piece. The smallest part PhantomDisk fetches, so opening or skipping never waits for a whole piece.

  4. Sealed before it leaves, with encryption on. Each block is locked with its file’s own key and gains a 16-byte tag (131,088 bytes stored). Bytes shown are examples. With encryption off, blocks go up as they are.

Straight to storage. Up to 4 pieces at a time, each on its own upload link that works for 15 minutes.

  1. Stored as separate objects. In Cloudflare R2. Our servers hand out the links, but the bytes never pass through them.

  2. A manifest lists every piece. With each piece’s SHA-256 fingerprint, so any part can be found and checked later. Hashes shown are examples.

  3. Checked, then space freed. The copy on your Mac is let go only after every piece is verified and the upload is committed.

  • On your Mac
  • On its way
  • In the cloud
  • Locked

Where the bytes go

Your Mac talks to Cloudflare R2 storage directly. Our servers keep track of folders and hand out links; file bytes never pass through them.

Short-lived links
Each link works for one file only: about an hour for reading, 15 minutes for writing.
Encrypted in transit and at rest
Every connection uses HTTPS, and storage encrypts everything it holds.

Your Mac asks our server for a link to one file, and gets one that works for about an hour to read or 15 minutes to write. File bytes then travel between your Mac and Cloudflare R2 storage over HTTPS. No file bytes pass through our server.

  • On your Mac
  • On its way
  • In the cloud

Make room on your Mac. Keep every file.