gpg -a -o public-file.key --export keyId xxxxx
导出私钥
gpg --armor --export-secret-key xxx > private.pgp
使用 GPG 加解密文件
加密文件
gpg --encrypt --output file.encry --recipient test@email.com file
gpg -a -o public-file.key --export keyId xxxxx
gpg --armor --export-secret-key xxx > private.pgp
gpg --encrypt --output file.encry --recipient test@email.com file