点击或拖拽改变大小

RSAHelperGetPublicKeyFromRSA 方法

从RSA的算法对象里,获取到PEM格式的原始公钥数据,如果需要存储,或是显示,只需要 Convert.ToBase64String 方法
Obtain the original public key data in PEM format from the RSA algorithm object. If you need to store or display it, you only need the Convert.ToBase64String method

命名空间:  HslCommunication.Core.Security
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public static byte[] GetPublicKeyFromRSA(
	RSACryptoServiceProvider rsa
)

参数

rsa
类型:System.Security.CryptographyRSACryptoServiceProvider
RSA 算法的加密解密对象

返回值

类型:Byte
原始的公钥数据
参见