"rony dsouza" <[email protected]> wrote

Using GnuPG to encrypt a file(s) on linux. Essentially two modes of operation would be ideal:

You might find the GPG module useful but it is sadly no longer maintained
by AMK(since 2006). So it may not work in recent versions of Python.

http://wiki.python.org/moin/GnuPrivacyGuard#Python.2BAC8-GnuPGinterface

There is mention of someone possibly picking it up...


There is also something called PyMe which is an interface to GPGMe

http://pyme.sourceforge.net/


1. Running something like “./encrypt.py inputfilename.txt” which will output a file called
“inputfilename.txt.pgp”.

2. The ability to pipe input into “encrypt.py” and have it write out in encrypted format.
Something like “echo thisistestdata | ./encrypt.py > encrypted.pgp”.

The use of stdin/stdout for piping and the use of command line arguments
are both covered in the 'Talking to the User' topic of my tutorial.

HTH,

--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/

_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to