Privacy Shield is a Python-based tool designed to anonymize personal data in CSV or text files. It automatically detects and replaces sensitive information such as names, emails, phone numbers, and credit card details, ensuring data privacy and compliance with regulations like GDPR and CCPA.
β
Automatically detects and anonymizes names, emails, phone numbers, and credit cards
β
Supports CSV and Text Files
β
Customizable Masking (Fake data, Hashing, or "XXXX" masking)
β
Fast and efficient using pandas and regex
β
Helps in data privacy protection and secure data sharing
Install the required dependencies using pip:
pip install pandas faker
Run the Python script:
python privacy_shield.py
Follow the prompts:
- Enter file type (csv/text)
- Enter file path (e.g.,
data.csv
orsample.txt
) - Anonymized file is saved as
anonymized_data.csv
oranonymized_text.txt
Name | Phone | Credit Card | |
---|---|---|---|
Alice | alice@gmail.com | 987-654-3210 | 1234-5678-9101-1121 |
Bob | bob@yahoo.com | 876-543-2109 | 2345-6789-0123-4567 |
Name | Phone | Credit Card | |
---|---|---|---|
John Doe | michael12@example.com | 555-123-4567 | XXXX-XXXX-XXXX-XXXX |
Sarah Smith | anna.williams@mail.com | 333-987-6543 | XXXX-XXXX-XXXX-XXXX |
πΉ Encrypt anonymized files before sharing
πΉ Add database support (MySQL/PostgreSQL)
πΉ Web-based UI for easy usage