Was trying to encrypt text:- "Michael Fehr" or "cpkt" using hashids, it returns blank.
Code:-
$hashids = new Hashids\Hashids("mysalt"); $hashed_text = $hashids->encode_hex(bin2hex("Michael Fehr")); echo "<script>alert('".$hashed_text."')</script>"; If I try text:- "cpk", it's working.
https://stackoverflow.com/questions/65966294/hashid-encryption-returning-no-value-in-php January 30, 2021 at 05:06PM
没有评论:
发表评论