Hi!
I want to sign a string with gnupgp. Encrypting a string works like this:
echo jajajajaja | gpg -a --always-trust --batch --no-secmem-warning -e -u user
-r email@mail.com
However if I try to SIGN a message and replace the -e (encrypting) by -s I get:
gpg: can't query password in batchmode
gpg: skipped `evider.net': bad passphrase
gpg: signing failed: bad passphrase
How can I sign this without problems?
If I remove the --batch and executed in the shell I'm prompted for my passphrase.
But how can I get php to "put in" the phrase at this prompt?
Thnx!