4

For a project I am working on I would like to use a pgcrypto compatible encryption in python. And specific the public key encryption part.

The problem I have is that most (all) of the implementations make use of subprocess like approaches to fork gpg, as I have to encrypt a lot of data (50.000+ entries per session) this approach will not work for me.

Can someone give me some pointers how that this could be achieved?

3
  • Depends what type of encryption you use. First, are you using raw encryption funtions like "encrypt(data bytea, key bytea, type text) returns bytea" or PGP stuff like "pgp_pub_encrypt(data text, key bytea [, options text ]) returns bytea"? Commented Feb 1, 2013 at 14:39
  • Both options are open and I have no strong favour for one or the other Commented Feb 1, 2013 at 15:25
  • Ok I thought you hade already chosen. Commented Feb 2, 2013 at 9:41

1 Answer 1

1

Have a look at PyCrypto, it doesn't seem to use forking. pgcrypto can be configured to fit most crypto configurations.

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you, I guess that my question was nog clear enough. I am looking for a more detailed answer from someone that has experience with a simular problem. I know PyCrypto could be used, but I have no clear idea on how to use it correctly.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.