Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xls97.decrypt - Missing type attribute #70

Closed
wit0k opened this issue Jan 18, 2022 · 3 comments
Closed

xls97.decrypt - Missing type attribute #70

wit0k opened this issue Jan 18, 2022 · 3 comments
Labels

Comments

@wit0k
Copy link

wit0k commented Jan 18, 2022

Hello,

The file .../site-packages/msoffcrypto/format/xls97.py:

class Xls97File has a problem in "decrypt" function.

Sometimes it fails on "if self.type ==" when self has NO "type" attribute...

A nasty workaround is to try it within Try catch, before real evaluation and return if it fails, but it would be nice to prevent it in code which populates the type...

Thx

@nolze
Copy link
Owner

nolze commented Jan 18, 2022

Thank you for reporting!
Now msoffcrypto.exceptions.DecryptionError is raised for that (in master, not yet released.) (e6f1a34#diff-d56dcacb58a9b50a4ea6d4e6dda0e5e4907bc8071795b15ca9f9472a93035158R589)
Note that msoffcrypto supports only RC4 and RC4 CryptoAPI encryptions for xls. Let me know if you're working on something else.

@wit0k
Copy link
Author

wit0k commented Jan 22, 2022

Thank you.

@nolze
Copy link
Owner

nolze commented Jan 23, 2022

Released in v5.0.0.

@nolze nolze closed this as completed Jan 23, 2022
@nolze nolze removed the in progress label Jan 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants