File Encryption

Dave Pawson dave.pawson at
Sat Dec 20 22:27:28 CET 2014

Hi Gus. Using symmetrical encryption I do just that
on Linux, without the GUI?

With a small bash script, you could filter out just the entry you want too.
  I currently do it with Python and their encryption, but want it for
my windows box and Linux, hence gpg.

e.g. unlock is

source # parameters
#usage="Usage $0  #  creates $plnfile.txt"

if [[ ! -f ${target}/${encfile} ]]
    echo Unable to find  $1
    exit 2

# File $1 exists, has .gpg extension, create .txt
echo "Decrypt CAST5 encrypted file $1"
echo gpg --output ${target}/${plnfile}  --decrypt ${target}/${encfile}
gpg --output ${target}/${plnfile}  --decrypt ${target}/${encfile}
ckexit gpg

echo "Created ${target}/${plnfile}"
more ${target}/${plnfile}

with params shared (encrypt / decrypt) as
# params for and
source ~/bin/

nb dpfunctions are pure bash.

Let me know if you want more.


On 19 December 2014 at 22:20, Gus Zernial <gus_zernial at> wrote:
> I'm a home user of Linux. I'm looking for an encryption utility for my
> personal password file, preferably one with a graphical user interface.
> After initial encryption of the file with a master password, I'd like to be
> able to decrypt and display the cleartext file, using my master password,
> without destroying the underlying encrypted file. Accordingly, when I close
> the cleartext version it ceases to exist, leaving only the pre-existing
> encrypted file.
> With what program and/or how can I do this?
> Thx, Gus
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users at

Dave Pawson
Docbook FAQ.

More information about the Gnupg-users mailing list