by cabaalis · 9y ago · 0 comments
If the browser's symmetric key is encrypted with icicibank's public key, why can't a sniffer unlock it by also requesting icicibank's public key and decrypting the key sharing message?
- stuff encrypted with the private key can only be decrypted using the public key.
- stuff encrypted with the public key can only be decrypted using the private key.
This is why the public key can be distributed around freely and anyone can use it to encrypt, because only the person with the private key can decrypt it (and this is why you really need to keep your private key secure!)
The flip side is anyone can decrypt something encrypted with the private key (since the public key is widely known). But this is how we can verify that the other server really is who they say they are - remember that the public key can only decrypt stuff encrypted with the private key, so if we can decrypt something from the server then we know that they encrypted it using the private key and are therefore probably legit (...or the private key got leaked or CIA/Snowdon etc)
Enjoy learning! :)
This however is a decent resource for learning the things you're asking about such as public key crypto, asymetric vs symetric, digital signatures, etc. Specifically weeks 5 and 6. The whole course is good though.
For Diffie-Helman key exchange, atleast...
Encrypting/"locking" uses the public key.
Unlocking a public-key-encrypted-symmetric-key happens with icicibank's private key, which the sniffer does not have.
Here's another diagram: https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exc...
Asymmetric key exchange for secure session setup / authentication
Symmetric key for secure session data encryption
Anyone can encryption (put things in), but only the Private Key (the bankers) can decrypt (see whats inside).