A tool to provide digital encryption and signing services using the OpenPGP standard
This will encrypt FILE in ASCII armored output.
gpg --armour --encrypt --trust-model always --recipient UID --output FILE.gpg FILE
This will encrypt testing123
in ASCII armored output.
echo testing123 | gpg --armour --encrypt --trust-model always --recipient UID --output FILE.gpg
gpg --decryp FILE.gpg --output FILE
curl URL | gpg --import
cat FILE | gpg --import
When prompted provide the email/uid of the key you want to trust
read KEY && echo $(gpg --list-keys --fingerprint | grep "${KEY}" -B 1 | head -1 | tr -d '[:space:]' | awk 'BEGIN { FS = "=" } ; { print $2 }'):6: | gpg --import-ownertrust
gpg --list-keys | grep uid | awk '{sub(/</,"")} {sub(/>/,"")}1 {print $NF}'