hashids-python
hashids-python copied to clipboard
Two unique IDs convert back to the same integer
Hi there -- I've found a case were two unique ids decode to the same integer.
As far as I can tell this won't cause any problems for me, I'd just like to understand why this is possible and if it's expected. I've tested the opposite direction (running through a integers to a very high value to ensure there are no conflicts when encoding)
Unfortunately, not sure how to reproduce it here without posting what the integers convert to on my side and the salt I use.
Can you please check whether this also happens with the JS implementation.
To be completely honest, I haven’t looked at the code in quite some time, and don’t have any idea what could be wrong from the top of my head.