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 = 0The string is redacted.
Example: "Hello, world!" becomes "*************"
FirstHalf = 2The first half of the string is redacted.
Example: "Hello, world!" becomes "*******world!"
FixedLength = 1The string is redacted with a fixed length.
Example: "Hello, world!" becomes "*********"
IgnoreSymbols = 4All characters are redacted except symbols.
Example: "Hello, world!" becomes "******, *****!"
SecondHalf = 3The second half of the string is redacted.
Example: "Hello, world!" becomes "Hello,*******"
ShowFirstAndLast = 5The first and last characters are shown, all others are redacted.
Example: "Hello, world!" becomes "H************!"