2013年11月6日
摘要: public class ZipBin { public byte[] bytes; //C#读取压缩文件(将压缩文件转换为二进制 public void GetZipToByte(string inpath) { FileStream fs = new FileStream(inpath, FileMode.Open); bytes = new byte[fs.Length]; int count = Convert.ToInt32(fs.Length); ... 阅读全文
posted @ 2013-11-06 16:47 aweifly 阅读(563) 评论(0) 推荐(0) 编辑
摘要: public class Encrypt { public static byte[] ToEncrypt(string encryptKey, byte[] P_byte_data) { try { byte[] P_byte_key = Encoding.Unicode.GetBytes(encryptKey);//将密钥字符串转换为字节序列 MemoryStream P_Stream_MS = new MemoryStream(); //创建内存流对象... 阅读全文
posted @ 2013-11-06 16:41 aweifly 阅读(1945) 评论(0) 推荐(0) 编辑