0

当我手动使用 gpg 时,它工作正常。我在屏幕下方(“解锁密码”)我不想进入这个屏幕意味着我想自动化意味着我想在解密时提供密码。

lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
x Please enter the passphrase to unlock the secret key for the OpenPGP certificate:  x
x "akhilesh (ak) <xxxxxx@xxxxxxx.com>"                                               x
x 2048-bit RSA key, ID EC0BCE3F,                                                     x
x created 2015-03-02 (main key ID 3FA59C97).                                         x
x                                                                                    x
x                                                                                    x
x Passphrase _______________________________________________________________________ x
x                                                                                    x
x            <OK>                                                  <Cancel>          x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
4

1 回答 1

2

要在解密时指定密码,请使用标志--passphrase <your passphrase>--batch(gpg2 需要批处理)

例子:

gpg2 --batch --passphrase mypassphrase -a -d my_encrypted_file
于 2015-04-30T22:40:40.780 回答