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

PBKDF2 hash is not 32 bytes long on 64bit #34

Closed
tloris opened this Issue Apr 26, 2013 · 5 comments

Comments

Projects
None yet
3 participants
@tloris

tloris commented Apr 26, 2013

hey.
I'm new to all of this; I usually just use the tools provided by awesome ppl like you, so I'm not sure how relevant this is.

As part of a project I am working on your library was included, and there was no problem on 32bit python2.7 version at work. But at home I'm using a 64bit one and I kept getting
"RuntimeError("The PBKDF2 hash is not 32 bytes long. The pycrypto library might be missing.")".
I looked around a bit and figured the problem was the hash was too long, not to short, so I shortened it. It works (apparently) flawlessly now. Since couple of ppl on the same project had this problem, and didn't find any solution on the internet, I thought I might mention this here.

@ghost ghost assigned FedericoCeratto Apr 26, 2013

@FedericoCeratto

This comment has been minimized.

Show comment
Hide comment
@FedericoCeratto

FedericoCeratto Apr 26, 2013

Owner

Thank you for your bug report. I replicated the problem on a 64bit system, however I got an empty hash, not a longer one.

Owner

FedericoCeratto commented Apr 26, 2013

Thank you for your bug report. I replicated the problem on a 64bit system, however I got an empty hash, not a longer one.

@shie-erlich

This comment has been minimized.

Show comment
Hide comment
@shie-erlich

shie-erlich May 6, 2013

i'm seeing a similar problem, but in my case - the hash is empty ('').
any hints? (running on a macbook air 10.8.3)

thanks!

shie-erlich commented May 6, 2013

i'm seeing a similar problem, but in my case - the hash is empty ('').
any hints? (running on a macbook air 10.8.3)

thanks!

@shie-erlich

This comment has been minimized.

Show comment
Hide comment
@shie-erlich

shie-erlich May 6, 2013

not sure why, but uninstall and reinstall pycrypto seem to have fixed the problem
?!

shie-erlich commented May 6, 2013

not sure why, but uninstall and reinstall pycrypto seem to have fixed the problem
?!

FedericoCeratto added a commit that referenced this issue May 11, 2013

@FedericoCeratto

This comment has been minimized.

Show comment
Hide comment
@FedericoCeratto

FedericoCeratto May 11, 2013

Owner

Empty hashes are due to a bug in Beaker - see patch in bbangert/beaker#42
The fact that reinstalling pycrypto fixes that could be due to Beaker packaging/installation issues.

Owner

FedericoCeratto commented May 11, 2013

Empty hashes are due to a bug in Beaker - see patch in bbangert/beaker#42
The fact that reinstalling pycrypto fixes that could be due to Beaker packaging/installation issues.

FedericoCeratto added a commit that referenced this issue May 11, 2013

@FedericoCeratto

This comment has been minimized.

Show comment
Hide comment
@FedericoCeratto

FedericoCeratto May 11, 2013

Owner

@tloris - how long was the hash that you got? Was Cork running on Jython? Can you provide steps to reproduce it?

Thanks

Owner

FedericoCeratto commented May 11, 2013

@tloris - how long was the hash that you got? Was Cork running on Jython? Can you provide steps to reproduce it?

Thanks

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