title: Suppress the passphrase prompt in GPG command
body: <h2>Edited Version</h2>
  
  <p>I have a question about GPG, but I write all of the process, maybe it will help someone.</p>
  
  <p>I want to: <strong>Suppress the passphrase prompt in GPG command.</strong> I don't want to: <strong>use -c option (--symmetric).</strong></p>
  
  <p>I have 2 systems Linux and Windows. I want to send the data from Linux to Windows. I want to encrypt the data in Linux and decrypt in Windows.</p>
  
  <ul>
  <li><code>myFileOnLinux.txt</code> is a file on Linux that I want to encrypt.</li>
  <li><code>my@Email.com</code> the UID of pair key.</li>
  <li><code>myPasswordPhrase</code> is the password phrase.</li>
  </ul>
  
  <p>I installed GPG on both and did the steps:</p>
  
  <ol>
  <li><p>Generate a pair key in <code>Windows</code>: </p>
  
  <pre><code>gpg --gen-key
  </code></pre></li>
  <li><p>Change the key parameter in <code>Windows</code>: </p>
  
  <pre><code>gpg --edit-key my@Email.com
  </code></pre>
  
  <pre><code>trust
  5
  expire
  0
  </code></pre></li>
  <li><p>Export the public keys:</p>
  
  <pre><code>gpg -a --export my@Email.com &gt; public.key
  </code></pre></li>
  <li><p>Send the public key to the Linux machine.</p></li>
  <li><p>Import the public key in Linux.</p>
  
  <pre><code>gpg --import public.key
  </code></pre></li>
  <li><p>Change the trust parameter in Linux</p>
  
  <pre><code>gpg --edit-key my@Email.com
  </code></pre>
  
  <pre><code>trust
  5
  </code></pre></li>
  <li><p>Encrypt a file in Linux</p>
  
  <pre><code>gpg --output output.enc --encrypt --recipient my@Email.com myFileOnLinux.txt
  </code></pre></li>
  <li><p>Send the encrypted file to Windows.</p></li>
  <li><p>Decrypt the file.</p>
  
  <pre><code>gpg --batch --passphrase "myPasswordPhrase" -d -o test.dec output.enc
  </code></pre></li>
  </ol>
  
  <p>In Windows with a popup window it asked me the <code>Passphrase</code> again. How can I avoid it?</p>