Rebel.Alliance.Blake3.Hasher
1.0.1
dotnet add package Rebel.Alliance.Blake3.Hasher --version 1.0.1
NuGet\Install-Package Rebel.Alliance.Blake3.Hasher -Version 1.0.1
<PackageReference Include="Rebel.Alliance.Blake3.Hasher" Version="1.0.1" />
paket add Rebel.Alliance.Blake3.Hasher --version 1.0.1
#r "nuget: Rebel.Alliance.Blake3.Hasher, 1.0.1"
// Install Rebel.Alliance.Blake3.Hasher as a Cake Addin #addin nuget:?package=Rebel.Alliance.Blake3.Hasher&version=1.0.1 // Install Rebel.Alliance.Blake3.Hasher as a Cake Tool #tool nuget:?package=Rebel.Alliance.Blake3.Hasher&version=1.0.1
Rebel.Alliance.Blake3.Hasher
This project is an implementation of the BLAKE3 cryptographic hash function for .NET, targeting .NET Standard 2.0.
Features
- Full implementation of the BLAKE3 hash algorithm
- Optimized for performance with unsafe code and inlining
- Easy to use API
Usage
Here's a simple example of how to use the BLAKE3 hasher:
using Rebel.Alliance.Blake3.Hasher;
// Create a new BLAKE3 hasher
var hasher = new BLAKE3();
// Hash some data
byte[] data = System.Text.Encoding.UTF8.GetBytes("Hello, BLAKE3!");
hasher.HashBytes(data);
// Finalize and get the hash
byte[] hash = hasher.HashFinal();
// Convert hash to hexadecimal string
string hashString = BitConverter.ToString(hash).Replace("-", "").ToLowerInvariant();
Console.WriteLine($"BLAKE3 Hash: {hashString}");
Installation
You can install the Rebel.Alliance.Blake3.Hasher via NuGet package manager:
Install-Package Rebel.Alliance.Blake3.Hasher
License
This project is licensed under the MIT License.
Acknowledgements
This library is a re-packaging of the Blake3 Hash Alogrithm implementation that I stripped out of the suite of algos from the Arctium project found here: https://github.com/NeuroXiq/Arctium; an implementation based on the official BLAKE3 specification and reference implementation.
Aside from reorganizing and isolating the BLAKE3 implementation, the changes I made were specifically to the namespace and project name. I also added a NuGet package configuration and unit tests to enhance the usability and reliability of the library.
Therefore, the original Author still holds the copyright to the original implementation, and I am grateful for their work in making this available.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- System.Memory (>= 4.5.5)
-
.NETStandard 2.1
- No dependencies.
-
net8.0
- 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.