views:

90

answers:

2

i have stored my public key on the public key server .now i have to fetch/retrieve public key from that public key server using the python script/programme .how can i do this?

also want to know the way how to execute gpg commands within my programme.

A: 

For calling gpg commands take a look at using the subprocess module. You will be able to feed in the data to be encrypted/decrypted and then parse the output from gpg for the result.

mikej
A: 

Have you read the API documentation for the key server? Without knowing these details it is hard to answer your question since it is so vague. Most likely the server has an HTTP interface, for which you can use the urllib module.

You should go and read the server documentation, and then if you are still unable to make progress, come back to SO and post a more specific follow up question.