Opening encrypted journals

If you’ve encrypted a journal in Vaultbook, its entries and photos are stored as locked files with random names. Vaultbook opens them for you. If you ever want them back as ordinary files without the app, there are two ways.

In Vaultbook

Settings › Privacy › Encrypted Journals › Restore turns a journal back into ordinary Markdown files and photos, in the same folder. Obsidian and other apps can read them again straight away.

Without Vaultbook, on a Mac

You need your passphrase or your recovery code, and a Mac. Nothing else: no account, no internet connection, nothing is sent anywhere.

  1. Download vaultbook-decrypt.swift.
  2. Open Terminal and run:
    swift ~/Downloads/vaultbook-decrypt.swift "<your Vaultbook folder>" ~/Desktop/Decrypted

    Your Vaultbook folder is in iCloud Drive, called Vaultbook. You can drag it into the Terminal window instead of typing the path.

  3. Type your passphrase, or your recovery code, when asked.

Every entry and photo is written into the Decrypted folder under its original name. Your Vaultbook folder is only read, never changed. If Terminal says swift isn’t found, it will offer to install Apple’s command line tools first; say yes and run step 2 again.

How it works

Each file is encrypted on your device with ChaCha20-Poly1305, using a key that never leaves your devices except inside your iCloud Keychain, which Apple encrypts end to end. Your passphrase and recovery code each unlock a copy of that key kept in your Vaultbook folder. The full file format is published in ENCRYPTION-FORMAT.md, so anyone can write their own tool to read your journal. The one above was written from that document alone.