Table of Contents

Enum StringRedaction

Namespace
ZeroRedact
Assembly
ZeroRedact.dll

Defines the different types of redactions that can be applied to a string.

public enum StringRedaction

Fields

All = 0

The string is redacted.

Example: "Hello, world!" becomes "*************"

FirstHalf = 2

The first half of the string is redacted.

Example: "Hello, world!" becomes "*******world!"

FixedLength = 1

The string is redacted with a fixed length.

Example: "Hello, world!" becomes "*********"

IgnoreSymbols = 4

All characters are redacted except symbols.

Example: "Hello, world!" becomes "******, *****!"

SecondHalf = 3

The second half of the string is redacted.

Example: "Hello, world!" becomes "Hello,*******"

ShowFirstAndLast = 5

The first and last characters are shown, all others are redacted.

Example: "Hello, world!" becomes "H************!"