Drive — End-to-end encryption

Files only your devices can read.

Turn on end-to-end encryption and your devices encrypt every file and file name before it is uploaded. harbor0 stores them, but can’t read them.

01 — How it works

  1. 01

    Turn it on

    In Settings › Encryption on the web, create a passphrase of at least 12 characters and save your recovery key. Neither ever reaches harbor0.

  2. 02

    Your files are encrypted

    The browser encrypts the files you already have and uploads them again, then deletes the unencrypted copies from our servers. New uploads are encrypted straight away.

  3. 03

    Unlock each device once

    A new browser or the desktop app asks for your passphrase once. Devices that are already unlocked stay unlocked.

02 — Under the hood

One key, locked three ways.

Your files are encrypted with keys that come from one master key. Your passphrase, your recovery key and each unlocked device can each open a copy of it — any one is enough. harbor0 holds only the locked copies.

PassphraseArgon2id
Recovery keyHKDF
Each deviceHKDF, device half + server half

each unlocks its own copy of

Master key256-bit, stored only wrapped

derives, with HKDF

File-key wrappingAES-256-GCM
Name keyNames → h0e1.…
Key proofGuards key changes

wraps a new key for every file version

File contentAES-256-GCM, 4 MiB chunks
01
Master key
One random 256-bit key per account. It never leaves your devices unwrapped: harbor0 only stores copies of it locked by keys we never see.
02
Passphrase
Stretched with Argon2id (64 MiB of memory, 3 passes) into a key that unlocks one copy of the master key. Guessing it means paying that cost on every try.
03
Recovery key
160 random bits, shown once as 8 groups of 4 characters. It unlocks its own copy of the master key, so it still works if you forget your passphrase.
04
Device copies
An unlocked browser or computer keeps its own copy. Half of its key stays on the device, half on our servers, so removing a device from Settings locks it out for good.
05
File keys
Every version of every file gets its own random key, stored in the file’s 80-byte header, wrapped by a key derived from the master key.
06
Content
Encrypted with AES-256-GCM in 4 MiB chunks. Each chunk is bound to its file and position, so chunks can’t be swapped, reordered or cut off without it showing.
07
Names
File and folder names are encrypted too. The same name always encrypts the same way, which lets the server stop two files sharing a name in one folder.
08
Changing keys
Changing your passphrase or recovery key re-wraps one copy of the master key. Your files aren’t encrypted again, and the old passphrase or key stops working.

03 — What harbor0 can see

Hidden from us

  • What’s inside your files
  • File and folder names
  • File types — every file is stored as plain bytes
  • Your passphrase, recovery key and master key

Still visible to us

  • How many files and folders you have, and how they nest
  • Roughly how big each file is, and when it changed
  • Which items in a folder share a name, but not the name
  • The names of your computers, and of the top folders you sync or back up
  • Your email address, sign-in activity and storage use

The server needs these to store your files, keep folders in order and count your storage. Encrypting and decrypting happen only in your browser and the desktop app, never on our servers.

04 — What changes

01
Works as before
Upload, folders, version history, trash, previews, search and downloads. Search, previews and downloads now happen on your device instead of our servers.
02
Desktop app
Sync, backups and the local WebDAV server encrypt and decrypt on your computer. It needs version 0.1.7 or later; older builds are refused so they can never upload a file unencrypted.
03
Not available
Sending files, shared folders, shared sync, folder ZIP downloads and rclone access tokens. Folders you’ve shared with others are paused for them.
04
Storage
Encrypted files are a few bytes bigger: 80 bytes per file and 16 per 4 MiB. While existing files are converted, an account may briefly go over its storage by at most its largest file.
05
Converting
Existing files are encrypted by one browser tab in the background. Keep it open until it finishes; if it closes, the next tab picks up where it stopped.
06
Earlier versions
Once a file is encrypted, its unencrypted versions are deleted from our servers.

05 — Questions

What if I forget my passphrase?

Enter your recovery key on the unlock screen and choose a new passphrase. An unlocked device can also change it from Settings.

What if I lose both?

Your files can’t be recovered — not by you and not by harbor0. That is what end-to-end means. If a device is still unlocked, use it to set a new passphrase or recovery key straight away.

Is the passphrase my sign-in password?

No. You sign in exactly as before, and the passphrase is a separate secret that only unlocks your files. Make it different from your password.

Can I turn it off?

Yes. Confirm with your passphrase and the browser decrypts every file and name, including the trash, then deletes the encrypted versions. Your keys are deleted once nothing encrypted is left. You can turn it on again later.

Can I encrypt only some folders?

No. Encryption is per account: either everything is encrypted or nothing is.

Should I tick Remember this browser?

On your own computer, yes: it stays unlocked until you sign out. On a shared computer, leave it off and the browser locks when the tab closes.

Does it work on phones?

Not yet. Encryption works on the web and in the desktop app for Mac and Windows.

06 — More of harbor0

50 GB free for beta members. Encrypted if you want it.