Protect your Obsidian vault with a password

obsidian://lock)[!WARNING] This plugin DOES NOT encrypt files. So if you are looking for "real" security, you gotta use some other plugin - like Protected Note or Cryptsidian
To set the plugin up, go into the settings and set a password & alter the protected paths as you wish.
After that, the vault has 2 states: locked & unlocked. On load, the state is always locked.
When locked, if you try to open a file or get the preview for a file in a protected path, it will prompt you for a password. If unlocked, it will open the files as normal.
When the privacy mode is set to close tabs, it will not let tabs open for protected files (when locked). After a password is entered, the closed tabs will re-open.
When the privacy mode is set to blur, it will only blur the background of the modal.


HEAVILY inspired by Qing Li's Password Protection plugin - I just wanted to add a few things to their plugin & the codebase didn't allow for my ideas to be easily implemented. Used the sample plugin template
I'm open to issues, PRs, etc!