DTLS Cookie Generator
Modified to also look at IPv6 address if that's what the socket is bound to.
Simplified the SHA finish generating the cookie.