Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Real time networking in ruby: Public key signature snippet
- - By arrow Date 2013-12-14 16:55
I've started a small project where I would like to create a Server/Client using ruby's UDP sockets.

One of the issues I ran into was that I had trouble figuring out how to do public key cryptography. So far I've successfully created a snippet for verifying that it's the sender who crafted the message using a signature.

Thought I would share the snippet so other people could benefit from it or I could get some feedback in case I'm doing anything wrong.

https://gist.github.com/Aerotune/7961606

I'm also looking into this article about reliability and flow control specifically for UDP and game programming. I'm thinking that the implementation in the article would simply be good enough, at least for a start.

http://gafferongames.com/networking-for-game-programmers/reliability-and-flow-control/
Parent - By arrow Date 2013-12-14 19:27
OK, I've added another file on the gist where I use a shared secret key with HMAC for creating and verifying package signatures.
Up Topic Gosu / Gosu Exchange / Real time networking in ruby: Public key signature snippet

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill