AuroraLib.Cryptography 1.2.0

dotnet add package AuroraLib.Cryptography --version 1.2.0                
NuGet\Install-Package AuroraLib.Cryptography -Version 1.2.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="AuroraLib.Cryptography" Version="1.2.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AuroraLib.Cryptography --version 1.2.0                
#r "nuget: AuroraLib.Cryptography, 1.2.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 AuroraLib.Cryptography as a Cake Addin
#addin nuget:?package=AuroraLib.Cryptography&version=1.2.0

// Install AuroraLib.Cryptography as a Cake Tool
#tool nuget:?package=AuroraLib.Cryptography&version=1.2.0                

AuroraLib.Cryptography

Supported mainly older hash algorithms.

Nuget Package

Supported hashes

Hash Description
Adler32 32-bit Adler implementation.
Adler64 64-bit Adler implementation.
CityHash32 google 32-bit CityHash implementation.
CityHash64 google 64-bit CityHash implementation.
CityHash128 google 128-bit CityHash implementation.
Crc32 Fully customizable Crc32 algorithm
Fnv1 32 32-bit Fnv1 and Fnv1a implementation.
Fnv1 64 64-bit Fnv1 and Fnv1a implementation.

How To Use

Generate a hash of a string.

	string testString = "Test String To Hash";
	Crc32 crc32 = new();
	crc32.Compute(testString);
	uint result = crc32.Value;

Generate a hash of a span.

	ReadOnlySpan<int> testSpan = new int[] { 75849, -246875, 24856, 0, -24867, 9844534 };
	Crc32 crc32 = new();
	crc32.Compute(testSpan);
	uint result = crc32.Value;

Benchmarks

Cryptography

Method Algorithm MB Mean Error StdDev Allocated
Compute Adler32 10 9.798 ms 0.1936 ms 0.4928 ms 8 B
Compute Adler32 100 97.185 ms 1.9237 ms 4.6091 ms 91 B
Compute Adler64 10 25.118 ms 0.5007 ms 0.8770 ms 17 B
Compute Adler64 100 249.914 ms 4.9268 ms 9.3737 ms 181 B
Compute CityHash128 10 3.273 ms 0.0652 ms 0.1142 ms 2 B
Compute CityHash128 100 33.362 ms 0.6664 ms 1.8576 ms 36 B
Compute CityHash32 10 4.366 ms 0.0869 ms 0.1735 ms 4 B
Compute CityHash32 100 43.509 ms 0.8633 ms 1.4184 ms 21 B
Compute CityHash64 10 3.075 ms 0.0603 ms 0.1040 ms 2 B
Compute CityHash64 100 29.980 ms 0.5974 ms 1.0145 ms 17 B
Compute Crc32 10 48.440 ms 0.9656 ms 1.8834 ms 54 B
Compute Crc32 100 473.423 ms 7.7627 ms 10.0938 ms 544 B
Compute Fnv1_32 10 33.020 ms 0.6596 ms 1.2060 ms 34 B
Compute Fnv1_32 100 327.978 ms 6.3849 ms 7.8413 ms 6132 B
Compute Fnv1_64 10 33.356 ms 0.6622 ms 1.6120 ms 34 B
Compute Fnv1_64 100 327.279 ms 5.6028 ms 5.7536 ms 272 B
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  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 netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.7.2

  • .NETStandard 2.1

    • No dependencies.
  • net6.0

    • 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.

Version Downloads Last updated
1.2.0 197 11/8/2024
1.1.0.1 127 10/7/2024
1.1.0 364 5/23/2024
1.0.0 133 2/22/2024