随笔- 19
文章- 1
评论- 33
阅读-
61530
随笔分类 - .net core
.net core微服务之服务发现
摘要:一:nacos https://nacos.io/docs/latest/what-is-nacos/ https://github.com/alibaba/nacos 二:consul https://developer.hashicorp.com/consul/docs?product_inte
阅读全文
.net core微服务之网关
摘要:网关: 一:apisix doc:https://apisix.apache.org/zh/docs/apisix/getting-started/README/ github:https://github.com/apache/apisix 二:Kong github:https://github
阅读全文
.net core 常用rsa 加签类
摘要:using Org.BouncyCastle.Crypto; using Org.BouncyCastle.Crypto.Parameters; using Org.BouncyCastle.Math; using Org.BouncyCastle.OpenSsl; using Org.BouncyCastle.Pkcs; using Org.BouncyCastle.Security; usi...
阅读全文
.net core 支付宝,微信支付 三
摘要:支付回调: 获取HttpRequest的body内容,之前使用Request.Form有时候数据请求不到(可能是跟.net core 版本有关?) 获取到回调内容,接下来按照支付平台来处理。 支付宝回调: 将返回的数据分割开来,decode后填装到字典里后,获取sign值等相关数据后,剔除sign及
阅读全文
.net core 支付宝,微信支付 二
摘要:源码: https://github.com/aspros-luo/Qwerty.Payment/tree/develop 今天开始微信支付 微信支付坑比较多,支付流程也不太一样,微信支付需要先生成预支付单,然后再具体调用 具体参考微信sdk 1:微信支付主体,用于存储键值字典,等相关方法 inte
阅读全文
.net core 支付宝,微信支付 一
摘要:源码: https://github.com/aspros-luo/Qwerty.Payment/tree/develop 支付宝支付:参考支付宝sdk及文档,https://docs.open.alipay.com/194 前言: 目前实现支付宝Native支付,手机网站支付,App支付,支付回调
阅读全文
.net core AES加密解密及RSA 签名验签
摘要:引用 AES加密 AES解密 RSA签名 需要引用nuget包 BouncyCastle.NetCore RSA 验签 分割线 此代码是在framework4.6.2下实现的 github:https://github.com/aspros-luo/Qwerty.Encrypt.Demo 以上 :)
阅读全文
.net core 使用webservice
摘要:开发环境在vs2017,2015 暂时没有试过 1.在扩展更新中添加Microsoft WCF Web Service Reference Provider 2.在core项目中添加链接的服务 3.键入对应的webservice地址,跳转后显示对应服务 4.点击完成后等待加载完成后会在对应的项目下会
阅读全文
.net core 使用X509 私钥加密请求
摘要:1.获取证书路径 2.数据加密 .net core 中使用gbk encoding需要调用Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); nuget包中使用System.Text.Encoding.CodePages 3.
阅读全文
.net core mysql entity映射时字符串被截断
摘要:参考地址:https://stackoverflow.com/questions/40833262/net-core-entity-framework-mysql-string-fields-store-255-symbols-only mysql 字段 设置varchar ,text,longte
阅读全文
VS 2017 RC .net core ef+ MySql 出现错误
摘要:在di注入时会出现错误 MySql.Data.EntityFrameworkCore.Storage.Internal.MySQLCommandBuilderFactory..ctor(ISensitiveDataLogger<RelationalCommandBuilderFactory> log
阅读全文
IdentityServer4 简单使用,包括api访问控制,openid的授权登录,js访问
摘要:写在前面 先分享一首数摇:http://music.163.com/m/song?id=36089751&userid=52749763 其次是:对于identityServer理解并不是特别深刻,目前只是能简单的应用,里面一些具体设置以后可能慢慢更新到本文中。 最后:一张大图 IdentitySe
阅读全文