top-think / think-captcha

thinkphp 验证码类库

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

这个地方为什么要截取md5呢

liuwave opened this issue · comments

private function authcode($str)

/* 加密验证码 */
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位呢? 请大佬解惑,谢谢。