很多时候我们得到的私钥只是一个字符串,要是查询 .Net Core 的文档,我们看不到如何能够让 RSA 使用这种形式的私钥。下面的示例代码能解决这个问题:
string GenerateSignature(string md5, string key)
{
using RSA rsa = RSA.Create();
rsa.ImportRSAPrivateKey(Convert
很多时候我们得到的私钥只是一个字符串,要是查询 .Net Core 的文档,我们看不到如何能够让 RSA 使用这种形式的私钥。下面的示例代码能解决这个问题:
string GenerateSignature(string md5, string key)
{
using RSA rsa = RSA.Create();
rsa.ImportRSAPrivateKey(Convert