Is there a build in library in .NET that can compute secure one-way hash ? I mean a library that implements SHA-2 cryptographic hash function or something similar.
If is there is no SHA-2 implementation some weaker hash funcion would be sufficient. If there are more options I prefer the most secure one.
Please provide a use example e.g. provide the code that returns one-way hash for string mySampleString
.
EDIT: Please provide the example and the hash algorithm used.