Same hash for different ids
georgecoca opened this issue · 2 comments
georgecoca commented
Hi,
Is there a reason why I'm getting same hash for different numbers?
$hashids = new Hashids\Hashids('', 6);
$hash = $hashids->encode(7992); // bmOqpe
$hash = $hashids->encode(7904); // bmOQpe
The only difference is that they are case-insensitive. Is this how it's supposed to work?
Thanks.
vinkla commented
The only difference is that they are case-insensitive. Is this how it's supposed to work?
Yes.
georgecoca commented
Alright, thanks. I suppose I need to use a lowercase alphabet in this case.