gpgCrypt

by Tjado Mäcke
5
4
3
2
1
Score: 53/100

Description

Category: Privacy & Security

The gpgCrypt plugin enables secure encryption of Obsidian notes using GnuPG and OpenPGP standards. It supports asymmetric encryption with key pairs, offering seamless integration into Obsidian without disrupting markdown functionality. The plugin allows users to encrypt individual notes or enable automatic encryption for all notes upon modification. It includes features such as password retention, compression options, and smartcard support for advanced security setups. With compatibility for local or remote GnuPG installations and OpenPGP.js, gpgCrypt ensures flexibility and security for note management.

Reviews

No reviews yet.

Stats

91
stars
7,227
downloads
14
forks
934
days
139
days
248
days
8
total PRs
0
open PRs
3
closed PRs
5
merged PRs
41
total issues
18
open issues
23
closed issues
0
commits

Latest Version

8 months ago

Changelog

New features:

  • Folder encryption (enable it inside Settings)
  • Command palette integration for encryption/decryption

README file from

Github

gpgCrypt for Obsidian

gpgCrypt is an Obsidian plugin to encrypt your notes effortlessly and seamlessly using GnuPG. All Obsidian functions can be used as usual, without reduced Markdown experience.
It integrates OpenPGP.js or your local GnuPG installation. For those seeking more advanced security measures, integration with the local GnuPG installation enables the use of OpenPGP smartcards (e.g. with YubiKey or Nitrokey).

gpgCrypt is developed by github.com/tejado.

Warning: Encrypted notes might be stored unencrypted on disk due to Obsidian's caching mechanisms, coredumps, or other reasons.

Features

  • Asymmetric encryption with key pair
  • Seamless for maximum compatibility
  • OpenPGP smartcard support (e.g. with YubiKey, Nitrokey, ...) over gpg CLI Wrapper
  • Configurable duration of remembering your password
  • Configure how encrypted notes should be handled by the file recovery core plugin.
  • Option to encrypt all notes
  • Enable/disable compression
  • Tested with Obsidian Sync
  • Status bar integration
  • Support for mobile devices (only with OpenPGP.js)

Installation

gpgCrypt is available over Obsidian Plugins: obsidian.md - gpgCrypt.

As an alternative, you can install it manually or use the Obsidian plugin Beta Reviewers Auto-update Tester.

Usage

To encrypt and decrypt your notes, gpgCrypt requires a key pair:

  • Public key for encryption
  • Private key for decryption (passphrase-protected private keys are supported).

When you load gpgCrypt for the first time, a welcome dialog opens. Generate or use an existing key pair to encrypt your notes.
To use existing key pair, open gpgCrypt plugin settings and select an encryption backend: OpenPGP.js or GnuPG CLI Wrapper.

OpenPGP.js

  1. Place your key pair in your Obsidian Vault. The keys should be in ASCII format with a .asc extension. For example, public.asc and private.asc.
  2. Open gpgCrypt plugin settings in Obsidian.
  3. Under Public key and Private key, set the paths to your key files relative to your Obsidian Vault

GnuPG CLI Wrapper

  1. Open gpgCrypt plugin settings in Obsidian
  2. Set encryption backend to GnuPG CLI Wrapper
  3. Make sure the GPG executable path is set correctly.
  4. Select the GPG key you wish to use to encrypt your notes.

How to encrypt your notes

Encryption must be performed individually for each note. Navigate to the note's context menu and choose Encrypt with key pair.
To ensure all your notes are encrypted, turn on the Encrypt all notes feature in the settings of the gpgCrypt plugin. Each note will be encrypted upon its next modification.

FAQ

Error "Unusable public key"

The error There is no assurance this key belongs to the named user. Unusable public key happens in GnuPG CLI Wrapper mode when you imported the key and did not any specific trust for the key. In this case, gpg can't use the key. Two solutions:

  • Set a specific trust for your key pair over gpg, e.g. using the gpg CLI
  • or enable Always trust keys in the gpgCrypt plugin settings.

More information:

Encrypt & decrypt outside of Obsidian

Following commands can be used to encrypt/decrypt the files outside of Obsidian:

gpg --encrypt --armor --output - --recipient RECIPIENT_EMAIL_OR_KEY_ID path/to/vault/note.md
gpg --decrypt --output - path/to/vault/note.md

Limitations

  • Only Markdown (.md) files are supported for now, as Obsidian handles other file types (like PDFs or images) in different ways.
  • No signature support
  • No symmetric encryption

Manually installing the plugin

  • Clone this repo.
  • Make sure your NodeJS is at least v16 (node --version).
  • npm i or yarn to install dependencies.
  • npm run dev to start compilation in watch mode.
  • Copy over main.js and manifest.json to your vault VaultFolder/.obsidian/plugins/gpgCrypt/.
  • Alternative: npm run dev VaultFolder/.obsidian/plugins/gpgCrypt/ to start compilation in watch mode directly into your vault.

Credits

  • mnaoumov gave me the decisive hint about the Obsidian API.
  • meld-cp partly inspired me with his Meld Encrypt plugin.
  • vits fixed two bugs in a way that I hadnt thought of.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Meld Encrypt
5 years ago by meld-cp
Hide secrets in your Obsidian.md vault
Share Note
3 years ago by Alan Grainger
Instantly share an Obsidian note with the full theme exactly like you see in your vault. Data is shared encrypted by default, and only you and the person you send it to have the key.
Remotely Secure
2 years ago by sboesen
fork of remotely-save with security upgrades
Password Protection
2 years ago by Qing Li
This is a password plugin for protecting your private notes and diary, no encrypt, no decrypt.
QuickShare
4 years ago by Maxime Cannoodt (@mcndt)
📝 An Obsidian plugin for sharing encrypted Markdown notes on the web. Zero configuration required.
Cryptsidian
5 years ago by triumphantomato
Encrypt all files in your Obsidian.md Vault with a password.
Global Proxy
2 years ago by windingblack
🚀 Obsidian Global Proxy is an Obsidian plugin that makes it easy to configure web proxies and use proxies throughout Obsidian.
Lock Screen
4 years ago by Eric Biewener
Differential ZIP Backup
2 years ago by vorotamoroz
Garble Text
5 years ago by kurakart
Obsidian plugin for exposing Obsidian's garbleText() function
Sync Vault CE
a year ago by Camus Qiu
The missing bridge between your 10+ TB cloud drive and your AI brain.
Global Markdown Encryption
2 years ago by shlemiel
a plugin for encrypting obsidian markdowns in-memory, single password based.
HackerOne
3 years ago by neolex
A plugin to get our hackerone reports data into obsidian
GPG Encrypt
2 years ago by Luis Jaramillo
Obsidian Plugin GPG Inline Encrypt
Eccirian Encrypt
10 months ago by Entropiex
Next-generation file encryption solution
Evernote Decryptor
2 years ago by rcmdnk
Obsidian Plugin for encrypted data imported from Evernote
Crypt It
2 years ago by fyears
Obsidian plugin allowing users to right click on a file to generate an encryption version of the file using a password.
Cloud sync
9 months ago by Bing
一款强大的 Obsidian 同步插件,支持将笔记自动同步到多种云盘服务,提供端到端加密保护,让您的笔记既安全又便捷。
Cliplet
6 months ago by namikaze-40p
An Obsidian plugin that serves as a clipboard and snippet manager — your own, separate from the OS clipboard.
Blur Mode
a year ago by dangehub
Blur Mode - Blur elements on the obsidian interface for presentations or screenshots|模糊模式 - 对obsidian界面上的元素进行模糊处理以便演示或截图
Age Encrypt
a year ago by Metin Ur
A plugin for Obsidian that provides age-based encryption for your notes.
Peekaboo
a year ago by Wang Guoshi
An Obsidian plugin protects your privacy by setting a password to hide notes.
File Share
2 years ago by muckmuck
A lightweight obsidian.md plugin for sharing files between multiple vaults
Private Mode
a year ago by markusmo3
Vault Encrypt
5 months ago by Pluppen
Obsidian Plugin that encrypts/decrypts the entire vault.
Password Audit
a year ago by Sai Prashanth Pulisetti
Password Audit Plugin
Cypher
a year ago by Atharva Wankhede
Obsidian Plugin
Send Note
a year ago by jvsteiner
Instantly share an Obsidian note text/content with other users. Data is shared encrypted by default, and only you and the person you send it to have the key.
Simple Steam Auth
3 months ago by dreamscached
🔑 Generate Steam Guard codes right in your Obsidian vault.