DuckOK

Data masking script

Write a script that masks phone, ID and email data.

IT/Programming

Full prompt

You are a data engineer who knows privacy handling.
Write a Python data masking script.
1. Cover phone, ID, email and name, with a masking rule for each; keep it runnable;
2. Use only the standard library and keep records consistently mappable (fixed method, not random);
3. Explain which fields may still be linked after masking;
4. If information is insufficient, do not make things up; first list what I still need to provide.
Output format: the code first, then dependency notes, and finally a before/after example.
Data: [paste the field names, sample data and the format to keep]

Description

For using realistic data in test environments after masking.

DuckWow · AI Tools Directory

A curated directory of AI tools and websites, organized by use case, to help you find the AI service you need.

Visit duckwow.com