/// <summary>
        /// 验证密码
        /// </summary>
        /// <param name="nSector"></param>
        /// <param name="strKey"></param>
        /// <returns></returns>
        private int AuthKey(int nSector, string strKey)
        {
            int nReturn = -1;

            byte[] szKey1  = new byte[17];
            byte[] szKey2  = new byte[7];
            int    i       = 0;
            int    nKeyLen = strKey.Length;

            if (nKeyLen != 12)
            {
                return(-1);
            }

            if (nSector < 1 || nSector > 15)
            {
                return(-1);
            }

            for (i = 0; i < nKeyLen; i++)
            {
                if (strKey[i] >= '0' && strKey[i] <= '9')
                {
                    continue;
                }
                if (strKey[i] <= 'a' && strKey[i] <= 'f')
                {
                    continue;
                }
                if (strKey[i] <= 'A' && strKey[i] <= 'F')
                {
                    continue;
                }
            }
            if (i != nKeyLen)
            {
                return(-1);
            }
            szKey1 = Encoding.ASCII.GetBytes(strKey);
            if (m_bIs64BitOperatingSystem)
            {
                //64位系统
                if (USB_SWIPER == m_nComID)
                {
                    CQTCommonForUsb.a_hex(szKey1, szKey2, 12);
                    nReturn = CQTCommonForUsb.rf_load_key(m_nEquipDesc, m_nAuthKeyMode, nSector, szKey2);
                    if (nReturn != 0)
                    {
                        return(nSector);
                    }
                    nReturn = CQTCommonForUsb.rf_authentication(m_nEquipDesc, m_nAuthKeyMode, nSector);
                }
                else
                {
                    CQTCommon.a_hex(szKey1, szKey2, 12);
                    nReturn = CQTCommon.rf_load_key(m_nEquipDesc, m_nAuthKeyMode, nSector, szKey2);
                    if (nReturn != 0)
                    {
                        return(nSector);
                    }
                    nReturn = CQTCommon.rf_authentication(m_nEquipDesc, m_nAuthKeyMode, nSector);
                }
            }
            else
            {
                //其他位系统
                if (USB_SWIPER == m_nComID)
                {
                    CQTCommonForUsb.a_hex(szKey1, szKey2, 12);
                    nReturn = CQTCommonForUsb.rf_load_key(m_nEquipDesc, m_nAuthKeyMode, nSector, szKey2);
                    if (nReturn != 0)
                    {
                        return(nSector);
                    }
                    nReturn = CQTCommonForUsb.rf_authentication(m_nEquipDesc, m_nAuthKeyMode, nSector);
                }
                else
                {
                    CQTCommon.a_hex(szKey1, szKey2, 12);
                    nReturn = CQTCommon.rf_load_key(m_nEquipDesc, m_nAuthKeyMode, nSector, szKey2);
                    if (nReturn != 0)
                    {
                        return(nSector);
                    }
                    nReturn = CQTCommon.rf_authentication(m_nEquipDesc, m_nAuthKeyMode, nSector);
                }
            }
            return(nReturn);
        }