Table of Contents

Interface IValueMasker

Namespace
Apq.Cfg.Security
Assembly
Apq.Cfg.dll

配置值脱敏器接口,用于日志输出等场景

public interface IValueMasker

Methods

Mask(string, string?)

脱敏处理

string Mask(string key, string? value)

Parameters

key string

配置键

value string

配置值

Returns

string

脱敏后的值

ShouldMask(string)

判断是否应该脱敏该键

bool ShouldMask(string key)

Parameters

key string

配置键

Returns

bool

如果应该脱敏返回 true,否则返回 false