Skip to content
FolderSafe

How FolderSafe works

FolderSafe keeps each vault as a folder of individually encrypted files in an open, documented format. Unlocking does not decrypt the whole vault: a file is decrypted only when an app opens it, and on Mac those decrypted copies are removed when you lock it.

The life of a vault

1. Create

You choose where the vault lives and give it a name, for example Archive in Documents, on an external drive or in iCloud Drive.

  • FolderSafe generates two random 256-bit master keys. They never change for the life of the vault.
  • Your password is stretched with scrypt and wraps the master keys in masterkey.cryptomator. vault.cryptomator records the format and is signed with the master keys.
  • A 12-word recovery phrase is generated and shown once. It wraps a second copy of the master keys in foldersafe/recovery.json.

2. Unlock

With your password, Touch ID / Face ID or the recovery phrase.

  • The master keys are unwrapped in memory. A wrong password fails the key-wrap integrity check and is rejected.
  • Touch ID and Face ID use a device key kept on that Mac or iPhone. It is never written into the vault and never synced.
  • If you used the recovery phrase, FolderSafe asks you to set a new password.

3. Use

The vault appears in Finder or the Files app and works like a normal folder.

  • On Mac (macOS 13 and later), through Apple's File Provider: a location in the Finder sidebar under Locations. Files you open are downloaded, decrypted, into a local cache while the vault is unlocked.
  • On iPhone, through File Provider: a location in the Files app.
  • Each file is encrypted on its own, in 32 KB chunks, so saving a change rewrites only that file and cloud sync stays incremental.

4. Lock

Click Lock, or let your Mac do it when it sleeps, the screen locks, you are idle or you quit FolderSafe.

  • The keys are discarded from memory and the decrypted view is removed.
  • On Mac, the decrypted copies that File Provider cached for files you opened are removed.
  • What remains on disk is ciphertext: encrypted names, encrypted contents and the wrapped keys.

The format

FolderSafe vaults use an open, documented format whose data layer is compatible with Cryptomator vault format 8. FolderSafe's implementation is independent and checked against public test vectors.

  • File contents: AES-256-GCM, a new random key for every file, 32 KB chunks each with its own nonce and authentication tag.
  • File names: AES-SIV (RFC 5297), bound to the parent folder, so the same name in two folders encrypts differently.
  • Folder structure: stored flat in a d/ tree under random IDs, so the cloud doesn't see your folder hierarchy.
  • Password: scrypt (N = 32768, r = 8, p = 1) derives the key that wraps the master keys (RFC 3394).

Keys and recovery

The two master keys are created once and never change. Every way in only wraps them, so changing the password never re-encrypts your files.

  • Password → scrypt → key wrap in masterkey.cryptomator. A new password rewrites only this file.
  • Recovery phrase → 12 BIP-39 words (128 bits) → HKDF → AES-GCM in foldersafe/recovery.json.
  • Touch ID / Face ID → a key kept on that device only, never stored in the vault.
  • No key ever reaches us. There is no account and no server-side reset.

How the vault shows up

FolderSafe uses Apple's own File Provider framework on Mac and iPhone. There is no kernel extension.

macOS 13 and later

In the Finder sidebar, through File Provider

The unlocked vault appears under Locations in the Finder sidebar. Files you open are downloaded, decrypted, into a local cache while the vault is unlocked, and that cache is removed when you lock it. Turn FolderSafe on once in System Settings › General › Login Items & Extensions › File Providers.

iPhone

In the Files app, through File Provider

On iPhone, the unlocked vault appears as a location in the Files app. Decrypted copies of files you open may be kept in a local cache while the vault is unlocked.

A mode that mounts the vault on your Mac as a real folder is planned.

Protected while locked

  • File contents
  • File and folder names
  • The folder structure
  • From every process on the device, including root/sudo and AI agents
  • From your cloud provider and anyone with a copy of the vault, as long as your password is strong
  • From us: we never have your keys

Not protected

  • Anything while the vault is unlocked: apps running as you can read and change it
  • Deletion: a locked vault can still be deleted or damaged, so keep a backup
  • The number of files, their approximate sizes and modification times
  • Copies other apps make outside the vault, such as thumbnails, caches and recent-file lists
  • A weak password, against offline guessing by someone with a copy
  • Malware that records your password as you type it

Open your vault with Cryptomator

Your vault doesn't depend on FolderSafe. On any platform, an app that supports Cryptomator vault format 8 can open it with your password. With Cryptomator's own apps:

  1. Make sure the vault folder is on that device, for example through the same cloud folder or a copy on a drive.
  2. Install Cryptomator from its official website or app store.
  3. Choose to add an existing vault, and select the vault's vault.cryptomator file.
  4. Enter your FolderSafe password. Your files appear as usual.

Cryptomator ignores the foldersafe folder, so the recovery phrase and Touch ID / Face ID only work in FolderSafe. Cryptomator is a separate project; FolderSafe is not affiliated with it.

Check it yourself

The specification is public under CC BY 4.0. Anyone can write a compatible client. The source code of the apps and of the reference implementation is on GitHub under Apache-2.0, together with the interop tests and a written threat model. FolderSafe has not had an independent security audit yet.

The honest limit

Encryption protects files at rest. The moment you unlock a vault, your system treats it like any other folder: apps, scripts and AI agents running under your account can read it. FolderSafe keeps that window short with auto-lock on Mac, but it cannot make an unlocked vault invisible to software you run.

Leave the city open. Lock the keep.

Free · signed and notarized by Apple · macOS 13+ · 4.2 MB