On 26/10/16 19:57, Amitesh Mishra wrote:
> If i remove the pinentry parameter, the same password works fine. Any
> suggestions on that ?
I just used
$ echo test | gpg2 --no-tty --batch --pinentry-mode loopback --passphrase-fd 0
-o test.out --yes -d test.gpg
as a variation on the precise invocati
Thanks Peter for your reply. When i tried adding "--pinentry-mode loopback"
in the argument, i dont get the pinentry dialog but it says:
*gpg: encrypted with 2048-bit RSA key, ID 035A38377BE10CD8, created
2016-09-23*
* "XXX Inc. "*
*gpg: public key decryption failed: Bad passphrase*
*gpg: dec
On 25/10/16 05:06, Amitesh Mishra wrote:
> 1. Added the passphrase to the perl script in the following manner
>
> system ("type $PASSFILE | gpg --no-tty --batch --passphrase-fd 0 --output
> $CONTACTDECRYPT --yes --decrypt $CONTACTTARGET");
You need to add "--pinentry-mode loopback" to the argume