Created: 2022-07-15
Tags: #fleeting
How do you send key to server without transmitting key for people snooping to see?
Imagine you have a secret code and instructions to read the secret code
Problem:
-> If you send your friend the instructions that lived far-away
-> anyone else can read the instructions that unlocks the secret code
-> ask your friend for a lock. Only they have the key for this lock
You send the instructions in a indestructible locked box to your friend,
Your friend can unlock the box with lock once it reaches them and read the instructions.
Finally, You've communicated the secret code without people snooping in
Conclusion:
In this metaphor
the secret code represents SYMmetric Encryption key
the lock represents server's PUBLIC key