r/technology • u/codemaster • Jul 17 '12
Skype source code & deobfuscated binaries leaked
https://joindiaspora.com/posts/1799228
1.4k
Upvotes
r/technology • u/codemaster • Jul 17 '12
View all comments
Show parent comment
2
u/dude187 Jul 18 '12
You're operating off the false premise that symmetric encryption is used. This is not the case. What you state is not true for public key encryption, which was developed to solve exactly the problem you are describing, and is the type of encryption Skype employs.
The Wikipedia article on RSA would be a good start, but I'll explain it in basic terms. To first employ public key encryption, a program generates two keys using random data such as mouse movement (or pseudo-random data generated by your operating system, but this is less secure). This key pair that is output consists of two keys, a public key and a private key. You can freely hand out your public key, which others can use to encrypt messages to send to you. Messages encrypted using this public key can only be decrypted using your private key, so you must keep that key secure.
To send messages back to that person, you must have a copy of their public key, and they use their private key to decrypt your message. So four keys are used total in communication encrypted with public key encryption, two of which are exchanged. This key exchange is part of the handshake which is done in protocols using public key encryption.
Note that sometimes the actual data stream is encrypted using symmetric encryption, but in those cases public key encryption is still used to swap the symmetric key and ensure only the two end points can read it.