QuantumInteger 1.0.21
dotnet add package QuantumInteger --version 1.0.21
NuGet\Install-Package QuantumInteger -Version 1.0.21
<PackageReference Include="QuantumInteger" Version="1.0.21" />
<PackageVersion Include="QuantumInteger" Version="1.0.21" />
<PackageReference Include="QuantumInteger" />
paket add QuantumInteger --version 1.0.21
#r "nuget: QuantumInteger, 1.0.21"
#:package QuantumInteger@1.0.21
#addin nuget:?package=QuantumInteger&version=1.0.21
#tool nuget:?package=QuantumInteger&version=1.0.21
⚛️ 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
| 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
- 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.