Is MD5Cng not available in Unity/Mono?

I use it for hashing in some server tools and clients, but Unity is telling me that MD5Cng could not be found…

I’ve always been confused about when I should or should not drop an assembly into my Unity project, but it seems strange that this class doesn’t exist.

Normally I would simply change to using the old MD5 but in this case that means changing code in 3 servers, and 2 client applications. Not exactly a small testing footprint.

Anyone? :slight_smile:

If ever in doubt about what .Net classes Unity supports, check the Mono Compatibility list.

It looks like MD5Cng is .NET 3.5, while Unity uses Mono’s version of .NET 2.0 or a subset of 2.0