Note encryption for Obsidian
Update 2021–04–12: There’s now an Obsidian plug-in to encrypt notes!! Go use Meld’s Obsidian-Encrypt instead of running my script. The plugin can be triggered directly in Obsidian with a hotkey and can encrypt/decrypt individual notes and even lines :)
Check it out: https://github.com/meld-cp/obsidian-encrypt
—
Based on a thread in the Obsidian forum, I decided to write two small python functions that allow me to encrypt & decrypt individual Obsidian notes such as a personal journal.
Both functions encrypt.py
and decrypt.py
are sitting in my Obsidian vault and I call them via the command line to encrypt/decrypt a note by setting a key.
See code below; simply save the functions as .py
in your vault and set path_folder
to your vault.
Maybe someone can could even make it into a plugin that can directly encrypt/decrypt notes from the Obsidian interface.
encrypt
decrypt
See here if you have trouble with No module named Crypto.Cipher
.
Originally published at https://jenglert.gitlab.io on November 4, 2020.