GNU Privacy Guard

GNU Privacy Guard is a tool for secure communication. It is used to encrypt and decrypt data and to create and verify signatures, using public key cryptography.In a public-key system, each user has a pair of keys consisting of a private key and a public key. A user's private key is kept secret - it need never be revealed. The public key may be given to anyone with whom the user wants to communicate.

GPG Syntax

Create a new Key Pair

gpg --gen-key

Find out what version of GPG you have installed

gpg --version

Export your public key to a TEXT file Key.txt

gpg --armor --output "Key.txt" --export "Your Name"

Import the keys found in Key.txt

gpg --import "Key.txt"

Edit the key for NAME. In edit mode, use the "trust" command to set the trust level

gpg --edit-key "NAME"

Encrypt FILENAME using RECIPIENT's public key

gpg --recipient "RECIPIENT" --encrypt-files "FILENAME"

Encrypt a file and output text suitable for email

gpg --armor --recipient "RECIPIENT" --encrypt-files "FILENAME"

Decrypt FILENAME.asc or FILENAME.gpg verify a digital signature if present, and output to FILENAME

gpg --decrypt-files "FILENAME.asc" / gpg --decrypt-files "FILENAME.gpg"

Create digital signature and output plaintext plus signature to FILENAME.asc

gpg --local-user "YOUR-NAME" --clearsign "FILENAME"

Create separate digital signature file for FILENAME

gpg --local-user "YOUR-NAME" --detach-sign "FILENAME"

Verify the digital signature found inline in FILENAME.asc

gpg --verify "FILENAME.asc" gpg --homedir . SOME-COMMAND

Verify the digital signature for FILENAME contained in FILENAME.sig

gpg --verify "FILENAME.sig"

Encrypt and sign FILENAME, with text output to FILENAME.asc

gpg --armor --local-user "YOUR-NAME" --recipient "RECIPIENT" --sign --encrypt "FILENAME"

Use the current folder as the home folder, useful for calling GPG from an application.

gpg --homedir . SOME-COMMAND

Back to Top




Yahoo Search
Results will open in a new window



Hosted by www.Geocities.ws

1