Inspired by Meld Encrypt for Obsidian, I made a library that adds per-page encryption to SilverBullet. Runs entirely in Space Lua, nothing compiled.
How it works:
- Run "Crypt: Encrypt Page" on any page to encrypt it
- Frontmatter (tags, dates, etc.) stays in plain text so indexing and queries keep working
- Body is encrypted on disk, decrypted in-memory only
- Passphrase entered once per session, lost on tab close
- Auto-decrypts when you navigate to an encrypted page
- Auto-re-encrypts on save
- Change password command re-encrypts all pages at once
Uses PBKDF2 via the Web Crypto API.
Install with Library: Install:
github:ahzay/silverbullet-crypt/PLUG.md
Repo: GitHub - ahzay/silverbullet-crypt: Per-page AES-256-GCM encryption for SilverBullet. · GitHub
Happy to hear your feedback! Feel free to open MRs or issues!