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

Re: Did I just fry my smartcard?

2011-01-30 Thread Grant Olson
On 01/30/2011 11:18 AM, Grant Olson wrote: > > > With those options enabled, I tried issuing the reset codes. First time > it complained because no card was inserted. Second time it complained > because it couldn't find a supported application on the card. I'm not > sure if that message is norm

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

Re: Did I just fry my smartcard?

2011-01-30 Thread Grant Olson
On 01/30/2011 06:03 AM, Werner Koch wrote: > On Sat, 29 Jan 2011 19:54, k...@grant-olson.net said: > >> gpg: detected reader `SCM SCR 3310 [CCID Interface] 00 00' >> gpg: pcsc_connect failed: sharing violation (0x801b) > > Another process has locked the reader. Most likely this is either a g

Re: Did I just fry my smartcard?

2011-01-30 Thread Chris Ruff
On Sun, 2011-01-30 at 12:03 +0100, Werner Koch wrote: > On Sat, 29 Jan 2011 19:54, k...@grant-olson.net said: > > > gpg: detected reader `SCM SCR 3310 [CCID Interface] 00 00' > > gpg: pcsc_connect failed: sharing violation (0x801b) > > Another process has locked the reader. Most likely this

Re: Did I just fry my smartcard?

2011-01-30 Thread Werner Koch
On Sat, 29 Jan 2011 19:54, k...@grant-olson.net said: > gpg: detected reader `SCM SCR 3310 [CCID Interface] 00 00' > gpg: pcsc_connect failed: sharing violation (0x801b) Another process has locked the reader. Most likely this is either a gpg 1 or an scdaemon. > grant@johnsmallberries:~$ gpg