Listen to this Post
2025-02-21
In a continuous effort to improve the efficiency of daily tasks, I’ve been developing and fine-tuning a variety of tools that simplify my workflow. One of the most valuable scripts I’ve created is sigs.py, a Python tool designed to hash files. This script serves as a modern rewrite of an older Perl script, sigs.pl, with the goal of providing a versatile, portable alternative to traditional utilities like md5sum, sha1sum, and sha256sum. Over the years, this script has become a crucial part of my toolkit, handling not just the common hashing algorithms but also more advanced ones such as SHA512, SHA3-224, and SHA3-384.
Summary
The sigs.py script was created to provide a simple way to hash files using various algorithms, with portability and speed being key design goals. Its initial version served as a replacement for tools like md5sum and sha1sum on Linux. In recent updates, I noticed the need for a better way to validate file integrity. I often work with manifests containing different types of hash values, such as MD5, SHA1, and SHA256. To solve this, I added a check mode to the script. The new feature automatically determines which hashing algorithm to use by checking the length of the hash in the input file, making it capable of verifying any supported hash type. This update ensures that the script can handle hash verification for a wider range of file integrity checks.
The check mode is implemented through the -c switch, which is familiar to users of md5sum, sha1sum, and similar tools on Linux. This means that users can now quickly and easily verify file integrity by simply providing a text file with hash values and letting the script handle the rest.
I hope this update proves as useful to others as it has to me. You can access the script in my GitHub repository or download it directly via the link provided.
What Undercode Says:
The recent update to the sigs.py tool, which introduces a much-needed check mode, provides a perfect example of how small but thoughtful improvements can significantly enhance productivity. This addition solves a practical problem many users face when dealing with file verification across multiple hash algorithms. In particular, the challenge of handling various types of hashes (MD5, SHA1, SHA256) from different sources or tools is common in scenarios where file integrity needs to be verified quickly and accurately.
By enabling the script to automatically detect which hash type to use based on the length of the provided hash, the developer has eliminated the need for users to manually specify the algorithm. This not only saves time but also reduces the chance of errors when working with different hash types, particularly in environments where automation and speed are crucial.
The beauty of sigs.py lies in its simplicity and adaptability. The script is lightweight and portable, making it an excellent alternative to more complex, system-specific tools. The inclusion of newer, more secure hash algorithms like SHA3-224 and SHA3-384 positions the script as a versatile tool for modern cryptographic needs. While the existing hash utilities (such as md5sum or sha256sum) have been around for decades, newer hashing algorithms offer enhanced security and resistance to collision attacks, which is an important consideration in today’s security landscape.
This tool update also reflects a broader trend in software development: the move toward minimal, efficient tools that focus on doing one job well. With sigs.py, users are able to perform hash calculations and verifications without the overhead of larger, more complex systems. The focus on portability is also essential. Python’s cross-platform nature ensures that this tool can be run on different operating systems with little to no modification, making it an excellent choice for developers working in diverse environments.
Furthermore, the open-source nature of the tool ensures that it remains accessible and modifiable. Anyone can download the script, modify it to suit their needs, or contribute improvements back to the project. This aligns perfectly with the spirit of community-driven development that has made open-source tools so successful.
Another key takeaway from this update is the
Overall, this update serves as a reminder of how continuous improvement and thoughtful updates can elevate even the simplest tools, making them indispensable in everyday workflows. The inclusion of this feature could potentially reduce the friction that many users face when working with hash verification, and by using it, we can be assured that our data integrity checks are both thorough and streamlined. The sigs.py tool is now not only a powerful hashing utility but also a reliable solution for verifying file integrity in an efficient and secure manner.
References:
Reported By: https://isc.sans.edu/forums/diary/Tool
Extra Source Hub:
https://www.reddit.com/r/AskReddit
Wikipedia: https://www.wikipedia.org
Undercode AI
Image Source:
OpenAI: https://craiyon.com
Undercode AI DI v2




