Skip to content

gakkossphynx/xxHashSharp

 
 

Repository files navigation

xxHashSharp

A pure C# implementation of xxhash

Installation

  1. From Nuget
  • Download from Nuget

  • Also, run the following command in the Package Manager Console.

    PM > Install-Package xxHashSharp
    
  1. From Source
  • You can just clone this repo.

Example

byte[] input = Encoding.UTF8.GetBytes("hello world");

xxHash hash = new xxHash();
hash.Init();
hash.Update(input, input.Count());
...
Console.WriteLine("{0:X}", hash.Digest());

or

byte[] input = Encoding.UTF8.GetBytes("hello world");
Console.WriteLine("{0:X}", xxHash.CalculateHash(input));

License

BSD 2-clause license.

About

A pure C# implementation of xxhash(https://code.google.com/p/xxhash/)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%