Page Encryption Plug: Silverbullet Crypt

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!

Oh this is very smart (just skimmed the code to see how you did it). Nicely done! Have to try this.

Thank you! It's kind of janky doing these calls from Lua but it worked out. Awesome software you've got there! I found it after I got sick of fiddling with yet another sync solution for obsidian, I figured there must be something that I can just host and access from a browser.

Thanks for the great work, fell in love with the software instantly. I'd call it emacs for people who don't hate themselves :')

I will have to try this soon. Interested because I have a use case for it.