PostQuantum.DataProtection.Redis 0.1.0-preview.5

This is a prerelease version of PostQuantum.DataProtection.Redis.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package PostQuantum.DataProtection.Redis --version 0.1.0-preview.5
                    
NuGet\Install-Package PostQuantum.DataProtection.Redis -Version 0.1.0-preview.5
                    
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="PostQuantum.DataProtection.Redis" Version="0.1.0-preview.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PostQuantum.DataProtection.Redis" Version="0.1.0-preview.5" />
                    
Directory.Packages.props
<PackageReference Include="PostQuantum.DataProtection.Redis" />
                    
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 PostQuantum.DataProtection.Redis --version 0.1.0-preview.5
                    
#r "nuget: PostQuantum.DataProtection.Redis, 0.1.0-preview.5"
                    
#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 PostQuantum.DataProtection.Redis@0.1.0-preview.5
                    
#: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=PostQuantum.DataProtection.Redis&version=0.1.0-preview.5&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=PostQuantum.DataProtection.Redis&version=0.1.0-preview.5&prerelease
                    
Install as a Cake Tool

PostQuantum.DataProtection.Redis

License: MIT

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

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.