vinkla/hashids

Same hash for different ids

georgecoca opened this issue · 2 comments

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.

The only difference is that they are case-insensitive. Is this how it's supposed to work?

Yes.

Alright, thanks. I suppose I need to use a lowercase alphabet in this case.