Skip to content
Tagged articles

Zipfile

14 articles · Page 1 of 1
Python Programming Learning Circle
Python Programming Learning Circle
Mar 27, 2025 · Information Security

Decrypting Password‑Protected Zip Files with Python

This article explains how to use Python's built‑in zipfile module and the third‑party rarfile library to brute‑force and decrypt encrypted zip archives, handle Chinese filename encoding issues, and generate password permutations efficiently with itertools for flexible password lengths.

PythonZipfilefile decryption
0 likes · 9 min read
Decrypting Password‑Protected Zip Files with Python
MaGe Linux Operations
MaGe Linux Operations
Jan 16, 2022 · Backend Development

How to Batch‑Generate Word Files from Excel Using Python’s zipfile and python‑docx

This article demonstrates two Python‑based solutions for automatically replacing placeholders in a Word document with data from an Excel sheet—one using python‑docx (with win32com conversion for .doc files) and another leveraging the zipfile module to edit the underlying XML—complete with code, troubleshooting tips, and handling of formatting issues.

DOCXExcelWord
0 likes · 10 min read
How to Batch‑Generate Word Files from Excel Using Python’s zipfile and python‑docx
Python Programming Learning Circle
Python Programming Learning Circle
Dec 11, 2021 · Backend Development

Batch Generating Word Documents from Excel Using Python: Two Solutions with python-docx and zipfile

This article demonstrates how to automate the replacement of placeholders in Word (.doc/.docx) files with data from an Excel sheet using Python, presenting two approaches—one based on python-docx and win32com, and another that manipulates the underlying zip archive with the zipfile module—while addressing common pitfalls and preserving document formatting.

DOCXExcelZipfile
0 likes · 11 min read
Batch Generating Word Documents from Excel Using Python: Two Solutions with python-docx and zipfile