摘要: NuGet安装System.IO.Compression.ZipFile,注意不是System.IO.Compression 优点:不同于ICSharpCode.SharpZipLib.dll的地方是,这个插件可以直接压缩文件夹,文件夹内的文件自动压缩进去了,ICSharpCode.SharpZip 阅读全文
posted @ 2023-05-30 15:28 张伟大 阅读(116) 评论(0) 推荐(0) 编辑
摘要: NuGet添加引用:ICSharpCode.SharpZipLib.dll 1 /// <summary> 2 /// ZIP:压缩单个文件 3 /// </summary> 4 /// <param name="server_filename">需要压缩的文件(绝对路径)</param> 5 // 阅读全文
posted @ 2023-05-30 11:39 张伟大 阅读(45) 评论(0) 推荐(0) 编辑
摘要: Nuget首先需要添加引用:Portable.BouncyCastle 注意:密钥的开头和结尾的字符,如: BEGIN PUBLIC KEY ,一定要单独一行,不然会报错:未将对象引用设置到对象的实例 1 // GET: Test 2 public ActionResult Index() 3 { 阅读全文
posted @ 2021-08-25 16:27 张伟大 阅读(1396) 评论(0) 推荐(0) 编辑
摘要: Nuget首先需要添加引用:Portable.BouncyCastle 1 /// <summary> 2 /// PEM格式公钥转换成XML格式公钥 3 /// </summary> 4 /// <param name="publicKey">PEM格式公钥,(纯文字字符,注意不带 BEGIN P 阅读全文
posted @ 2021-08-25 14:26 张伟大 阅读(1692) 评论(0) 推荐(0) 编辑
摘要: select * from td left join ( select case_id as sup_case_id , count(*) supervise_number from td_kcdc_case_sup_info group by case_id ) sup on sup.sup_ca 阅读全文
posted @ 2021-07-07 13:13 张伟大 阅读(2659) 评论(0) 推荐(0) 编辑
摘要: 1.查询单列重复: select * from test where name in (select name from test group by name having count (name) > 1) 2.查询多列重复 SELECT a.* FROM test a,( SELECT name 阅读全文
posted @ 2021-05-24 15:27 张伟大 阅读(877) 评论(0) 推荐(0) 编辑
摘要: js中加上:jQuery.support.cors = true; 阅读全文
posted @ 2019-11-11 11:27 张伟大 阅读(145) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// AES加密 /// </summary> /// <param name="text">加密字符</param> /// <param name="password">加密的密码</param> /// <param name="iv">密钥</param> /// <returns></returns> public static string AESEncr 阅读全文
posted @ 2019-08-16 16:31 张伟大 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-06-19 11:45 张伟大 阅读(472) 评论(0) 推荐(0) 编辑
摘要: 在.net 4.5版本下,使用System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile进行MD5加密时,会出现已过时提示,所以需要使用以下方法代替 /// /// 32位MD5加密 /// /// 需要加密的字符串 ///... 阅读全文
posted @ 2019-06-18 15:44 张伟大 阅读(138) 评论(0) 推荐(0) 编辑