Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello ! I have two programs(created with python 2.7), that exchange data(phrases or/and files) using sockets. What i want, is the connection to be secure, so no one can read or access these data. I tried using encryption algorithms, but that wasn't much practical. So i found that i could use SSL/TLS.... but i can't pull enough info from google and doc's, to "transform" my code. Is there someone that can make a very simple code on how we use SSL/TLS ? Thanks.

What I have tried:

I tried to find information through the official python SSL doc, and some stackoverflow articles.
Posted
Updated 4-Mar-17 20:55pm

Quote:
I tried to find information through the official python SSL doc, and some stackoverflow articles.


It took less than 1 second to find 17.3. ssl — TLS/SSL wrapper for socket objects — Python 2.7.13 documentation[^].
 
Share this answer
 
I found this webpage:
bearcave SSL example
that gives a full example on how to use SSL... so that you can understand everything... and then transform this knowledge to your own "SSL Connection". I leave it here, hoping that others will find it useful as i did.
 
Share this answer
 
v3
Comments
Graeme_Grant 28-Aug-17 20:29pm    
Please do not post solutions to your own problems, then flag as answered. This is considered reputation farming and can get you kicked.

Instead, include this update in the Question by clicking on the "Improved question" widget above. Once done, please delete this solution.
xXxRevolutionxXx 29-Aug-17 2:02am    
Ok, i didn't knew that. I didn't even thought that when i 'accept' my solution, i get reputation. Thanks for the warning.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900