Microsoft.Extensions.Compliance.Redaction 11.0.0

Prefix Reserved
This package has not been indexed yet. It will appear in search results and will be available for install/restore after indexing is complete.
The package icon will become available after this package is indexed.
dotnet add package Microsoft.Extensions.Compliance.Redaction --version 11.0.0
                    
NuGet\Install-Package Microsoft.Extensions.Compliance.Redaction -Version 11.0.0
                    
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="Microsoft.Extensions.Compliance.Redaction" Version="11.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.Extensions.Compliance.Redaction" Version="11.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.Extensions.Compliance.Redaction" />
                    
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 Microsoft.Extensions.Compliance.Redaction --version 11.0.0
                    
#r "nuget: Microsoft.Extensions.Compliance.Redaction, 11.0.0"
                    
#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 Microsoft.Extensions.Compliance.Redaction@11.0.0
                    
#: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=Microsoft.Extensions.Compliance.Redaction&version=11.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.Extensions.Compliance.Redaction&version=11.0.0
                    
Install as a Cake Tool

Microsoft.Extensions.Compliance.Redaction

A redaction engine and canonical redactors.

Install the package

From the command-line:

dotnet add package Microsoft.Extensions.Compliance.Redaction

Or directly in the C# project file:

<ItemGroup>
  <PackageReference Include="Microsoft.Extensions.Compliance.Redaction" Version="[CURRENTVERSION]" />
</ItemGroup>

Usage Example

Registering the services

The services can be registered using one of the AddRedaction overloads:

public static IServiceCollection AddRedaction(this IServiceCollection services)
public static IServiceCollection AddRedaction(this IServiceCollection services, Action<IRedactionBuilder> configure)

Configuring a redactor

Redactors are fetched at runtime using an IRedactorProvider. You can choose to implement your own provider and register it inside the AddRedaction call, or alternatively you can just use the default provider. Redactors can be configured using one of these IRedactionBuilder extension methods:

// Using the default redactor provider:
builder.Services.AddRedaction(redactionBuilder =>
{
    // Assigns a redactor to use for a set of data classifications.
    redactionBuilder.SetRedactor<MyRedactor>(MySensitiveDataClassification);
    // Assigns a fallback redactor to use when processing classified data for which no specific redactor has been registered. 
    // The `ErasingRedactor` is the default fallback redactor. If no redactor is configured for a data classification then the data will be erased.
    redactionBuilder.SetFallbackRedactor<MyFallbackRedactor>();
});

// Using a custom redactor provider:
builder.Services.AddSingleton<IRedactorProvider, MyRedactorProvider>();
builder.Services.AddRedaction(redactionBuilder => { });

Configuring the HMAC redactor

The HMAC redactor can be configured using one these IRedactionBuilder extension methods:

public static IRedactionBuilder SetHmacRedactor(this IRedactionBuilder builder, Action<HmacRedactorOptions> configure, params DataClassificationSet[] classifications)
public static IRedactionBuilder SetHmacRedactor(this IRedactionBuilder builder, IConfigurationSection section, params DataClassificationSet[] classifications)

The HmacRedactorOptions requires its KeyId and Key properties to be set. The HmacRedactor is still in the experimental phase, which means that the above two methods will show warning EXTEXP0002 notifying you that the HmacRedactor is not yet stable. In order to use it, you will need to either add <NoWarn>$(NoWarn);EXTEXP0002</NoWarn> to your project file or add #pragma warning disable EXTEXP0002 around the calls to SetHmacRedactor.

Feedback & Contributing

We welcome feedback and contributions in our GitHub repo.

Supported Platforms

This package includes .NET Framework compatible targets, but is not officially supported on .NET Framework.

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 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.  net11.0 is compatible. 
.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 was computed. 
.NET Framework net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (107)

Showing the top 5 NuGet packages that depend on Microsoft.Extensions.Compliance.Redaction:

Package Downloads
Ark.Tools.NLog

NLog configuration helper and extensions for Ark standard configuration using code and not config files.

Ark.Tools.Solid

SOLID base for Handler pattern

Ark.Tools.FtpClient.Core

Core abstractions for FtpClient

Ark.Tools.ResourceWatcher

Watcher over listable resources with support for change detection, retry limit and state.

Ark.Tools.Sql.SqlServer

Extensions and helpers of Ark.Tools.Sql for SqlServer

GitHub repositories (7)

Showing the top 7 popular GitHub repositories that depend on Microsoft.Extensions.Compliance.Redaction:

Repository Stars
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
mehdihadeli/food-delivery-microservices
🍔 A practical and cloud-native food delivery microservices, built with .Net Aspire, .Net 10, Wolverine, Domain-Driven Design, CQRS, Vertical Slice Architecture, Event-Driven Architecture, and the latest technologies.
getcellm/cellm
Use LLMs in Excel formulas
dotnet/ai-samples
erwinkramer/bank-api
The Bank API is a design reference project suitable to bootstrap development for a compliant and modern API.
foxminchan/BookWorm
A reference architecture for Aspire microservices implementing MCP, A2A, AG-UI, and A2UI agent stack
bitbound/ControlR
Open-source, self-hostable remote control and remote access.
Version Downloads Last Updated
11.0.0 0 11/10/2026
10.11.0 245,513 10/14/2026
10.10.0 239,171 9/9/2026
10.9.0 145,221 8/11/2026
10.8.0 290,613 7/14/2026
10.7.0 229,367 6/9/2026
10.6.0 241,828 5/12/2026
10.5.0 328,294 4/15/2026
10.4.0 237,756 3/10/2026
10.3.0 280,907 2/10/2026
10.2.0 150,169 1/13/2026
10.1.0 164,034 12/9/2025
10.0.0 807,494 11/11/2025
9.10.0 162,989 10/14/2025
9.9.0 105,918 9/9/2025
9.8.0 122,112 8/12/2025
9.7.0 54,997 7/8/2025
9.6.0 67,458 6/10/2025
9.5.0 221,428 5/13/2025
9.4.0 126,379 4/8/2025
Loading failed