有一個文件,我想通過加密文件掛永遠
gpg2 --homedir=~/.gnupg --always-trust=true --recipient="BlahBlah" --encrypt=/path/to/file --output=/path/to/output_file
使用GnuPG加密然而,這似乎命令永遠掛起,不會再回來。有趣的是,在中斷進程之後,確實創建了/path/to/output_file
,但是寫入的字節比原始有效負載大得多(例如,我的/path/to/file
僅爲5個字節,但結果表明有大約200個字節寫入/path/to/output_file
)。
一定有什麼問題,但我真的搞不清楚它是什麼。
我預先通過gpg --import key.asc
導入了BlahBlah
的密鑰。它發生在GnuPG 1和GnuPG 2中。