![]() ![]() load_key ( password = "Passw0rd" ) # Use password file. BytesIO () with open ( "encrypted.xlsx", "rb" ) as f : file = msoffcrypto. ![]() close ()īasic usage (in-memory): import msoffcrypto import io import pandas as pd decrypted = io. load_key ( password = "Passw0rd" ) # Use password with open ( "decrypted.docx", "wb" ) as f : file. Password and more key types are supported with library functions.īasic usage: import msoffcrypto encrypted = open ( "encrypted.docx", "rb" ) file = msoffcrypto. Test if the file is encrypted or not (exit code 0 or 1 is returned): msoffcrypto-tool document.doc -test -v Password is prompted if you omit the password argument value: $ msoffcrypto-tool encrypted.docx decrypted.docx -p ContentsĮxamples As CLI tool (with password) msoffcrypto-tool encrypted.docx decrypted.docx -p Passw0rd Msoffcrypto-tool (formerly ms-offcrypto-tool) is Python tool and library for decrypting encrypted MS Office files with password, intermediate key, or private key which generated its escrow key. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |