-
Describe the concept of public and private key with your own words.
Public and private keys as a pair, are used to encrypt and decrypt messages sent between two people in a public and unsecure network, where the private key is randomly created, and the public key derives from the previous.
-
What 2 use-cases can public key cryptography be used for?
ENCRYPTION - The ability to send private messages through the network.
Practical example:
Person A wants to send a message to person B.- Person B generates a private key from which it derives a public key
(At this point person B has access to the private key, and everyone else to the public key)- Person A encripts the message with person B public key and sends it
(The message becomes encrypted and impossible to read)- Person B reads the message using the private key
- Person A encripts the message with person B public key and sends it
DIGITAL SIGNATURE - The goal is to verify the senderâs identity (no encryption required)
Pratical example:
Person B wants to verify that person A sent the message- Person A generates a private key from which it derives a public key
(Again, the public key can be access by everyone at this point)- Person A uses the private key to send the message to person B
(Person A has created a unique signature by linking the private key to the message)- Person B receives the message signed, and compares the signature with the public key to see if it corresponds with the private key
- Person A uses the private key to send the message to person B
- Person B generates a private key from which it derives a public key
P.S - This was a tough one to resumeâŚ