Folder Vault Lock · Obsidian plugin documentation
Folder Vault Lock documentation

Folder Vault Lock encrypts and decrypts sensitive folders inside your Obsidian vault locally using Web Crypto AES-256-GCM and PBKDF2-SHA256. Keep private journals, medical records, client contracts, or financial notes encrypted on disk without splitting your knowledge base into separate vaults or relying on a cloud service.
All key derivation, encryption, decryption, integrity verification, and index-filter updates run offline on your device. Passphrases are never written to disk, settings files, or browser storage.
Version 1.0.0. Requires Obsidian 1.13.4 or later. Works on desktop and mobile.
1 Installation
Open Settings, then Community plugins, then Browse, and search for "Folder Vault Lock". Select Install, then Enable. Works on desktop and mobile.
2 Getting started
- Set your Primary protected folder in Settings (default:
Private). - Run "Lock configured folder" from the command palette, ribbon icon, or status bar.
- Check the scanned note counts, enter and confirm your passphrase, and select Lock folder.
- Run the decrypt command with the same passphrase to restore your notes.
- With Pro, open the protected folders dashboard, idle auto-lock controls, index hiding sync, or binary attachment locking.
3 Features
Local AES-256-GCM folder locking
Configure a protected folder and encrypt every Markdown note inside it with a passphrase. Folder Vault Lock derives a 256-bit key using PBKDF2-SHA256 (310,000 iterations) with a fresh 16-byte random salt per lock operation and a unique 12-byte random IV per file, binding envelope metadata via AES-GCM Additional Authenticated Data. Already-locked notes are skipped automatically.
Non-destructive envelope and wrong-passphrase guard
Each locked note uses a readable <!-- folder-vault-lock:v1 --> envelope format. Before modifying any file during decryption, the plugin verifies your passphrase against the first locked envelope using AES-GCM authentication. If the passphrase is wrong or a file was tampered with, decryption stops and leaves every file untouched.
Unlimited protected folders dashboard (Pro)
Protect as many folders as you need, such as Private/Journal, Clients/Acme, and Finance/Tax-2026. The status dashboard displays locked and open note counts, binary attachment counts, and one-click lock, decrypt, and remove controls for every configured folder.
Idle auto-lock timer and lock-on-quit guard (Pro)
When decrypting a folder with Pro, you can opt in to keep a non-extractable CryptoKey handle in memory (never written to disk). After your configured idle period of 1 to 240 minutes, or when closing Obsidian, Folder Vault Lock automatically re-locks open folders and clears all session keys from memory.
Hide locked notes from search, graph, and AI indexes (Pro)
Keep encrypted ciphertext blocks out of Obsidian Search, Graph View, Quick Switcher, and local AI assistants. Folder Vault Lock maintains managed regex entries in app.json (userIgnoreFilters) and a managed block in .aiignore while preserving all of your own existing filters.
Encrypted binary attachments (Pro)
Encrypt PDF, PNG, JPG, WEBP, GIF, SVG, and ZIP files inside protected folders using the compact FVL1 binary AES-256-GCM envelope. Magic bytes prevent double encryption or plaintext corruption.
4 Commands
Open the command palette and type the plugin name to see these commands. You can give each one a hotkey in Settings, Hotkeys.
| Command | Command id |
|---|---|
| Lock configured folder | folder-vault-lock:lock-folder |
Unlock configured folder |
folder-vault-lock:unlock-folder |
| Open protected folders dashboard | folder-vault-lock:folder-dashboard |
| Manage idle auto-lock and lock-on-quit | folder-vault-lock:configure-auto-lock |
| Hide locked notes from search, graph, and AI indexes | folder-vault-lock:sync-hide-filters |
| Lock folder with binary attachments | folder-vault-lock:encrypt-binary-attachments |
5 Settings
| Setting | Default | Description |
|---|---|---|
| Primary protected folder | Private |
Relative vault folder path protected in the free tier. |
| Show status bar summary | On | Show protected folder count and active auto-lock sessions in the status bar. |
| Idle auto-lock minutes | 15 |
Minutes of inactivity before open folders re-lock automatically (Pro). |
| Enable idle auto-lock | On | Automatically re-lock active sessions after the idle timeout (Pro). |
| Lock active sessions on quit | On | Re-lock active sessions and clear RAM keys on plugin unload or quit (Pro). |
| Hide locked folders from search and graph | On | Sync Obsidian userIgnoreFilters for locked folders while preserving user entries (Pro). |
Sync locked folders to .aiignore |
On | Maintain a managed block in .aiignore for locked folders (Pro). |
| Encrypt binary attachments | On | Encrypt matching binary files inside protected folders (Pro). |
| Binary attachment extensions | pdf, png, jpg, jpeg, webp, gif, svg, zip |
Comma-separated binary extensions encrypted alongside Markdown notes (Pro). |
6 Pro
The command "What Pro adds" shows each paid feature with an interactive demo on sample data.
- Protect unlimited vault folders with a per-folder lock status dashboard and one-click lock controls.
- Re-lock open folders automatically after an idle timeout or when closing Obsidian with zero disk key storage.
- Hide locked folders from Obsidian search, graph view, and AI-context ignore patterns while keeping existing filters intact.
- Encrypt and decrypt binary attachments such as PDF, PNG, and JPG files inside protected folders.
Sponsor $5 a month, or $15 once. When you have paid $15 in total, Pro stays on.
7 Privacy, payment and network
The core features are free. Pro features need a GitHub Sponsors sponsorship of theluckystrike: $5 a month or more, or $15 once. A total payment of $15 meets the payment requirement for Pro without further payment. Sign-in and the checks below still apply. Your notes stay readable and editable with or without Pro.
One payment turns on Pro in every NoteMods plugin.
GitHub handles the payment. Sponsor at https://github.com/sponsors/theluckystrike/sponsorships?tier_id=666162&frequency=one-time&metadata_source=folder-vault-lock. You need no account for the free features. Pro needs the GitHub account that sponsors.
Until you select "Sign in with GitHub" in the settings, Folder Vault Lock makes no network requests. Sign in uses the GitHub device flow. Folder Vault Lock sends its public client ID and the scope read:user to https://github.com/login/device/code and shows you a code. While you enter the code at https://github.com/login/device, it asks https://github.com/login/oauth/access_token every few seconds to check the sign-in status. The scope permits profile reads only. GitHub needs this access to show the sponsorship tier. It grants no repository scope and no write access.
After sign in, Folder Vault Lock sends one query to https://api.github.com/graphql. It checks if the signed-in account sponsors theluckystrike. It asks for the tier and the total payment to theluckystrike. The plugin reuses a successful check for 7 days. Failed checks can retry after 6 hours. Select Refresh to request an earlier check. It sends no note content, file names or other vault data, and it has no telemetry.
After a successful check, Pro can work offline for up to 14 days. Sign out or a negative sponsorship answer turns Pro off. The plugin stores the GitHub token through the secret storage API of Obsidian. It does not put the token in its saved settings or its local sponsorship data. The local storage of this device keeps your GitHub login, the tier and the time of the last check. Sign out clears the token. You can also revoke the access in your GitHub settings, under Applications.
8 Questions and answers
Is my passphrase stored anywhere on disk?
No. Folder Vault Lock never writes your passphrase to data.json, localStorage, or any vault file. In Free mode, the derived key is discarded immediately after the lock or decrypt operation finishes. In Pro mode, optional idle auto-lock holds only a non-extractable CryptoKey in RAM until the folder re-locks or Obsidian closes.
What happens if I enter the wrong passphrase when decrypting?
Folder Vault Lock tests your passphrase against the first locked file using AES-GCM authentication before writing anything to disk. If the passphrase does not match, decryption cancels immediately and leaves every file unchanged.
What happens if I forget my passphrase?
Because encryption uses standard AES-256-GCM and PBKDF2-SHA256 locally with zero cloud escrow or recovery backdoor, a lost passphrase cannot be recovered. Keep a backup of your passphrase in a password manager.
Can I still decrypt my folder if I stop using Pro?
Yes. All Markdown notes and any previously encrypted binary attachments decrypt in Free mode with your passphrase at any time. Your notes remain standard local files inside your vault.
9 Support
Plugin page: folder-vault-lock.
Report a bug or ask for a feature in the issue tracker of this repository. Include your Obsidian version and steps to reproduce without sharing any private notes or passphrases.
To build from source:
npm ci
npm run build
npm test
10 License
MIT