-
Notifications
You must be signed in to change notification settings - Fork 96
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
pysmb-provided MD4 implementation for Python3 is broken #196
Comments
I was able to make it work, although the code does look weird for me. Seems that As far as I can see, all it works because Since
A pull-request is proposed in #198 After it, the tests start to pass again:
|
I forgot to mention the root cause: I hit this issue in Ubuntu 22.04 which has TLS 3 installed where MD4 algorithm is deprecated. |
looking into this too.
FWIW, we think this was the breaking change in 3.10. from the change docs: "Builtin and extension functions that take integer arguments no longer accept Decimals, Fractions and other objects that can be converted to integers only with a loss (e.g. that have the int() method but do not have the index() method). (Contributed by Serhiy Storchaka in bpo-37999.) |
This |
pysmb 1.2.8 has been released which might relieve this issue. |
It works. Thanks, @miketeo ! |
If there is no MD4 hash in hashlib then pysmb provides it's own pure Python class instead. It produces a wrong hash what render the lib unusable.
Test case:
pysmb version:
1.2.7
Python 3.8.13
The text was updated successfully, but these errors were encountered: