I’d like to write a basic socket chat app, except encrypted. Y’know all those socket programming examples where you run a server and a client in the command line and it sends messages back and forth. Like that, except with good encryption.
Diffie-Hellman key exchange, none of that certificate authority crap, and maybe some ECDSA once the connection is established.
GnuTLS supports all those, but piecing together bits of documentation is a lot more confusing than seeing something already work.
PS: Language doesn’t matter, after digging for weeks on The Google and not finding anything but pieces of documentation, I really don’t care. It just needs to be some code that works.
Thanks!
Python has great GnuTLS support.
If you use debian/ubuntu, all you need to do is
apt-get install python-gnutls. In the documentation are examples for a basic encrypted client/server using twisted.