Is there a built-in library in .NET that can calculate a secure one-way hash? I mean a library that implements the SHA-2 cryptographic hash function or something like that.
If there is no SHA-2 implementation, then a hash function will be rather weak. If there are more options, I prefer the most secure.
Please indicate a usage example, for example. provide code that returns a one-way hash for the string mySampleString .
EDIT: Please provide an example and the hash algorithm used.
source share