c# - Which one to use: Managed vs. NonManaged hashing algorithms -


In a regular C # application, the class is used for hashing: xxxManaged or xxx (i.e. SHA1 managed / <> code vs SHA1 ) and why?

A non-managed hash that ends in *** Cng There are also platform restrictions. They are much faster than managed options, but will run on runtime on Windows XP, for example. If you know that your program will always be run in Windows 7, Vista SP1 or 2008, however, they will generally perform better than managed versions, even with the original interop overhead.

If you are writing a general purpose program, working with *** managed classes will be easy, because they will always work.

Comments