1

I have used below command and unable to proceed to decrypt file without prompting a window where user need to enter passphrase. I have checked in google and stackoverflow and did not find solution to my question.

C:\Program Files (x86)\GnuPG\bin>gpg --batch --passphrase-fd < "C:\Temp\test.txt" --decrypt ECUIDs-104066317-2018-03-09-09-10-15-500K_0000000000.bin
gpg: WARNING: no command supplied.  Trying to guess what you mean ...
gpg: encrypted with 4096-bit RSA key, ID DA6F981CEBAE94FA, created 2018-01-11
  "GMECUPGPEncryption <gmecupgpencryption@xyz.com>"
gpg: public key decryption failed: Operation cancelled
gpg: decryption failed: No secret key

Can someone provide me right input to solve this issue?

Thanks, Srinivas

  • Stackoverflow is for [programming questions](https://stackoverflow.com/help/on-topic). Questions about **general computing hardware and software** are off-topic for Stack Overflow unless they directly involve tools used primarily for programming. You may be able to get help on [Super User](https://superuser.com/about). – President James K. Polk Mar 21 '18 at 21:09
  • I am planning to call gpg utility through vb.net code to avoid manual intervention. Before I execute in code, I was planning to get actual syntax by running manually. I have found answer and may be useful to others. gpg --pinentry-mode loopback --passphrase testphrase -o -d – Srinivas Reddy Mar 22 '18 at 02:54
  • This is very much a programming issue the same way ssh is a programming issue. – isaaclw May 10 '18 at 04:00
  • This is a programming question, basically using gpg, with customize option u need to deal a lot with scripting. So question about this is not related to programming.. I believe OP is asking for the how to program (decrypt gpg without passphrase). – MaXi32 Sep 04 '21 at 16:59

0 Answers0