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

Note Lock

pyh1107pyh1107187 downloads

Password-protect individual notes with per-file idle auto-lock.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates5

Password-protect individual notes in your Obsidian vault. Unlike folder-level protection plugins, Note Lock lets you lock specific files — right-click any markdown file to protect it.

Features

  • Per-file protection — Right-click any markdown file to lock/unlock it. Only protected files require password verification.
  • Password security — Passwords are stored as SHA-256 hashes using the Web Crypto API. No plaintext is ever saved.
  • Idle auto-lock — Configurable timeout (in minutes) that automatically re-locks files after inactivity. Each file has its own independent timer.
  • Auto-lock on file switch — Optionally re-lock the previous file when you navigate to a different note.
  • Tab close detection — Closing a tab automatically revokes access to that file.
  • Cross-platform — Works on both desktop and mobile using only Obsidian API and Web standard APIs.

How to use

  1. Open Settings → Note Protection and set your password.
  2. Right-click any markdown file → Encrypt to protect it.
  3. Opening a protected file will prompt for your password.
  4. To permanently remove protection, right-click → Decrypt and enter your password.

Settings

Setting Description
Password Set or change your global password
Idle auto-lock Minutes of inactivity before files are re-locked (0 to disable)
Auto-encrypt on close Re-lock the previous file when switching to another note

Supported file types

Currently only Markdown (.md) files are supported. Canvas, Excalidraw, and other non-markdown file types are not supported because protection status is stored in frontmatter, which is only available in markdown files.

How it works

  • Protection status is stored in each file's frontmatter (protected: 'encrypted').
  • Access is tracked in memory per session — restarting Obsidian requires re-verification.
  • The plugin does not encrypt file contents. It prevents access through Obsidian's UI. Files remain readable via the filesystem.

Development

npm install
npm run build

To run tests:

npm run test
81%
HealthExcellent
ReviewCaution
About
Lock individual Markdown notes with a password to require verification before opening protected files. Store passwords as SHA-256 hashes, auto-lock notes after configurable idle time or on tab close, and track access per session across desktop and mobile. Keep note contents unencrypted on disk — protection applies only within Obsidian's UI.
FilesProperties
Details
Current version
1.1.1
Last updated
3 months ago
Created
3 months ago
Updates
5 releases
Downloads
187
Compatible with
Obsidian 1.11.7+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
pyh1107pyh1107
github.com/PYH1107
GitHubpyh1107
  1. Community
  2. Plugins
  3. Files
  4. Note Lock

Related plugins

Multi Properties

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

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.

Local REST API & MCP Server

Unlock your automation needs by interacting with your notes over a secure REST API.

Advanced Canvas

Supercharge your canvas experience. Create presentations, flowcharts and more.

QuickAdd

Quickly add new notes or content to your vault.

Recent Files

Display a list of recently opened files.

Omnisearch

Intelligent search for your notes, PDFs, and OCR for images.

Claudian

Embeds Claude Code/Codex as an AI collaborator in your vault. Your vault becomes agent's working directory, giving it full agentic capabilities: file read/write, search, bash commands, and multi-step workflows.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.

Image Converter

Convert, compress, resize, annotate, markup, draw, crop, rotate, flip, align, drag-resize, rename with variables, and batch process images: WEBP, JPG, PNG, HEIC, TIF