2021年8月25日

JS中的 Base64 encode / decode 加密解密

摘要: /** * * Base64 encode / decode * http://www.webtoolkit.info/ * **/ var Base64 = { // private property _keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijk 阅读全文

posted @ 2021-08-25 14:25 itjeff 阅读(1839) 评论(0) 推荐(0) 编辑

.net core web api basic auth

摘要: 1、自定义中间件 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 阅读全文

posted @ 2021-08-25 11:34 itjeff 阅读(200) 评论(0) 推荐(0) 编辑

Web APi之认证(Authentication)两种实现方式【二】

摘要: 前言 上一节我们详细讲解了认证及其基本信息,这一节我们通过两种不同方式来实现认证,并且分析如何合理的利用这两种方式,文中涉及到的基础知识,请参看上一篇文中,就不再叙述废话。 序言 对于所谓的认证说到底就是安全问题,在Web API中有多种方式来实现安全,【accepted】方式来处理基于IIS的安全 阅读全文

posted @ 2021-08-25 11:09 itjeff 阅读(556) 评论(0) 推荐(0) 编辑

使用Base64进行string的加密和解密

摘要: //base64加解密 string jiaMiPwd = Convert.ToBase64String( System.Text.Encoding.Default.GetBytes(“oldPwd”); string oldPwd = System.Text.Encoding.Default.Ge 阅读全文

posted @ 2021-08-25 10:54 itjeff 阅读(1167) 评论(0) 推荐(0) 编辑

导航