title: how to bypass pinentry (passphrase screen) while decrypting a file using gpgme
body: <p>I am trying to decrypt a file from the server where I have the required public key of that server. The keyring has a password protection and so when I try to decrypt a file, it asks me for a passphrase.</p>
  
  <p>Is there a way to bypass that passphrase by passing the password when we try to decrypt the file. </p>
  
  <p>I am using <code>gpg-agent</code> where the passphrase is cached for 600sec default time and for some reason I am unable to set the <code>max-cache-ttl</code> (It didn't work for me, I don't know y) and is availble only for that session.</p>
  
  <p>Now I want to cache the passphrase for which I am using <code>gpg-preset-passphrase</code>. I set it in .gnupg/gpg-agent.conf as <code>gpg-preset-passphrase --preset hex</code>. I don't know what I am missing in this.</p>
  
  <p>Can someone please let me know what I am missing in this?</p>