Python tool and library for decrypting and encrypting MS Office files using a password or other keys
Maintained. Last release 4 weeks ago, commits in 3 of the last 26 weeks. Weaker on commit activity and issue handling.
pip install msoffcrypto-toolmsoffcrypto-tool
msoffcrypto-tool is a Python tool and library for decrypting and encrypting MS Office files using a password or other keys.
Contents
- Installation
- Examples
- Supported encryption methods
- Tests
- Todo
- Resources
- Use cases and mentions
- Contributors
- Credits
Installation
pip install msoffcrypto-tool
Examples
As CLI tool (with password)
Decryption
Specify the password with -p flag:
msoffcrypto-tool encrypted.docx decrypted.docx -p Passw0rd
Password is prompted if you omit the password argument value:
$ msoffcrypto-tool encrypted.docx decrypted.docx -p
Password:
To check if the file is encrypted or not, use -t flag:
msoffcrypto-tool document.doc --test -v
It returns if the file is encrypted, if not.