摘要:
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); ... 阅读全文
摘要:
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(); //创建内存流对象... 阅读全文
![](/skins/gray/images/separator.gif)