A simple and efficient SHA256 hashing library for .NET. This library extends the string class to provide easy-to-use SHA256 hash generation functionality.
$ dotnet add package Net.Cryptography.SHA256Net.Cryptography.SHA256 is a simple and efficient SHA256 hashing library for .NET applications.
It extends the string class to provide easy-to-use SHA256 hash generation functionality.
Using Net.Cryptography.SHA256 is straightforward:
using Net.Cryptography.SHA256;
string myString = "Hello World";
string hash = myString.ToSha256();
Console.WriteLine(hash);
// Outputs SHA256 hash of "Hello World"
// a591a6d40bf420404a011733cfb7b190d62c65bf0bcda32b57b277d9ad9f146e