Obfuscation

Utility object for obfuscating sensitive data in trace output.

Used by the compiler plugin to process parameters marked with @Sensitive or @PII annotations.

Properties

Link copied to clipboard
const val REDACTED: String

Placeholder text for completely redacted values.

Functions

Link copied to clipboard
fun maskPII(value: Any?): String

Partially masks a value while preserving some characters for debugging.

Link copied to clipboard
fun redact(value: Any?): String

Completely redacts a value, returning "REDACTED".

Link copied to clipboard
fun toTraceString(value: Any?, maxLength: Int = 200): String

Converts any value to a string representation suitable for tracing.