GPG2 encryption options

Peter Humphreys eagleeyes426 at
Mon Oct 7 20:44:27 CEST 2013

Hi guys,

Firstly I'm not 100% sure your getting my replies if I reply directly from my mail client (new to mailing lists).

But here goes anyways.

My attempt at creating random passphrases is finished. I now have a script which generates these randomly and passing these through thanks to your previous advice is working nicely to encrypt and decrypt files.

What I would now like to know is how to securely store and access the passphrase file for decrypting files.

My idea is to sign and encrypt the passphrase.txt file (all good), but is there a way that I can access the file without having to decrypt it fully back to it's .txt state and search it to get the passphrases out of it for example?

or I just have to encrypt\decrypt each time i want to pipe passphrases out of it? Also how do I go about setting up the gpg-agent to cache my main passphrase for X number of minutes for example?

Kind Regards,
Peter Humphreys

 From: Peter Lebbing <peter at>
To: Peter Pentchev <roam at> 
Cc: mightymouse2045 <eagleeyes426 at>; gnupg-users at 
Sent: Thursday, 3 October 2013 8:09 PM
Subject: Re: GPG2 encryption options

On 03/10/13 13:35, Peter Pentchev wrote:
> a smartcard that caches the PIN for a limited
> amount of time

Small detail: this feature is not working in the current stable versions. GnuPG
2.1 will support this.

I use the following script to make the card forget its PIN:


gpg-connect-agent 'SCD RESET' /bye

I created this based on a message of Werner Koch to this list. Earlier, I killed
the scdaemon.



I use the GNU Privacy Guard (GnuPG) in combination with Enigmail.
You can send me encrypted mail if you want some privacy.
My key is available at <
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20131007/7cbaf011/attachment-0001.html>

More information about the Gnupg-users mailing list