vscode-gpg
vscode-gpg copied to clipboard
VSCode GPG Extension
VSCode GPG extension
Extension for using GnuPG for text encryption/decryption on VSCode.
Features
- Listing public key available in the system for encryption.
- Text encryption producing ASCII-armored output (ready for sharing).
- Ciphertext decryption.
- Storing passphrases in local settings.
- Encrypting and decrypting files or selected text.

Usage
Note: The extension allows encryption/decryption on the text editor as follows:
- For encryption, on a text editor, select your plaintext, access to the Command Palette (
Cmd+Shift+Pon OSX orCtrl+Shift+Pon Windows and Linux), chooseGPG: Encryptand follow the instructions. - For decryption, select an encrypted text and choose
GPG: Decrypton the Command Palette. A prompt for providing the passphrase will be shown.
Using stored passphrase in settings
- Edit your local
settings.jsonand add the following:{ "gpg.passphrases": [ { "email": "[email protected]", "description": "My PGP Test Key", "passphrase": "myRobustAndUniquePassphrase" } ] } - The stored passphrase will be listed to chose to use for decryption.

If no stored passphrase is chosen then the regular prompt will appear.
Requirements
This extension depends upon GnuPG >=2.0 running on the host system. Please refer to the project website to find a compatible version with your system.
For more information
Enjoy!