gpg命令行(Gnupg)的手册页有加密和解密文件的命令.这是使用gpg加密/解密文件的标准命令.
gpg --encrypt --recipient xxx@mail.com ~/xxx/xxx.txt - 加密
gpg --encrypt --recipient xxx@mail.com ~/xxx/xxx.txt
gpg --output ~/xxx/xxx.txt --decrypt ~/xxx/xxx.gpg - 解密
gpg --output ~/xxx/xxx.txt --decrypt ~/xxx/xxx.gpg
但如果我有一个包含多个文件和文件夹的文件夹,我如何使用命令行加密它?
encryption gnupg public-key-encryption
encryption ×1
gnupg ×1
public-key-encryption ×1