Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 658 Bytes

File metadata and controls

32 lines (20 loc) · 658 Bytes

gpg-docs

General

Import Local GPG Public Key

$ gpg --import ~/keys/pub/tom.asc

Editing Trust Levels

You can change the trust level of a private/public key very easily using the following.

$ gpg --edit-key <Key_ID> trust

At the prompt select a number between 1...5 depending on your level of trust of the key.

Encryption

Decryption

Automate/Batch Decrypt File

GPG should automatically find the correct secret key, however one can be defined if required.

$ gpg --batch --yes --passphrase "SecretSquirrel" -o ~/outputs/encryptedFile.txt -d ~/encrypted/encryptedFile.txt.gpg