2

Actually, i have started work on creating a web service in Python and C#(.NET 3.5 framework) as client. All requests are on POST so i decided to send my data in encrypted form using public key on C# side and decrypt data in Python, Again from python Encrypt data using Private Key & decrypt using public key in C# side..

But the problem here is that keys i hav generated in C# side that is in ... xml format that is not support in python. I have also tried from python to generate key pair, that are not working C# side..

I have searched on web, found some solutions but nothing works...

Can Any tell me how to generate key pairs that work on both side...? Also tell me the format of key generated on both sides.. If you have any related info or KB regarding RSA encryption please share here with me..

1
  • Which libraries specifically are you using on either side? Commented Jul 9, 2011 at 15:15

1 Answer 1

1

Please take a look at PyOpenSSL and may be it will be better to use standard HTTPS for your service. You can use self-signed SSL certificates with PyCurl and urllib.urlopen and other python web clients.

Urllib and validation of server certificate one of the examples.

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.