Decrypt Office Files
Decrypt password-protected Microsoft Office files (Excel, Word, PowerPoint, etc.) using msoffcrypto-tool.
Instructions
- •
Receive input from the user:
- •File path to the password-protected Office file
- •Password for decryption
- •
Run the decryption command:
- •Execute
uvx msoffcrypto-tool <input_file> <output_file> -p <password> - •Output file name: prepend
decrypted_to the original filename- •Example:
path/to/report.xlsx→path/to/decrypted_report.xlsx
- •Example:
- •Execute
- •
Report the result to the user:
- •On success: show the output file path
- •On failure: show the error message (e.g., wrong password, unsupported format)