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.2.0.0 (12.2.0.0)
语法public static byte[] GetPublicKeyFromRSA(
RSACryptoServiceProvider rsa
)
Public Shared Function GetPublicKeyFromRSA (
rsa As RSACryptoServiceProvider
) As Byte()
public:
static array<unsigned char>^ GetPublicKeyFromRSA(
RSACryptoServiceProvider^ rsa
)
static member GetPublicKeyFromRSA :
rsa : RSACryptoServiceProvider -> byte[]
参数
- rsa
- 类型:System.Security.CryptographyRSACryptoServiceProvider
RSA 算法的加密解密对象
返回值
类型:
Byte原始的公钥数据
参见