what's the best way to program a peer-to-peer chat with encryption. is SSL useful for p2p as the clients won't have a certificate signed by verisign,...? is it possible to program such a chat without a master-server that tells the client the ip's of their chat partner?
i'd really like to program such a chat program, because in times of all those privacy issues i want a program i really can trust. i've got some experience with network programming, but only client <-> server.
i don't want any code, just the theory part of a peer-to-peer chat (like skype).
thanks.