gpg --output doc --decrypt doc.gpg
... decrypt doc.gpg and write the output to doc
gpg --output file.gpg --encrypt --recipient user@pichove.org file.txt
... encrypt file.txt and write the output to file.gpg (preserving file.txt)
gpg -se -o file.gpg -r user@pichove.org file.txt
... sign and encrypt file.txt for user@pichove.org and write it to file.gpg (preserving file.txt)
gpg --export-secret-keys <key-id> > exported_file.gpg
... exports both private and public keys corresponding to
gpg -a --gen-random 1 20
... generates 20 random bytes of quality 1 in base64 format
gpg --armor --export-secret-keys YOUREMAILADDRESS | gpg --armor --symmetric --output mykey.sec.asc
... exports and then encrypts the private key
gpg --output doc.sig --default-key <key-ID> --detach-sign doc
... creates a detached signature 'doc.sig' of doc using
gpg --verify doc.sig doc
... verifies doc against detached signature doc.sig
gpg --with-fingerprint <key.pub>
... displays the fingerprint of a pubkey without importing it
xz -cd linux-5.0.13.tar.xz | gpg --verify linux-5.0.13.tar.sign -
... verifies the Linux kernel
export GPG_TTY=$(tty)
... prompts for password using the TTY
2026-04-16 10:54:36
minicms - © 2020-2026 Simeon Simeonov