QuantumInteger 1.0.21

dotnet add package QuantumInteger --version 1.0.21
                    
NuGet\Install-Package QuantumInteger -Version 1.0.21
                    
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="QuantumInteger" Version="1.0.21" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="QuantumInteger" Version="1.0.21" />
                    
Directory.Packages.props
<PackageReference Include="QuantumInteger" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add QuantumInteger --version 1.0.21
                    
#r "nuget: QuantumInteger, 1.0.21"
                    
#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.
#:package QuantumInteger@1.0.21
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=QuantumInteger&version=1.0.21
                    
Install as a Cake Addin
#tool nuget:?package=QuantumInteger&version=1.0.21
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image

⚛️ Quantum Integer

QuantumInteger is a high-performance library designed for quantum-resistant integer arithmetic. Developed to bridge the gap between classical computing and post-quantum cryptography, it provides ultra-fast, secure types optimized for quantum-native operations.

✨ Key Features

Quantum-Native Types: Built-in support for specialized widths, including QInt33.

  • Memory Optimized: Leverages modern features like Span<T>, Memory<T>, and ref struct to ensure zero-allocation overhead where possible.
  • Post-Quantum Ready: Engineered for cryptographic resilience against quantum-era threats.
  • High Performance: Optimized for low-latency encryption and decryption cycles.
  • Hardware acceleration: The type supports hardware acceleration (requires Nvidia CUDA to be installed and enabled)

🚀 Getting Started

Installation Add the library to your project via the .NET CLI:

dotnet add package QuantumInteger

Basic Usage

The following example demonstrates how to generate a 33-bit quantum key and perform secure string encryption. Usage example:

// 1. Prepare your data
string input = "My custom string!!!";

// 2. Generate a 33-bit quantum key from a secret
QInt33 key = QInt33Encryptor.KeyFromString("my secret key");

// 3. Encrypt data (Returns a Base64 encoded string)
string encrypted = QInt33Encryptor.Encrypt(input, key);
Console.WriteLine($"Encrypted: {encrypted}");

// 4. Decrypt data
string decrypted = QInt33Encryptor.Decrypt(encrypted, key);
Console.WriteLine($"Decrypted: {decrypted}");

Also hash calculation is supported.

string input = "My password.";
byte[] passwordHash = QInt33Encryptor.CalculateHash(Encoding.UTF8.GetBytes(input));

Note: the passwordHash will always has length of 32-bytes. It is resistant against GPU bruteforce attacks.

✔ Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

👀 Credits

Developed by Null Software

Repository

https://github.com/nullsoftware/QuantumInteger

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

    • 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.0.21 27 2/15/2026
1.0.20 26 2/15/2026
1.0.14 75 2/3/2026
1.0.13 75 2/3/2026
1.0.12 76 2/3/2026