Closed shanezhiu closed 4 years ago
$salt = random_bytes(mt_rand(6, 11)); $inneralCoding = \mb_detect_encoding($salt); $hashIds = new Hashids($salt);
When$inneralCoding is false, a new instance Hashids will be failed.
$inneralCoding
false
Hashids
is there neccessary to ensure the salt is UTF-8 encoding?
Thanks for your suggestion @shanezhiu but we currently don't have any plans to not ensure UTF-8 encoding.
ENV
code snippet
question
When
$inneralCoding
isfalse
, a new instanceHashids
will be failed.is there neccessary to ensure the salt is UTF-8 encoding?