think-captcha
think-captcha copied to clipboard
这个地方为什么要截取md5呢
https://github.com/top-think/think-captcha/blob/54c8a51552f99ff9ea89ea9c272383a8f738ceee/src/Captcha.php#L314
/* 加密验证码 */
private function authcode($str)
{
$key = substr(md5($this->seKey), 5, 8);
$str = substr(md5($str), 8, 10);
return md5($key . $str);
}
为什么要截取6-14位和 9-18位呢? 请大佬解惑,谢谢。