Challenge

As always, we challenge you to add new features to this script and extend it using the knowledge you have and available resources. For this chapter, we first challenge you to hash the indexed files, using MD5 or SHA1, and store that information in the database. You can use the built-in hashlib library to handle hashing operations.

In addition, consider adding user-specified filters for particular file extensions for the collection. These features can be implemented without major renovation to the code though you may find it easiest and beneficial to your understanding to start from scratch and build the script with one or more of these new features in mind.

Get Learning Python for Forensics now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.