Aesop.Fnv1a
1.0.0
dotnet add package Aesop.Fnv1a --version 1.0.0
NuGet\Install-Package Aesop.Fnv1a -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Aesop.Fnv1a" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Aesop.Fnv1a --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Aesop.Fnv1a, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Aesop.Fnv1a as a Cake Addin #addin nuget:?package=Aesop.Fnv1a&version=1.0.0 // Install Aesop.Fnv1a as a Cake Tool #tool nuget:?package=Aesop.Fnv1a&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
FNV-1a
FNV-1a hash algorithm in C#
This small project is an implementation of the FNV-1a hash algorithm for 32-, 64-, 128-, 256-, 512- and 1024-bit variants. All implemented classes descend from the CLR's HashAlgotithm, which should make for easy adoption.
Example:
namespace Fnv1aTest
{
using System;
using System.Globalization;
using System.Security.Cryptography;
using Fnv1a;
public static class Program
{
public static void Main()
{
using (HashAlgorithm alg = new Fnv1a64())
{
Console.WriteLine(((ulong)BitConverter.ToInt64(alg.ComputeHash(Encoding.UTF8.GetBytes("foobar")), 0)).ToString("X8", CultureInfo.InvariantCulture));
}
}
}
}
This will output 85944171F73967E8 as the FNV-1A 64-bit hash of the string "foobar".
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net47 is compatible. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 1,869 | 9/12/2017 |
First release