虽然我手动使用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
答案 0 :(得分:1)
要在解密时指定密码,请使用标记--passphrase <your passphrase>
和--batch
(gpg2需要批处理)
示例:
gpg2 --batch --passphrase mypassphrase -a -d my_encrypted_file