Offline web based standalone tool intended for encrypting and decrypting data from the meld-cp's Obsidian Encrypt Plugin (aka Meld Encrypt) with or without having the plugin or Obsidian installed. It can also be used independently from these technologies to encrypt and decrypt data on its own.
The original plugin has multiple algorithms to handle data with support for obsolete methods and versions.
This tool on the other hand is hardcoded to work with data labeled as version 2.0
which uses PBKDF2 with SHA-512 and 210,000 iterations to derive a 256-bit AES-GCM key, generating a random 16-byte salt and 16-byte IV for each operation.
I wrote this on a evening after wondering and worrying about how would I access to my encrypted data without access to both Obsidian and the plugin. You can easily store a copy of this repository (or just the src) in your vault since it’s super small and just relies on any web browser to be available. Without some visual dependencies like Bootstrap and Toastify JS, the core tool can go as small as just 20 kilobytes since it is just plain text waiting to be interpreted by a browser.
This is a self-contained HTML, CSS, JS bundle. There are no special procedures required.
- Clone or download the repository (or just the src directory with its content)
- Done
- Delete the directory you have downloaded previously
- Done
Locate the index.html file inside the src directory and open it with your preferred web browser.
You should see a screen similiar to the one in the image below.
- Input the data you want to encrypt
- Input the password you want to use to encrypt the data with
- Click to the Encrypt button
- You should see the encrypted output on the output box below as well as a toast message on top right of your screen indicating success
- Input the data you want to decrypt
- Input the password you want to use to decrypt the data with, this has to match with the password used when data was being encrypted for the first time
- Click to the Decrypt button
- You should see the decrypted output on the output box below as well as a toast message on top right of your screen indicating success (I've used the Switch Input/Output Content button to quickly put my freshly encoded data as input with the same password)
If you are encrypting whole notes instead of using inline encryption with Meld Encrypt, you can get the encoded data by simply opening .mdenc
files with a text editor as they are basically json files with a different file extension.
You can also see the version of the encoding here. If it is something other than 2.0
, this tool will most likely fail. You can let me know if there is a demand for supporting below 2.0