vinkla/hashids

encode_hex nt working in PHP

NamarsahaM opened this issue · 2 comments

It returns blank when I use:

$hashids = new Hashids\Hashids();
$hashed_text = $hashids->encode_hex("63706b64");

echo $hashed_text;

But it gets hashed when I try:-

$hashids = new Hashids\Hashids();
$hashed_text = $hashids->encode_hex("63706b");

echo $hashed_text;

Thanks for reporting! Please provide a failing test case in a pull request.