crypto

Mark McEahern marklists at mceahern.com
Tue Apr 30 18:40:40 EDT 2002


Hi, I need to:

1.  Generate public/private key pairs.
2.  Encrypt data with the public key.
3.  Decrypt it with the private key.

Step 1 is likely to be manual.  (You're probably thinking, "No shit,
sherlock.")

I'm using Linux and I've seen how I can create a key with gpg.  I'm just not
sure how to use that properly from Python.  I suppose I could write things
out to files and use os.popen() or something, but that seems like it would
increase my risk, not decrease it.  ;-)

I'm a relative novice with cryptography, so I'd appreciate any and all
pointers.

I've downloaded amk's pycrypt package:

  http://www.amk.ca/python/writing/pycrypt/

Sadly, the Crypt.PublicKey module has been removed.

Thanks for any feedback.

Cheers,

// mark






More information about the Python-list mailing list