Asymmetric Encryption - Python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Asymmetric Encryption - Python

1. How can I generate a public key and a private key in python? 2. How can I use the public key in order to encrypt? 3. How can I use the private key in order to decrypt?

26th Aug 2021, 11:06 AM
Yahel
Yahel - avatar
5 Answers
0
✩✮★✮✩ is the public key being sent over in every packet? Or is it being sent once and then the server saves it in a database?
26th Aug 2021, 12:04 PM
Yahel
Yahel - avatar
0
✩✮★✮✩ do you know any other Libraries that can do the same thing but without any need to install them? That they are already built in python? Because I want it to be simple to operate without any need to install extra stuff except of python...
26th Aug 2021, 12:22 PM
Yahel
Yahel - avatar
0
✩✮★✮✩ Ok, makes sense. Does it mean that I can't use it in my project? 🤔😮
26th Aug 2021, 2:07 PM
Yahel
Yahel - avatar
0
✩✮★✮✩ I'm just making an online to-do list😂 nothing to accuse me for :) Thanks for your help
26th Aug 2021, 2:26 PM
Yahel
Yahel - avatar
0
✩✮★✮✩ One last question :) How often do public and private keys change? Every time the user logs in? And if they don't change, can I store them in a permanent file and every time the user connects it'll just pull it from there? and how can I validate a public key? in case of the user changing the public key file...
26th Aug 2021, 3:16 PM
Yahel
Yahel - avatar