hashids-python icon indicating copy to clipboard operation
hashids-python copied to clipboard

Two unique IDs convert back to the same integer

Open timworx opened this issue 3 years ago • 1 comments

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.

timworx avatar Apr 27 '21 14:04 timworx

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.

davidaurelio avatar Apr 29 '21 12:04 davidaurelio