For a start, I've got a question regarding public key encryption. I know public key encryption overcomes the key distribution issue with the symmetric encryption and that in the case of communication between 2 parties, there is a total of 4 keys: each party has a public and a private key.
But here's what's been confusing me:
If Bob wants to send a message to Alice, then he will encrypt the message using Alice's public key. For Alice to understand that message, she would decrypt the message using her private key. The problem is, isn't it like they both have the same keys? Because if Alice were to decrypt the message using her private key and no one else knows what that key is but her, won't she get a different message than the one sent by Bob?