0

Privates keys

what is public and private key and how can i generate these keys using python Any help would be highly appretiated https://sololearn.com/discuss/2843701/?ref=app

7th Nov 2022, 12:05 AM
lincoln
1 Resposta
0
Public and private keys are used in asymetric encryption. The private key is known only to the sender or reciever of the message, while the public key is known to everyone on the network. There are many ways of using those keys, for example: 1. Using the public key to encrypt and the private one to decrypt, so only the reciever can decrypt. 2. Combining the private key with the public key in the process. 3. Using a private key to encrypt and the public key to decrypt (mostly in order to verify the sender's identity as the private key is known only to him). To generate such keys, there are many protocols invented. The most famous one is the Diffie-Hellmann key derivation protocol, which I think you should read about. There are many other key derivation protocols you can search, and choose the one that fits your cipher. This is my first answer, Hope I helped :)
28th Jun 2023, 10:47 AM
Afek Kalmani
Afek Kalmani - avatar