<commit_before># ms-offcrypto-tool

ms-offcrypto-tool decrypts encrypted MS Office files with its intermediate key (secretKey) or the private key generated its escrow key.

## References

* "Backdooring MS Office documents with secret master keys" <http://secuinside.com/archive/2015/2015-1-9.pdf>
* [MS-OFFCRYPTO] Agile Encryption <https://msdn.microsoft.com/en-us/library/dd949735(v=office.12).aspx>

## Examples

~~~
python ms\_offcrypto\_tool.py -k AE8C36E68B4BB9EA46E5544A5FDB6693875B2FDE1507CBC65C8BCF99E25C2562 encrypted.pptx decrypted.pptx
~~~

~~~
python ms\_offcrypto\_tool.py -s priv.pem encrypted.docx decrypted.docx
~~~
<commit_msg>fix md fmt<commit_after># ms-offcrypto-tool

ms-offcrypto-tool decrypts encrypted MS Office files with its intermediate key (secretKey) or the private key generated its escrow key.

## References

* "Backdooring MS Office documents with secret master keys" <http://secuinside.com/archive/2015/2015-1-9.pdf>
* [MS-OFFCRYPTO] Agile Encryption <https://msdn.microsoft.com/en-us/library/dd949735(v=office.12).aspx>

## Examples

~~~
python ms_offcrypto_tool.py -k AE8C36E68B4BB9EA46E5544A5FDB6693875B2FDE1507CBC65C8BCF99E25C2562 encrypted.pptx decrypted.pptx
~~~

~~~
python ms_offcrypto_tool.py -s priv.pem encrypted.docx decrypted.docx
~~~

{'fraction_non_alphanumeric': 0.11379579111457522, 'fraction_numerical': 0.08573655494933749, 'mean_word_length': 5.452261306532663, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2690252', 'n_tokens_mistral': 551, 'n_tokens_neox': 466, 'n_words': 98}