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

md4 hash type not supported on some platform #19

Open
GoogleCodeExporter opened this issue Mar 19, 2015 · 0 comments
Open

md4 hash type not supported on some platform #19

GoogleCodeExporter opened this issue Mar 19, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. build and install python 2.6.5 on suse linux
2. run the following python code
   digest = hashlib.new('md4', 'password'.encode('utf-16le')).digest()
3. you will see the following exception
  ... 
  File "/home/ejiaden/usr/local/lib/python2.6/hashlib.py", line 87, in __py_new
    return __get_builtin_constructor(name)(string)
  File "/home/ejiaden/usr/local/lib/python2.6/hashlib.py", line 80, in __get_builtin_constructor
    raise ValueError, "unsupported hash type"
ValueError: unsupported hash type


What is the expected output? What do you see instead?
you will see the exception that md4 hash type is not supported

What version of the product are you using? On what operating system?
python-ntlm revision 77, python 2.6.5 built on suse linux 2.6.16.60-0.21-smp

Please provide any additional information below.

for the quick patch, you need to install py-md4 from 
http://barryp.org/software/py-md4/ and apply the attached patch file ntlm.py

Original issue reported on code.google.com by jtd...@gmail.com on 10 Aug 2010 at 4:36

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant