问题描述
试图加密文本:-“Michael Fehr”或“carpet”使用 hashids,它返回空白。
代码:-
$hashids = new hashids\hashids("mysalt");
$hashed_text = $hashids->encode_hex(bin2hex("Michael Fehr"));
echo "<script>alert('".$hashed_text."')</script>";
也尝试过:- $hashed_interestrate = $hashids->encode_hex("63706b64");
,但不起作用。
如果我尝试使用文本:-“每次点击费用”,它就会起作用。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)