📅  最后修改于: 2023-12-03 15:20:39.819000             🧑  作者: Mango
Tom GPGTool is a command line tool for encryption and decryption using GnuPG.
To install Tom GPGTool, you can download the source code from GitHub and build it yourself or install it via Homebrew using the following command:
brew install tom-gpgtool
Tom GPGTool provides several command line options for encryption and decryption using GnuPG.
To encrypt a file, use the encrypt
command followed by the path to the file you want to encrypt and the recipient's public key:
tom-gpgtool encrypt /path/to/file.txt recipient@example.com
This will create a new encrypted file with the extension .gpg
in the same directory as the original file.
To decrypt a file, use the decrypt
command followed by the path to the encrypted file:
tom-gpgtool decrypt /path/to/file.txt.gpg
This will create a new decrypted file in the same directory with the extension .decrypted
.
To list the public keys in your keyring, use the list-keys
command:
tom-gpgtool list-keys
This will output a list of the available public keys.
To add a new public key to your keyring, use the import-key
command followed by the path to the public key file:
tom-gpgtool import-key /path/to/key.asc
Tom GPGTool provides a simple and easy-to-use command line interface for encryption and decryption using GnuPG. It's a great tool for developers who need to secure their data and communicate securely with others.