Sphere10.HashLib4CSharp
3.0.2
See the version list below for details.
dotnet add package Sphere10.HashLib4CSharp --version 3.0.2
NuGet\Install-Package Sphere10.HashLib4CSharp -Version 3.0.2
<PackageReference Include="Sphere10.HashLib4CSharp" Version="3.0.2" />
<PackageVersion Include="Sphere10.HashLib4CSharp" Version="3.0.2" />
<PackageReference Include="Sphere10.HashLib4CSharp" />
paket add Sphere10.HashLib4CSharp --version 3.0.2
#r "nuget: Sphere10.HashLib4CSharp, 3.0.2"
#:package Sphere10.HashLib4CSharp@3.0.2
#addin nuget:?package=Sphere10.HashLib4CSharp&version=3.0.2
#tool nuget:?package=Sphere10.HashLib4CSharp&version=3.0.2
HashLib4CSharp
HashLib4CSharp is a C# library that provides an easy to use interface for computing hashes and checksums of strings, files, streams, byte arrays and untyped data.
📋 Overview
HashLib4CSharp is a comprehensive hashing library providing implementations of multiple hash algorithms and checksums. It offers a unified interface for computing and verifying cryptographic hashes across various input sources.
🚀 Key Features
- Multiple Algorithms: MD5, SHA-1, SHA-2, SHA-3, BLAKE2, and many more
- Multiple Input Types: Strings, files, streams, byte arrays, untyped data
- Checksum Algorithms: CRC, Adler-32, and other checksum implementations
- Fluent API: Easy-to-use builder pattern for hash computation
- Streaming Support: Compute hashes for large files efficiently
- Verification: Built-in hash verification methods
- Performance: Optimized implementations with caching
🔧 Usage
Compute a hash:
using HashLib4CSharp.Base;
// Hash a string
var hash = HashFactory.Crypto.CreateSHA256().ComputeString("hello world");
// Hash a file
var fileHash = HashFactory.Crypto.CreateSHA256().ComputeFile("myfile.bin");
// Hash a stream
using var stream = File.OpenRead("data.bin");
var streamHash = HashFactory.Crypto.CreateSHA256().ComputeStream(stream);
📦 Dependencies
- Core .NET Framework only
📄 Related Projects
- Sphere10.Framework - Uses HashLib for cryptographic operations
- Sphere10.Framework.CryptoEx - Extended cryptography
- Sphere10.Framework.DApp.Core - Blockchain hashing
| 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 was computed. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| 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. |
-
.NETStandard 2.1
- System.Runtime.CompilerServices.Unsafe (>= 6.1.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Sphere10.HashLib4CSharp:
| Package | Downloads |
|---|---|
|
Sphere10.Framework.CryptoEx
Extended cryptography library for distributed systems and blockchain applications. Provides advanced primitives including elliptic-curve cryptography (ECDSA/ECIES across multiple curves), post-quantum signature schemes, key derivation, and verifiable random functions (VRF). |
GitHub repositories
This package is not used by any popular GitHub repositories.