public override bool doEncode(NetWriteBuffer DataOut) { DataOut.PutByte(m_nRound); DataOut.PutByte(m_nKeyRank); DataOut.PutUInt(m_nMark); string strSrcCode = m_strMD5Code; strSrcCode += m_nRound; strSrcCode += m_nKeyRank; strSrcCode += m_nMark; DataOut.PutUShort((ushort)m_lstRoundRank.Count); for (int i = 0; i < m_lstRoundRank.Count; ++i) { DataOut.PutByte(m_lstRoundRank[i]); strSrcCode += m_lstRoundRank[i]; } string strCheckCode = XQMD5.GetByteMd5String(ASCIIEncoding.ASCII.GetBytes(strSrcCode)); DataOut.PutString(strCheckCode); return(true); }
public override bool doEncode(NetWriteBuffer DataOut) { DataOut.PutUInt(m_nMark); DataOut.PutInt(m_nSpecial); DataOut.PutByte(m_nRound); string strSrcCode = m_strMD5Code; strSrcCode += m_nMark; strSrcCode += m_nSpecial; strSrcCode += m_nRound; string strCheckCode = XQMD5.GetByteMd5String(ASCIIEncoding.ASCII.GetBytes(strSrcCode)); DataOut.PutString(strCheckCode); return(true); }