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

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

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

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

tloris opened this issue Apr 26, 2013 · 5 comments
Assignees
Labels
Milestone

Comments

@tloris
Copy link

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
Copy link
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.

@shie-erlich
Copy link

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
Copy link

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

FedericoCeratto pushed a commit that referenced this issue May 11, 2013
@FedericoCeratto
Copy link
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.

FedericoCeratto pushed a commit that referenced this issue May 11, 2013
@FedericoCeratto
Copy link
Owner

@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
Labels
Projects
None yet
Development

No branches or pull requests

3 participants