So, first things first... for SSL in .net there is a perfectly valid implementation using SslStream's, which also happens to support TLS1.2. That's part of the .Net framework since 4.5.
Regarding the generation of your nonces, GUIDs aren't a remotely good source of random data, however the cryptographic RNG included in .net is.
Although why you don't just wrap the connection up in an SslStream and do your authentication that way, secure in the knowledge that someone else has done all the hard lifting of writing a properly secure cryptographic communications channel, is beyond me.
Popular Topics
Advertisement
Recommended Tutorials
Advertisement