Skip to main content

Module strategy

Module strategy 

Source
Expand description

Redaction strategies for anonymizing data.

Each strategy implements a different approach to redacting values:

  • null: Replace with NULL
  • constant: Replace with a fixed value
  • hash: One-way hash (deterministic)
  • mask: Partial masking with pattern
  • shuffle: Redistribute values within column
  • fake: Generate realistic fake data
  • skip: No redaction (passthrough)

Structs§

ConstantStrategy
Strategy that replaces all non-NULL values with a constant
FakeStrategy
Strategy that generates fake data
HashStrategy
Strategy that hashes values with SHA256
MaskStrategy
Strategy that partially masks values using a pattern.
NullStrategy
Strategy that replaces all values with NULL
ShuffleStrategy
Strategy that shuffles values within a column
SkipStrategy
Strategy that passes values through unchanged

Enums§

RedactValue
Value representation for redaction
StrategyKind
Redaction strategy kind with associated configuration

Traits§

Strategy
Trait for redaction strategies