GPG — encryption and signatures
cheat sheet · GnuPG 2 https://lab.dimsanych.ru/en/wiki/gpg/Cheat sheet
-
gpg -c fileencrypt symmetrically (with a passphrase) -
gpg -d file.gpgdecrypt -
gpg -e -s -r who fileencrypt for a recipient + sign -
gpg --detach-sign -a filea detached signature -
gpg --verify file.asc fileverify a signature -
gpg --fingerprintyour keys' fingerprints -
gpg --import pub.ascimport a public key -
gpg --recv-keys KEYIDfetch a public key from a keyserver -
gpg --export-secret-keys -a me > priv.ascBACKUP the private key (keep it safe!)