Page MenuHome GnuPG

still prompting window for passphrase
Closed, InvalidPublic


I am using below command to encrypt file, it has to take passphrase from command but it is populating window for passphrase.

echo mypassphrase | gpg --passphrase-fd 0 --sign --encrypt --armor -u xxxxxx -o E:\New\test.txt.gpg -r xxxxxx E:\New\test.txt

Event Timeline

Despite that the use of a passphrase is entirely useless if a command like that is used, you need to add


to the invocation. ( I assume you are using gnupg 2.1 or 2.2)

aheinecke added a subscriber: aheinecke.

Question has been answered. Closing this.