Signing Vs Encrypting
Both signing and encrypting will use private key and public key but the use case is different
| Action | Purpose | How |
|---|---|---|
| Signing | Verify the authenticity, everyone can read | A: Sign using A's private key B: Verify it's A by using A's public key |
| Encrypt | Encryption/hiding. Only receiver can read | B: Encrypt using A's public key A: Read using A's private key |