CryptoHives.Foundation.Threading
0.2.11-preview
See the version list below for details.
dotnet add package CryptoHives.Foundation.Threading --version 0.2.11-preview
NuGet\Install-Package CryptoHives.Foundation.Threading -Version 0.2.11-preview
<PackageReference Include="CryptoHives.Foundation.Threading" Version="0.2.11-preview" />
<PackageVersion Include="CryptoHives.Foundation.Threading" Version="0.2.11-preview" />
<PackageReference Include="CryptoHives.Foundation.Threading" />
paket add CryptoHives.Foundation.Threading --version 0.2.11-preview
#r "nuget: CryptoHives.Foundation.Threading, 0.2.11-preview"
#:package CryptoHives.Foundation.Threading@0.2.11-preview
#addin nuget:?package=CryptoHives.Foundation.Threading&version=0.2.11-preview&prerelease
#tool nuget:?package=CryptoHives.Foundation.Threading&version=0.2.11-preview&prerelease
π‘οΈ CryptoHives Open Source Initiative π
The CryptoHives Open Source Initiative brings consistent, portable, and auditable cryptography to .NET β managed code first, OS quirks gone.
π CryptoHives Open Source Initiative .NET Foundation Packages
The CryptoHives Open Source Initiative is a collection of modern, high-assurance cryptographic libraries for .NET, developed and maintained by The Keepers of the CryptoHives. Each package is designed for security, interoperability, and clarity β making it easy to build secure systems without sacrificing developer experience. There are also supporting packages which improve memory usage and thread synchronization for high performance transformation pipelines and for cryptography workloads.
π¦ Available Packages
| Package | Description | NuGet |
|---|---|---|
CryptoHives.Foundation.Memory |
Memory library | |
CryptoHives.Foundation.Threading |
Threading library |
More packages are available under the CryptoHives.* namespace β see the Nuget CryptoHives for details.
π CryptoHives Health
β¨ Overview
The CryptoHives .NET Foundation project serves as the first core building block for .NET libraries under the CryptoHives Open Source Initiative umbrella.
All implementations are developed from first principles, without reliance on operating system or native platform crypto providers, ensuring:
- π Security Transparency β all algorithms are clean-room verified and auditable
- βοΈ Predictable Performance β optimized memory usage and allocation-free APIs
- π§± Composable Architecture β designed for integration in modern .NET applications, from libraries to microservices
𧬠Features
π Clean-Room Cryptography
- Fully managed implementations of symmetric and asymmetric algorithms
- No dependency on OS or hardware cryptographic APIs
- Deterministic behavior across all platforms and runtimes
- Support for both classical and modern primitives (AES, ChaCha20, SHA-2/3, etc.)
β‘ High-Performance Primitives
CryptoHives provides a growing set of utilities designed to optimize high performance transformation pipelines and cryptography workloads:
π οΈ Memory Efficiency
- ArrayPool-based allocators for common crypto and serialization scenarios
- Pooled implementations of
MemoryStreamandIBufferWriter<T>for transformation pipelines - Primitives to handle ownership of pooled buffers using
ReadOnlySequence<T>withArrayPool<T> - Zero-copy, zero-allocation design for high-frequency cryptographic workloads and transformation pipelines
π οΈ Concurrency Tools
- Lightweight Async-compatible synchronization primitives based on
ObjectPoolandValueTask<T> - High-performance threading helpers designed to reduce allocations of
TaskandTaskCompletionSource<T>
π Installation
Install via NuGet CLI:
dotnet add package CryptoHives.Memory
Or using the Visual Studio Package Manager:
Install-Package CryptoHives.Memory
π§ Usage Example
Hereβs a minimal example using the CryptoHives.Memory package:
using CryptoHives.Memory;
using System;
public class Example
{
public string WritePooledChunk(ReadOnlySpan<byte> chunk)
{
using var writer = new ArrayPoolMemoryStream(defaultBufferSize);
writer.Write(chunk);
ReadOnlySequence<byte> sequence = writer.GetReadOnlySequence();
return Encoding.UTF8.GetString(sequence);
}
}
π§ͺ Clean-Room Policy
All code within the CryptoHives .NET Foundation is written and validated under strict clean-room conditions:
- No reverse engineering or derived code from existing proprietary libraries
- Implementations are verified against public specifications and test vectors
- Review process includes formal algorithm validation and peer verification
π Security Policy
Security is our top priority.
If you discover a vulnerability, please do not open a public issue.
Instead, please follow the guidelines on the CryptoHives Open Source Initiative Security Page.
π No-Nonsense Matters
This project is released under the MIT License because open collaboration matters.
However, the Keepers are well aware that MIT-licensed code often gets copied, repackaged, or commercialized without giving credit.
If you use this code, please do so responsibly:
- Give visible credit to the CryptoHives Open Source Initiative or The Keepers of the CryptoHives and refer to the original source.
- Contribute improvements back and report issues.
Open source thrives on respect, not just permissive licenses.
βοΈ License
Each component of the CryptoHives Open Source Initiative is licensed under a SPDX-compatible license.
By default, packages use the following license tags:
// SPDX-FileCopyrightText: <year> The Keepers of the CryptoHives
// SPDX-License-Identifier: MIT
Some inherited components may use alternative MIT license headers, according to their origin and specific requirements those headers are retained.
π About The Keepers of the CryptoHives
The CryptoHives Open Source Initiative project is maintained by The Keepers of the CryptoHives β
a collective of developers dedicated to advancing open, verifiable, and high-performance cryptography in .NET.
π§© Contributing
Contributions, issue reports, and pull requests are welcome!
Please see the Contributing Guide before submitting code.
CryptoHives Open Source Initiative β Secure. Deterministic. Performant.
Β© 2025 The Keepers of the CryptoHives. All rights reserved.
| 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. net9.0 is compatible. 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 | 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 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 is compatible. 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. |
-
.NETFramework 4.6.2
- Microsoft.Bcl.AsyncInterfaces (>= 10.0.0)
- Microsoft.Extensions.ObjectPool (>= 10.0.0)
- System.Memory (>= 4.6.3)
- System.Threading.Tasks.Extensions (>= 4.6.3)
-
.NETFramework 4.8
- Microsoft.Bcl.AsyncInterfaces (>= 10.0.0)
- Microsoft.Extensions.ObjectPool (>= 10.0.0)
- System.Memory (>= 4.6.3)
- System.Threading.Tasks.Extensions (>= 4.6.3)
-
.NETStandard 2.0
- Microsoft.Bcl.AsyncInterfaces (>= 10.0.0)
- Microsoft.Extensions.ObjectPool (>= 10.0.0)
- System.Memory (>= 4.6.3)
- System.Threading.Tasks.Extensions (>= 4.6.3)
-
.NETStandard 2.1
- Microsoft.Extensions.ObjectPool (>= 10.0.0)
- System.Memory (>= 4.6.3)
-
net8.0
- Microsoft.Extensions.ObjectPool (>= 10.0.0)
-
net9.0
- Microsoft.Extensions.ObjectPool (>= 10.0.0)
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 |
|---|---|---|
| 0.4.21-preview | 48 | 3/1/2026 |
| 0.4.11-preview | 60 | 2/14/2026 |
| 0.3.19-preview | 59 | 1/26/2026 |
| 0.2.43-preview | 60 | 1/9/2026 |
| 0.2.33-preview | 409 | 12/9/2025 |
| 0.2.30-preview | 326 | 12/8/2025 |
| 0.2.28-preview | 257 | 12/7/2025 |
| 0.2.26-preview | 196 | 12/6/2025 |
| 0.2.22-preview | 547 | 12/1/2025 |
| 0.2.17-preview | 155 | 11/23/2025 |
| 0.2.13-preview | 382 | 11/20/2025 |
| 0.2.11-preview | 972 | 11/19/2025 |