cleaned up language so its actually readable
This commit is contained in:
parent
4efc07c2fe
commit
734698e262
@ -6,11 +6,33 @@ Think of a box that we put things inside of:(put simply)
|
|||||||
* Private key: can open the box
|
* Private key: can open the box
|
||||||
* Public key: can lock the box
|
* Public key: can lock the box
|
||||||
|
|
||||||
Caveats:
|
The idea works on the principle that public keys are public so anyone can lock a message down but only the owner/creator of that public key can open those locked messages with their private key.
|
||||||
|
|
||||||
Public keys contain a unique signature, which can be used to _sign_ a message. Even though everyone can open the message they also know who locked the box.
|
## Public Keys
|
||||||
|
|
||||||
Imagine then, lock the box with private key(secure) and sign it with the public key(authorized).
|
Can be used to open something if it was locked with a private key.
|
||||||
|
|
||||||
|
## Private Keys
|
||||||
|
|
||||||
|
If used to lock something the public key can be used to then open the box.
|
||||||
|
_The catch_: that message is also signed so we know exactly who the message is coming from.
|
||||||
|
|
||||||
|
## Both together
|
||||||
|
|
||||||
|
> Message => Lock(message, private key)
|
||||||
|
|
||||||
|
_Sign_ the message
|
||||||
|
|
||||||
|
> Signed Message => Lock(signed message, public key)
|
||||||
|
|
||||||
|
Lock the message like normal
|
||||||
|
|
||||||
|
Once the intended person has the package they:
|
||||||
|
|
||||||
|
* Open it with their private key
|
||||||
|
* Check the signature
|
||||||
|
* Find the public key for that signature
|
||||||
|
* Open the remaining layer with the public key
|
||||||
|
|
||||||
|
That last part only works because locking with a private key allows the public key to open the box afterwards.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user