lajg-dev4k downloadsEncrypt partial text or complete notes using GPG technology, it is compatible with security keys such as YubiKey or traditional GPG encryption methods
This project is developed by https://www.lajg.dev, it is an Obsidian plugin that aims to perform encryption using the native tool of the GPG operating system, you can use online encryption or full document encryption.
If you find this plugin helpful, please consider support it in https://www.lajg.dev/donate/
The first thing to do is activate the plugin as shown in the image (Step 1), then go to the settings (Step 2):

Now in the settings you will find the following elements to configure:
C:\Program Files (x86)\GnuPG\bin\gpg.exe or C:\Program Files\GnuPG\bin\gpg.exe, macOS /usr/local/bin/gpg, /opt/homebrew/bin/gpg or /usr/local/MacGPG2/bin/gpg, Linux /usr/bin/gpg); if yours is elsewhere, enter the full path. The path is saved only on the current device (not in data.json), so a vault synced between Windows, macOS and Linux works on each of them. This will do a real-time validation that the executable exists and that it runs a version of GPG, and shows which executable is being used
The GPG Library setting lets you choose how encryption is performed:
When openpgpjs is selected, the settings show:
data.json only stores the secret's name. Requires Obsidian 1.11.4 or later.Note: in
openpgpjsmode the private key is stored in the plugin's local data (data.json), protected by its own passphrase. The passphrase is never written todata.json. If you saved one with version 1.2.0 or earlier, it is moved automatically to the Keychain asgpg-encrypt-passphraseand removed fromdata.jsonthe first time the plugin loads.
Step 1 - In a note you have, select the text you want to encrypt (For inline encryption) and open the command palette Step 2 - In the command palette, look for the "GPG Encrypt" option, here you will have the option to encrypt inline (The block of text that you selected in step 1) or to encrypt the entire document. Step 3A - A pop-up window will appear with the list of GPG keys available in your Operating System, select one or more recipient keys that you can decrypt this text later (It is mandatory to select at least one)

Step 3B - If you select sign and encrypt, the only difference with Step 3A is that now the button will tell you that it is going to Sign and Encrypt, and this may prompt you for your phasphrase to sign the text.

Step 1 - The first step is from a note with an encrypted secret, click (like a button) on the image that says secret Step 2 - This will open a modal with the message encrypted in GPG, if you want to copy the encrypted message, you can do so using the "Copy Encrypted Text" button, you can also decrypt the message with the "Decrypt" button

Step 3 - By clicking on the "Decrypt" button, the decryption process will begin, this may prompt you for your phasphrase

Step 4 - Once the decryption process has finished, you will have a green message with technical information about the process, but you will also have a text area with the decrypted text, here you can copy it using the "Copy Plain Text" button or directly restore the decrypted text to the note using the "Restore plain text to document" button
