mask-pii for PowerShell

mask-pii ieviešana priekš PowerShell e-pasta un tālruņa PII maskēšanai žurnālos un datu cauruļvados.

E-pasta maskēšana

Masks local parts while preserving domain visibility.

Tālruņa maskēšana

Masks sensitive digits while keeping format and suffix visibility.

Builder stila API

Enable email/phone masking and mask character explicitly before processing.

Instalēt un sākt

PowerShell [planned: PowerShell Gallery 0.2.0]: Izmantojiet tālāk norādīto pašreizējo instalēšanas metodi, ielādējiet PowerShell API un palaidiet minimālo piemēru. Piemērs nepārprotami ieslēdz e-pasta un tālruņa maskēšanu un parāda paredzēto izvadi.

Instalēšana

git clone --branch v0.2.0 --depth 1 https://github.com/finitefield-org/mask-pii.git

Lietošana

example.ps1
Import-Module MaskPII

$masker = (New-Masker).MaskEmails().MaskPhones().WithMaskChar('#')
$inputText = 'Contact: alice@example.com or 090-1234-5678.'
$output = $masker.Process($inputText)

$output
# => "Contact: a####@example.com or ###-####-5678."
Piezīme

Please check the README for exact package ecosystem details and API examples for this language.

Iepriekšējais

Valodu indekss

Nākamais

GitHub