Enum ApplicationAuditValueDisposition
- Assembly
- ReferenceApplication.Infrastructure.dll
Defines how an application audit value should be represented.
public enum ApplicationAuditValueDisposition
Fields
Hash = 2Records an unsalted, unkeyed SHA-256 hash of the value for integrity and change detection only. This is not a confidentiality control: low-entropy values such as email addresses, phone numbers, national identifiers, booleans, enum names, and small numbers are trivially recovered by a dictionary attack against the audit table. Use HmacSha256 when the value must stay confidential, and use this only for high-entropy values where correlation matters more than secrecy.
HmacSha256 = 5Records an HMAC-SHA-256 hash of the value using a configured key. This resists offline brute-force against low-entropy values better than Hash.
Include = 0Records the value unchanged, except null is normalized to Empty.
Mask = 1Records a fixed mask token instead of the value.
Omit = 3Omits the value and records only that the property changed.
Truncate = 4Records only the first segment of the value.