Skip to content

feat: add PII patterns (credit_card, ssn, phone) to normalized()#134

Open
dloss wants to merge 1 commit intomainfrom
claude/analyze-pii-shield-pYnc5
Open

feat: add PII patterns (credit_card, ssn, phone) to normalized()#134
dloss wants to merge 1 commit intomainfrom
claude/analyze-pii-shield-pYnc5

Conversation

@dloss
Copy link
Owner

@dloss dloss commented Feb 3, 2026

Add three new patterns to the normalized() function for PII redaction:

  • credit_card: Luhn-validated 13-19 digit sequences
  • ssn: US Social Security Numbers (XXX-XX-XXXX format)
  • phone: US and international phone number formats

These patterns are opt-in (not in defaults) for safety. The credit_card
pattern uses proper Luhn checksum validation to avoid false positives.

https://claude.ai/code/session_01283SYUq6JCwa8ZApPPtYSK

Add three new patterns to the normalized() function for PII redaction:
- credit_card: Luhn-validated 13-19 digit sequences
- ssn: US Social Security Numbers (XXX-XX-XXXX format)
- phone: US and international phone number formats

These patterns are opt-in (not in defaults) for safety. The credit_card
pattern uses proper Luhn checksum validation to avoid false positives.

https://claude.ai/code/session_01283SYUq6JCwa8ZApPPtYSK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants