c# - Does system.security.cryptography.sha1 use OpenSSL library's implementation of SHA1 algorithm? -


or algorithm custom implemented microsoft? tested sha1 computed using openssl on mac equivalent hash computed in c# using system.security.cryptography.sha1.

system.security.cryptography.sha1 abstract class. has 3 implementations:

so, no, none of implementations ship .net framework use openssl internally.

mono ships different implementations these classes. use the same implementation written in pure c#.

the reason why you're getting same result sha1 algorithm deterministic, i.e. produces same result same input.


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -