Generate a combined hash for multiple files.
(file_paths)
| 70 | |
| 71 | |
| 72 | def hash_files(file_paths): |
| 73 | """Generate a combined hash for multiple files.""" |
| 74 | combined_hash = hashlib.sha256() |
| 75 | |
| 76 | for file_path in file_paths: |
| 77 | file_hash = hash_file(file_path) |
| 78 | combined_hash.update(file_hash.encode("utf-8")) # Update with the file's hash |
| 79 | |
| 80 | return combined_hash.hexdigest() |
| 81 | |
| 82 | |
| 83 | def save_checksum_file(hash_value, output_file): |
no test coverage detected