Can Mono be used as a regular open source cryptographic library? For example, using Mono.security.tls only.
I’m asking because I’m adding tls to a program previously written by another person who didn’t use Mono from the start.
Or it is better to use Bouncy Castle?
All the code from
Mono.Security.dllcan be used outside of Mono, e.g. on Microsoft .NET. In fact it was the main goal of this assembly.A lot of the code that it contains already exists (or is reused) to build the Mono’s base class library (e.g.
X509Certificatesupport in mscorlib.dll, SSL/TLS support in System.dll) or the .NET related tools shipped with Mono (e.g.makecert,signcode,sn…).So it would have been a shame not exposing it publicly into a assembly. Of course you can still use the sources files you require and add them into your applications (it’s MIT.X11 licensed).