Enum CreditCardRedaction
- Namespace
- ZeroRedact
- Assembly
- ZeroRedact.dll
Defines the different types of redactions that can be applied to a credit card number.
public enum CreditCardRedaction
Fields
All = 0
The credit card number is redacted.
Example: "4111-1111-1111-1111" becomes "*******************"
FixedLength = 1
The credit card number is redacted with a fixed length.
Example: "4111-1111-1111-1111" becomes "********"
Full = 2
The credit card number is redacted, preserving symbols.
Example: "4111-1111-1111-1111" becomes "---"
ShowFirstSixLastFour = 4
The first six digits and the last four digits of the credit card number are shown.
Example: "4111-1111-1111-1111" becomes "4111-11**-****-1111"
ShowLastFour = 3
The last four digits of the credit card number are shown.
Example: "4111-1111-1111-1111" becomes "--****-1111"