ldap_salted_sha1 assumes a salt length of 4 bytes, when sometimes it can be different lengths
Created originally on Bitbucket by Anonymous
===== //(Imported from Google Code)//
==== [[https://code.google.com/u/112099101569953169394|misterpib]] wrote: What steps will reproduce the problem?\1. Try ldap_salted_sha1.identify on a hash like '{SSHA}UDrXYV0JVaVPgiydBmHZpWnHamxsb25nc2FsdA==' ('hello' with a salt of 'longsalt', made with '{SSHA}' + (sha1('hello' + 'longsalt').digest() + 'longsalt').encode('base64').strip())\2. See that it returns False
What is the expected output? What do you see instead?
It should return true, and be able to verify passwords against the hash.
What version of the product are you using?
Latest released version from PyPI
Please provide any additional information below.
Different systems generate hashes with different salt lengths, so it would be nice to be able to use those with passlib.