0
我移植一個.NET 4.5的項目到.NET的核心,我被吸進的功能...移植x509證書和CryptoConfig從.NET 4.5到.NET核心
public bool IsMessageSignatureValid(byte[] bytes, string signature) {
X509Certificate2 certificate = GetX509Certificate();
RSACryptoServiceProvider rsa = certificate.PublicKey.Key as RSACryptoServiceProvider;
return rsa.VerifyData(bytes, CryptoConfig.MapNameToOID("SHA1"), Convert.FromBase64String(signature));
}
- 有」再在
System.Security.Cryptography.X509Certificates.PublicKey
.Net的核心沒有Key
財產 - 沒有
CryptoConfig
類System.Security.Cryptography .Net的核心
任何人都可以給我一些想法如何到FI x它?非常感謝
是的,我剛剛發現那分鐘前,反正謝謝! – user163695
你救了我的一天。謝謝。 –