Python GPG Interface is not working

Bug #590573 reported by Paul Tagliamonte
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Starfish
Invalid
Critical
Paul Tagliamonte

Bug Description

This is a task bug.

Conditions for success will be all the basic functions of GPG.

 * Clearsigning
 * Singing
 * Encryption
 * Decryption
 * Verification

Changed in starfish:
status: New → Confirmed
assignee: nobody → Paul Tagliamonte (paultag)
importance: Undecided → High
Martin Owens (doctormo)
Changed in starfish:
importance: High → Critical
Revision history for this message
Paul Tagliamonte (paultag) wrote :

OK Devel Team. We have a fork in the road here.

  1) We can either base this API off libcrypt and write the python module in C ( doable )
        --> This way will also only (OFFICIALLY) work for POSIX systems. since there is C code

OR

  2) We can wrap the gpg CLI tool around a python class.
        --> There are some GPG binaries with the same interface out there for non GNU / Linux implementations ( e.g. Microshaft Winblows )

The former is more stable and we would be writing something that does not exist currently. Perhaps a decent idea. The second way will let us get this done faster.

Shall we go the route of stable and contributory or unstable and getting it done quickly?

The other option is to make the class a generalized interface and do it both ways.

Ideas?

Revision history for this message
Martin Owens (doctormo) wrote :

That's for looking into the problem Paul.

We should go for option one: If you have all the required skills AND the time to implement is not greater than three times that of option two.

Otherwise a wrapper is doable so long as it's got a firm python API which can be transitioned to a proper library latter.

My feeling is that doing the C/python is the best route as it would even be useful elsewhere.

Revision history for this message
Paul Tagliamonte (paultag) wrote :

I have never done either part ( python via c or libcrypt ) but they both look really well documented. I think if we are careful we could beat out a parsing implementation.

Let's rock and roll!

Sorry If there was a double post, I'm on my iPod

Changed in starfish:
status: Confirmed → In Progress
Revision history for this message
Paul Tagliamonte (paultag) wrote :

Knocking this out, Martin found PYME, a great implementation of the gpgme lib. No sense in re-inventing the wheel

Changed in starfish:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.