PostQuantum.DataProtection.Redis
0.1.0-preview.7
dotnet add package PostQuantum.DataProtection.Redis --version 0.1.0-preview.7
NuGet\Install-Package PostQuantum.DataProtection.Redis -Version 0.1.0-preview.7
<PackageReference Include="PostQuantum.DataProtection.Redis" Version="0.1.0-preview.7" />
<PackageVersion Include="PostQuantum.DataProtection.Redis" Version="0.1.0-preview.7" />
<PackageReference Include="PostQuantum.DataProtection.Redis" />
paket add PostQuantum.DataProtection.Redis --version 0.1.0-preview.7
#r "nuget: PostQuantum.DataProtection.Redis, 0.1.0-preview.7"
#:package PostQuantum.DataProtection.Redis@0.1.0-preview.7
#addin nuget:?package=PostQuantum.DataProtection.Redis&version=0.1.0-preview.7&prerelease
#tool nuget:?package=PostQuantum.DataProtection.Redis&version=0.1.0-preview.7&prerelease
PostQuantum.DataProtection.Redis
StackExchange.Redis-backed IPostQuantumKeyStore for
PostQuantum.DataProtection. Pairs
naturally with Microsoft.AspNetCore.DataProtection.StackExchangeRedis.PersistKeysToStackExchangeRedis
so the Data Protection keys themselves and the PQ keypairs that wrap them both live in the
same Redis instance.
⚠️ Preview (
0.1.0-preview.4).
Install
dotnet add package PostQuantum.DataProtection.Redis --prerelease
Wire it up
builder.Services.AddPostQuantumKeyManagement(...);
builder.Services
.AddDataProtection()
.PersistKeysToStackExchangeRedis(redis, "DP-keys")
.ProtectKeysWithPostQuantum(o => o.KeyStorePath = "keys/unused.txt");
builder.Services.AddPostQuantumDataProtectionRedis("localhost:6379");
What goes into Redis
| Key | Type | Contents |
|---|---|---|
pq-dataprotection:pairs |
hash | one field per keypair (field=keyId, value=PostQuantumKeyPair.Encode()) |
pq-dataprotection:active |
string | the active keypair id |
Both keys can be namespaced by passing a different prefix argument to
AddPostQuantumDataProtectionRedis(...).
To God be the glory — 1 Corinthians 10:31.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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 is compatible. 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. |
-
net10.0
- PostQuantum.DataProtection (>= 0.1.0-preview.7)
- StackExchange.Redis (>= 2.8.16)
-
net8.0
- PostQuantum.DataProtection (>= 0.1.0-preview.7)
- StackExchange.Redis (>= 2.8.16)
-
net9.0
- PostQuantum.DataProtection (>= 0.1.0-preview.7)
- StackExchange.Redis (>= 2.8.16)
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.1.0-preview.7 | 55 | 6/4/2026 |
| 0.1.0-preview.6 | 51 | 6/4/2026 |
| 0.1.0-preview.5 | 59 | 6/4/2026 |
| 0.1.0-preview.4 | 50 | 6/4/2026 |
0.1.0-preview.4: First public preview. StackExchange.Redis-backed IPostQuantumKeyStore. Uses one Redis hash for keypair tokens and one string key for the active pointer. Same crash-safe write order (keypair entry before active pointer) as the cloud-store packages.