PGP commands

. Copy GPG keys
copy the following files pubring.gpg random_seed secring.gpg trustdb.gpg from your old directory to your new directory, usually ~/.gngpg under Linux

. Encrypt a file
gpg -e -r me@hongyu.org test.pdf

. Decrypt a file
gpg -d test.pdf.gpg > test.pdf

Leave a Reply