签名证书
大熊程序猿
不积跬步无以至千里不积小流无以成江海
展开
-
netcore 集成jwt 身份验证
一、项目Jwt.NETDemo。二、Program.cs。原创 2022-10-16 11:56:07 · 296 阅读 · 0 评论 -
netcore jwt 生成
一、新建项目Jwt.NETDemo。二、生成签公钥和私钥。原创 2022-10-16 11:39:37 · 416 阅读 · 0 评论 -
aes-cbc-128 对称加解密C#和php
TestAES.php<?php$aes = new CryptAES();$aes->require_pkcs5();$res = $aes->encrypt("123321");echo "原始数据:123321</br>";echo "加密:";echo $res.'</br>';$res = $aes->decrypt($res);echo "解密:";echo $res;class CryptAES{ prot原创 2021-08-04 22:48:01 · 842 阅读 · 0 评论 -
使用alipay.sdk生成RSA和RSA2加密解密算法工具类
https://miniu.alipay.com/keytool/create原创 2021-06-26 14:12:07 · 307 阅读 · 0 评论 -
DES加密解密+MD5 加密
using System;using System.IO;using System.Security.Cryptography;using System.Text;{ /// <summary> ///加密/解密类。 /// </summary> public class EncryptUtil { pr...原创 2019-10-29 09:54:14 · 232 阅读 · 0 评论 -
生成RSA公私钥对,公钥加密私钥解密,私钥加密公钥解密
Nuget: <PackageReference Include="BouncyCastle" Version="1.8.5" /> <PackageReference Include="Newtonsoft.Json" Version="12.0.2" /> <PackageReference Include="System.Securit...原创 2019-10-29 08:46:21 · 1865 阅读 · 0 评论 -
使用SHA256来签名和验签.netcore详解
生成证书:运行PowerShell:makecert -r -pe -n "CN=IdentityServer Company" -b 01/01/2005 -e 01/01/2020 -sky exchange -a sha256 -len 2048 -ss my 运行MMC:导出私钥和公钥导出private.pfx成功。再导出公钥:导出公钥成功...原创 2019-10-22 22:43:49 · 3259 阅读 · 2 评论 -
创建证书
vs的tool命令makecert生成数字签名证书打开VS2019Tool(在开始菜里):Developer PowerShell for VS 2019IdentityServer4 上生成证书格式如下:makecert -r -pe -n "CN=IdentityServer Company" -b 01/01/2005 -e 01/01/2020 -sky exchange -a ...原创 2019-10-12 22:03:10 · 596 阅读 · 0 评论