百度搜索一下 不行再用google搜索一下 估计比较困难

解决方案 »

  1.   

    用c#解密 用c++ des 加密的数据
      

  2.   

    public string DesDecrypt(string strText, byte[] sKey)
        {
         try
         { 
             byKey = sKey;
             inputByteArray = strToToHexByte(strText);
             DESCryptoServiceProvider des = new DESCryptoServiceProvider();
             des.Key = sKey;
             des.Mode = CipherMode.ECB;         ICryptoTransform desencrypt = des.CreateDecryptor();
             byte[] result = desencrypt.TransformFinalBlock(inputByteArray, 0, inputByteArray.Length);
             return Encoding.UTF8.GetString(result);
         }
         catch (System.Exception ex)
         {
             throw ex;
         }
        }
    密匙:byte[] Keys = { 0xeb, 0x91, 0x70, 0xfc, 0x03, 0x59, 0xc5, 0xad };
    加密后:d0175abad0e0e995
      

  3.   

    byte[] Keys = { 0xeb, 0x91, 0x70, 0xfc, 0x03, 0x59, 0xc5, 0xad };
    转成字符串:霊p?Y怒 ,乱码