Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Encrypted Folders

eng618eng618150 downloads

Encrypt and decrypt entire folders within your vault with AES-256-GCM.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

Codacy Badge Codacy Coverage FOSSA Status

A secure, recursive folder encryption plugin for Obsidian. Protect entire directories within your vault with industrial-grade encryption while maintaining full compatibility with Obsidian features like Search and Graph while unlocked.

✨ Features

  • Recursive Encryption: Encrypt entire folder trees (including nested subfolders) with a single click.
  • Session Decryption: Temporarily restores plaintext to disk for seamless use with Obsidian Search, Graph view, and Backlinks while unlocked.
  • Improved Data Integrity: Encrypted files use a .locked extension, preventing Obsidian's indexer or third-party plugins from corrupting binary data by attempting "UTF-8 repairs."
  • Informational Readme: Automatically generates a README_ENCRYPTED.md in locked folders with clear instructions on how to unlock your data.
  • Master Key Architecture: Uses an encrypted Master Key (unwrapped by your password or a recovery key) for flexible access.
  • Recovery Keys: Generate a 32-character recovery key during setup to ensure you never lose access to your data.
  • Secure File Shredding: Automatically overwrites plaintext files with secure random data before re-encrypting to prevent forensic disk recovery.
  • Auto-Lock Security: All folders are automatically re-encrypted and locked when the plugin is disabled or Obsidian is closed.
  • Configurable Safeguards: Lock unlocked folders automatically when Obsidian goes into the background or after a configurable period of per-folder inactivity.
  • Exit Strategy: Permanently remove encryption from a folder if you no longer need it, restoring files to normal plaintext Obsidian management.
  • Integrity First: Prevents nested encryption within already encrypted folders to ensure a simple, reliable vault structure.
  • Sync-Safe State Tracking: Lock and unlock operations are journaled in metadata to improve cross-device consistency during delayed or partial sync.

🛡️ Security Specifications

  • Algorithm: AES-256-GCM (Authenticated Encryption with Associated Data).
  • Key Derivation: PBKDF2-SHA256 with 600,000 iterations.
  • Implementation: Native Web Crypto API for maximum speed and security.
  • Zero-Knowledge: Your master password and derived keys are never stored on disk.

🚀 How to Use

Encrypting a Folder

  1. Right-click any folder in the Obsidian File Explorer.
  2. Select Encrypt Folder.
  3. Set a strong password.
  4. IMPORTANT: Copy the generated Recovery Key and store it in a safe place (like a password manager).

Unlocking a Folder

  1. Right-click an encrypted folder.
  2. Select Unlock Folder and enter your password.
  3. Your files will be restored to plaintext on disk. They will be re-encrypted automatically when you "Lock" the folder or close Obsidian.

Locking a Folder

  1. Right-click an unlocked folder.
  2. Select Lock Folder.
  3. The plugin will securely overwrite the content on disk with ciphertext, rename files to [name].locked, and create a README_ENCRYPTED.md with instructions.
  4. The key is purged from memory for maximum security.

Auto-lock safeguards

  • By default, unlocked folders are locked automatically when Obsidian moves to the background.
  • By default, each unlocked folder is also locked after 5 minutes without activity in that folder.
  • Opening, editing, or otherwise working in files inside an unlocked folder refreshes that folder's inactivity timer.
  • You can change both safeguards in Settings → Encrypted Folders.
  • Set the inactivity timeout to 0 if you want to disable that safeguard.

Removing Encryption Permanently

  1. Right-click an encrypted folder.
  2. Select Permanently Decrypt Folder.
  3. If the folder is locked, enter your password to restore files.
  4. Confirm the permanent removal.
  5. The plugin will restore all files to plaintext and delete the encryption metadata files (obsidian-folder-meta.json and README_ENCRYPTED.md).

Sync behavior across devices

  • The plugin continuously rescans and reconciles encrypted-folder metadata after file create/modify/rename/delete events.
  • If a sync operation lands while a folder is transitioning, metadata state (locking / unlocking) is reconciled on the receiving device.
  • Background locking protects every unlocked folder at once, and per-folder inactivity locking reduces the chance that one forgotten unlocked folder stays open long enough to trigger cross-device sync conflicts.

🛠️ Development

Prerequisites

  • NodeJS (v22+)
  • bun (v1.3.9+)

Install Dependencies

npm install

Build & Dev

npm run dev   # Watch mode
npm run build # Production build
npm run lint  # Linting and type checking

📚 Documentation

  • Technical Walkthrough - Deep dive into how it works.
  • Development Plan - Roadmap and project status.

🤝 Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

📄 License

FOSSA Status

MIT License. See LICENSE for details.

Support

If you find this plugin useful and want to support its development, you can buy me a coffee!

🤝 Author

Eric N. Garcia - [email protected]

94%
HealthExcellent
ReviewSatisfactory
About
Encrypt folder trees recursively and store .locked files to protect data. Restore plaintext for Search, Graph and Backlinks while unlocked, then auto-lock and securely shred plaintext; maintain access with an encrypted master key and recovery key.
FoldersFilesData
Details
Current version
1.2.0
Last updated
21 hours ago
Created
7 months ago
Updates
3 releases
Downloads
150
Compatible with
Obsidian 1.10.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Sponsor
Buy Me a Coffee
Author
eng618eng618
garciaericn.com
GitHubeng618
  1. Community
  2. Plugins
  3. Folders
  4. Encrypted Folders

Related plugins

Flexplorer

Enhance the file explorer with custom sorting, pinning, and hiding.

Meld Encrypt

Hide secrets in your notes.

Custom File Explorer sorting

Manual or automatic config-driven reordering and sorting of files and folders in File Explorer.

Multi Properties

Add properties to multiple notes at once. Either right-click a folder or select multiple notes and right-click the selection.

File Explorer Note Count

See the number of notes in each folder within the file explorer.

Create Note in Folder

Add commands to create a note in a specific folder.

File Tree Alternative

An alternative file tree view with separate folder and file panes.

Quick Explorer

Perform file explorer operations (and see your current file path) from the title bar, using the mouse or keyboard.

Trash Explorer

Restore and delete files from the Obsidian .trash folder.

File Explorer++

Hide and pin files and folders in the file explorer using custom filters.