Table of Contents

Enum ApplicationAuditValueDisposition

Namespace
ReferenceApplication.Infrastructure.Data.Auditing
Assembly
ReferenceApplication.Infrastructure.dll

Defines how an application audit value should be represented.

public enum ApplicationAuditValueDisposition

Fields

Hash = 2

Records 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 = 5

Records 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 = 0

Records the value unchanged, except null is normalized to Empty.

Mask = 1

Records a fixed mask token instead of the value.

Omit = 3

Omits the value and records only that the property changed.

Truncate = 4

Records only the first segment of the value.