msoffice_decrypt
================
msoffice_decrypt is a Python tool and library for decrypting encrypted
MS Office files with a password. This work is based on
https://github.com/nolze/msoffcrypto-tool. I created this project to
solves a specific use case for myself.
Installation
------------
Stable release
~~~~~~~~~~~~~
::
pip3 install -U msoffice_decrypt
From GitHub
~~~~~~~~~~~
::
pip3 install -U git+https://github.com/unixfreak0037/msoffice_decrypt
Examples
--------
(command line) Decrypt a file with a password.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
::
msoffice_decrypt -p 7779 Scan_ciwilson.doc Scan_ciwilson_unencrypted.doc
::
decrypted Scan_ciwilson.doc into Scan_ciwilson_unencrypted.doc
(command line) Decrypt a file trying everything that might be a password in this other file.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
::
msoffice_decrypt -i sample.txt Scan_ciwilson.doc Scan_ciwilson_unencrypted.doc
::
found password: 7779
decrypted Scan_ciwilson.doc into Scan_ciwilson_unencrypted.doc
(library)
~~~~~~~~~
.. code:: python
from msoffice_decrypt import MSOfficeDecryptor
decryptor = MSOfficeDecryptor(input_file_path, output_file_path)
if decryptor.is_decryptable:
# generate a list of passwords that might be right
# here we assume sample.txt is a text file that contains the password somewhere
with open('sample.txt', 'r') as fp:
word_list = decryptor.find_password(fp)
# see if any of these passwords are correct
password = decryptor.guess(word_list)
if password:
decryptor.decrypt(password)
================
msoffice_decrypt is a Python tool and library for decrypting encrypted
MS Office files with a password. This work is based on
https://github.com/nolze/msoffcrypto-tool. I created this project to
solves a specific use case for myself.
Installation
------------
Stable release
~~~~~~~~~~~~~
::
pip3 install -U msoffice_decrypt
From GitHub
~~~~~~~~~~~
::
pip3 install -U git+https://github.com/unixfreak0037/msoffice_decrypt
Examples
--------
(command line) Decrypt a file with a password.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
::
msoffice_decrypt -p 7779 Scan_ciwilson.doc Scan_ciwilson_unencrypted.doc
::
decrypted Scan_ciwilson.doc into Scan_ciwilson_unencrypted.doc
(command line) Decrypt a file trying everything that might be a password in this other file.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
::
msoffice_decrypt -i sample.txt Scan_ciwilson.doc Scan_ciwilson_unencrypted.doc
::
found password: 7779
decrypted Scan_ciwilson.doc into Scan_ciwilson_unencrypted.doc
(library)
~~~~~~~~~
.. code:: python
from msoffice_decrypt import MSOfficeDecryptor
decryptor = MSOfficeDecryptor(input_file_path, output_file_path)
if decryptor.is_decryptable:
# generate a list of passwords that might be right
# here we assume sample.txt is a text file that contains the password somewhere
with open('sample.txt', 'r') as fp:
word_list = decryptor.find_password(fp)
# see if any of these passwords are correct
password = decryptor.guess(word_list)
if password:
decryptor.decrypt(password)
Metadata
Release files for msoffice-decrypt 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| msoffice_decrypt-1.0.1.tar.gz | 10.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| msoffice_decrypt-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.6 kB
Release files / msoffice_decrypt-1.0.1.tar.gz
| Download URL | msoffice_decrypt-1.0.1.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
70ff2f468cb4931788df974daafe32da3e59b3a6f1aa2880e4cecd8021ab8334
|
|
BLAKE2b-256 checksum How to use checksums |
71f8d480a890ecd029afaaeebda32a606ae4dcc2d14432a33a447c8593c0b52c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.10.0 pkginfo/1.2.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.5
|
Release files / msoffice_decrypt-1.0.1-py3-none-any.whl
| Download URL | msoffice_decrypt-1.0.1-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
71e13fa16c39685c80713e8788b4bff0567c2efdb1b8d9f5a8ac46f32015fd5e
|
|
BLAKE2b-256 checksum How to use checksums |
e80bd7dbec711b90c8167db8fbcfcfe54f9ed37545e43a80dd844837e6b1f5d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.10.0 pkginfo/1.2.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.5
|