Skip to content

Instantly share code, notes, and snippets.

View ProbablePrime's full-sized avatar
😍
Making memes

ProbablePrime ProbablePrime

😍
Making memes
View GitHub Profile
@ProbablePrime
ProbablePrime / CheeseRedactor.cs
Created September 23, 2025 20:28
A Microsoft.Extensions.Compliance.Redaction that redacts secrets replacing them with "CHEESE"
using Microsoft.Extensions.Compliance.Redaction;
using System;
namespace Cheese;
public class CheeseRedactor : Redactor
{
private const string CHEESE = nameof(CHEESE);
public override int GetRedactedLength(ReadOnlySpan<char> input) => input.Length;