vinkla / laravel-hashids

A Hashids bridge for Laravel
MIT License
1.99k stars 173 forks source link

Length of the generated ids #153

Closed AlbertoSinigaglia closed 3 years ago

AlbertoSinigaglia commented 3 years ago

Hi, I would like to know if there is an estimate of how long the resulting ID would be

I mean, since it's guarantee that there will be no collision, then the length of the generated ID must be infinite, but let's say that I encrypt numbers up to 40k, is there a guarantee that the resulting ids won't be longer than N letters?

vinkla commented 3 years ago

https://github.com/vinkla/hashids/issues/134 https://github.com/vinkla/hashids/issues/74