Skip to content
Xen edited this page Aug 31, 2025 · 2 revisions

This is the first major release, stable for production. 4.0.0 was discontinued due to signing issues with the released packages, so we moved over to 4.0.1 to fix this, and flagged this as the first major release over 4.0.0.

Right from this release, unless told so in newer releases, the usage of the API is as follows:

Example using Generic Type Parameter:

using System;
using HashifyNet;
using HashifyNet.Algorithms.Adler32; // A reference to the specific algorithm interface is assumed.

public class Program
{
    static void Main()
    {
        IAdler32 adler32 = HashFactory<IAdler32>.Instance.Create();
        IHashValue computedHash = adler32.ComputeHash("foobar");

        Console.WriteLine(computedHash.AsHexString());
    }
}

Example using System.Type Parameter:

using System;
using HashifyNet;
using HashifyNet.Algorithms.Adler32; // A reference to the specific algorithm interface is assumed.

public class Program
{
    static void Main()
    {
        IHashFunction adler32 = HashFactory.Instance.Create(typeof(IAdler32));
        IHashValue computedHash = adler32.ComputeHash("foobar");

        Console.WriteLine(computedHash.AsHexString());
    }
}

We've brought 11 additional hash algorithms with this release, as well as support for cryptographic hashes, along with the existing non-cryptographic hashes.

For a comprehensive list of changes, please visit 4.x.x.

Click here for the latest available NuGet package.

Clone this wiki locally