随笔分类 -  c#

C#文件压缩
摘要:写数据 public static void FileZip() { string filePath = "D:\\测试"; string fileName = filePath + "\\test.txt"; if (!Directory.Exists(filePath)) { Directory 阅读全文

posted @ 2024-02-05 10:26 棽犹 阅读(55) 评论(0) 推荐(0)

c#http请求
摘要:一、HttpWebRequest public string Post(string url, string data) { Stream dataStream = null; HttpWebRequest request = null; HttpWebResponse response = nul 阅读全文

posted @ 2024-02-05 09:46 棽犹 阅读(166) 评论(0) 推荐(0)

C#加密算法
摘要:一、MD5加密 /// <summary> /// MD5_16位加密 /// </summary> public static string GetMD5_16(string value) { string md5Str = string.Empty; MD5 md5 = new MD5Crypt 阅读全文

posted @ 2023-12-12 11:35 棽犹

导航