Function: maskPII()
maskPII(Defined in: crypto.ts:198 Mask an arbitrary PII string for safe logging — keeps the first two and last two characters and replaces everything in between with asterisks. Strings of length ≤ 4 are fully masked asdata):string
"****".
Parameters
data
string
Raw PII string.
Returns
string
Masked representation safe for logs.