Certain classes in System.Security.Cryptography
serve as the base for further implementation of crypto algorithms. However, it is recommended that you do not write your own implementation and use the standard and secure ones already available in .NET.
class Algo : HashAlgorithm
{
// ...
}
using (var sha512 = SHA512.Create())
{
// ...
}