Inspiration

We often come across text files that have sensitive information like phone numbers, emails, or card numbers. Sharing these files without removing such data can be risky. So I thought of making a tool that can automatically hide this kind of data to keep it safe.

What it does

SecureText reads a text file and finds any emails, phone numbers, or credit card numbers in it. It replaces those with [REDACTED] and creates two new files: One file with the redacted content One log file that shows how many redactions were done

How we built it

I used Python and the re module (regular expressions). First, I wrote patterns to detect emails, phone numbers, and card numbers. Then I used those patterns to search and replace sensitive data in the file. I also added a function to count how many items were redacted and save that info in a log file.

Challenges we ran into

Making correct regex patterns was hard at first.

Accomplishments that we're proud of

  1. The script works well and removes sensitive data properly.
  2. The log file gives a clear summary.
  3. It’s simple and can be used by anyone who knows basic Python. ## What we learned
  4. How to use regular expressions in real-life problems ## What's next for SecureText
  5. Make a simple user interface
  6. Allow users to choose what type of data they want to redact

Built With

Share this project:

Updates