userName:515249
passWord:250805
timestamp:1229111841 SP->SMG:
00 00 00 27 00 00 00 01 00 00 00 01 35 31 35 32
34 39 37 fb 1a d0 bf 7b 09 4e 65 2f 96 8c 29 56
a1 22 20 49 42 c2 21
/**********************************************************************************************
Total_Length: <39>, Command_Id: <CMPP_CONNECT(0x00000001)>, Sequence_Id: <1>.
Source_Addr: <515249>
AuthenticationSource: <37 fb 1a d0 bf 7b 09 4e 65 2f 96 8c 29 56 a1 22 >
Version: <32>
Timestamp: <1229111841>
SMG回应:00 00 00 1e 80 00 00 01 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20
status:03
说明认证错,可是我研究了一下我的认证代码并无发现不妥之处,代码如下:
private Byte[] getMd5_Connect(string m_Timestamp)
{
int iLength = 25 + sharedSecret.Length;
Byte[] btContent = new Byte[iLength];
Array.Clear(btContent, 0, iLength);
int iPos = 0;
foreach (char ch in this.SP_ID)
{
btContent[iPos] = (Byte)ch;
iPos++;
}
iPos += 9;
foreach (char ch in sharedSecret)
{
btContent[iPos] = (Byte)ch;
iPos++;
} foreach (char ch in m_Timestamp)
{
btContent[iPos] = (Byte)ch;
iPos++;
}
MD5 md5 = new MD5CryptoServiceProvider();
return md5.ComputeHash(btContent);
}
请问各位大侠我错在了什么地方,请指正,如有误最好能给我一个正确的认证码结果,谢谢!!!
passWord:250805
timestamp:1229111841 SP->SMG:
00 00 00 27 00 00 00 01 00 00 00 01 35 31 35 32
34 39 37 fb 1a d0 bf 7b 09 4e 65 2f 96 8c 29 56
a1 22 20 49 42 c2 21
/**********************************************************************************************
Total_Length: <39>, Command_Id: <CMPP_CONNECT(0x00000001)>, Sequence_Id: <1>.
Source_Addr: <515249>
AuthenticationSource: <37 fb 1a d0 bf 7b 09 4e 65 2f 96 8c 29 56 a1 22 >
Version: <32>
Timestamp: <1229111841>
SMG回应:00 00 00 1e 80 00 00 01 00 00 00 01 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20
status:03
说明认证错,可是我研究了一下我的认证代码并无发现不妥之处,代码如下:
private Byte[] getMd5_Connect(string m_Timestamp)
{
int iLength = 25 + sharedSecret.Length;
Byte[] btContent = new Byte[iLength];
Array.Clear(btContent, 0, iLength);
int iPos = 0;
foreach (char ch in this.SP_ID)
{
btContent[iPos] = (Byte)ch;
iPos++;
}
iPos += 9;
foreach (char ch in sharedSecret)
{
btContent[iPos] = (Byte)ch;
iPos++;
} foreach (char ch in m_Timestamp)
{
btContent[iPos] = (Byte)ch;
iPos++;
}
MD5 md5 = new MD5CryptoServiceProvider();
return md5.ComputeHash(btContent);
}
请问各位大侠我错在了什么地方,请指正,如有误最好能给我一个正确的认证码结果,谢谢!!!
解决方案 »
- Outlook2007中,怎么把Ribbon(XML)中定义的菜单添加右键
- asp.net 数据库 按html显示
- 奇怪问题 get请求
- 关于中国移动mas机的配置
- C#2008中使用SerialPort.DataReceived事件问题求助
- SQL2005服务器资源管理器 在那呀
- 请教引用WebService后的问题!
- 如何在c#中操作word书签?
- 使用office的MODI组件编写名片识别程序
- 可以在Timer1_Tick事件里面写Button1_Click事件么?这样写怎么不对?
- 如何用set get方法给属性赋值
- 我想获取qq查找窗口下某一个控件的句柄,但不知道它具体的Classname怎么解决
鉴权的问题,:用户名,密码,以及网关设置的IP地址都要正确才行