Re: How to handle user passphrase input from python script

2011-01-30 Thread Jameson Rollins
On Mon, 31 Jan 2011 03:41:51 +0100, orionbe...@gmail.com wrote: > I use a python script to (a) open a file encrypted with a symmetric > cipher using a passphrase, (b) do some operations on it, and (c) > re-encrypt it. You might try using one of the many python gpg interface libraries that exist

How to handle user passphrase input from python script

2011-01-30 Thread orionbelt2
Hi all, I use a python script to (a) open a file encrypted with a symmetric cipher using a passphrase, (b) do some operations on it, and (c) re-encrypt it. So far i've had GnuPG handle the user input of the passphrase, e.g.: os.system('gpg foo.gpg') # Do something with file 'foo' os.system('gp