2011年6月30日

C#PDU编码8BIT加密解密函数和短信GSM加密解密用到的不错的一个类

摘要: 原文地址:http://www.wangchao.net.cn/bbsdetail_50338.htmlusing System;using System.Collections.Generic;using System.Linq;using System.Text;namespace SmsTest{ /// /// By popcorn 2004.5。 /// cnpopcorn@hotmail.com /// public class CNText { public CNText() { } /// /// 编码格式 /// public enum GSMCode { Bit7 ... 阅读全文

posted @ 2011-06-30 14:16 风灵溪清 阅读(375) 评论(0) 推荐(0) 编辑

C#PDU编码UCS2加密解密函数

摘要: 原文地址:http://www.cnblogs.com/ycdx2001/archive/2011/04/24/2026468.html //////UCS2解码//////UCS2源串///解码后的UTF-16BE字符串publicstaticstringDecodeUCS2(stringsrc){stringdecucs=src.Remove(src.IndexOf("/r"));stringpstr="^[0-9a-fA-F]+$";if(!Regex.IsMatch(decucs,pstr)){return"非法字符串无法解析!&quo 阅读全文

posted @ 2011-06-30 10:04 风灵溪清 阅读(292) 评论(0) 推荐(0) 编辑

导航