There is one file I want to encrypt with GnuPG by
gpg2 --homedir=~/.gnupg --always-trust=true --recipient="BlahBlah" --encrypt=/path/to/file --output=/path/to/output_file
However this command seems to hang forever and never return. Interestingly, after I interrupt process, there is indeed /path/to/output_file
created , however the bytes written there is much bigger than raw payload (for example my /path/to/file
is only of 5 bytes but it turns out there are nearly 200 bytes written to /path/to/output_file
).
There must be something wrong, but I really couldn't figure out what is it.
I have in advance imported the key for BlahBlah
by gpg --import key.asc
. It happens both for GnuPG 1 and GnuPG 2.