Skip to content

ZacariahCyberSec/Cybersecurity-python-algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ Update a File through a Python Algorithm

This project is part of the Coursera Cybersecurity Professional Certificate (Course 7). It demonstrates my ability to write Python code that reads, processes, and updates file data β€” a critical skill in cybersecurity automation.

πŸ“„ Project Description

In a healthcare company, access to restricted content is controlled via a file that stores an allow list of IP addresses. Some IPs must be removed from this list regularly based on a remove_list. I developed a Python script to automate this process.

The algorithm:

  • Opens the allow_list.txt file
  • Reads and parses the content
  • Removes IP addresses found in remove_list
  • Updates the file with the new list using .write()

🧠 Skills Demonstrated

  • File handling with open(), .read(), and .write()
  • String manipulation with .split() and .join()
  • Looping with for and conditional logic with if
  • Use of .remove() method to delete data from a list
  • Writing clear, documented Python code

πŸ“ Files Included

  • file_update_script.py – Python script that performs the file update
  • Update_File_Algorithm_Portfolio_Report.docx – Portfolio write-up with code explanations and context

βœ… Status

Completed and submitted on Coursera with a score of 100%.

πŸ”— Author

Tinashe Zacariah
LinkedIn Profile
GitHub Profile

About

Python-based algorithm to automate file updates for access control.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages