Extension for using GnuPG for text encryption/decryption on VSCode.
- 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.
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.
- Edit your local
settings.jsonand add the following:{ "gpg.passphrases": [ { "email": "test@test.com", "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.
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.
Enjoy!
