/** * 加密密码 * @param string $input * @return string */ private function hashpwd($input) { self::$salt = $GLOBALS['config']['pwdsalt']; return md5(strtolower($input) . sha1($input . self::$salt . strtoupper($input)) . self::$salt); }