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+P
on OSX orCtrl+Shift+P
on Windows and Linux), chooseGPG: Encrypt
and follow the instructions. - For decryption, select an encrypted text and choose
GPG: Decrypt
on the Command Palette. A prompt for providing the passphrase will be shown.
- Edit your local
settings.json
and 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.
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!