RSAHelperGetPrivateKeyFromRSA 方法 |
从RSA的算法对象里,获取到PEM格式的原始私钥数据,如果需要存储,或是显示,只需要 Convert.ToBase64String 方法
Obtain the original private 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[] GetPrivateKeyFromRSA(
RSACryptoServiceProvider rsa
)
Public Shared Function GetPrivateKeyFromRSA (
rsa As RSACryptoServiceProvider
) As Byte()
public:
static array<unsigned char>^ GetPrivateKeyFromRSA(
RSACryptoServiceProvider^ rsa
)
static member GetPrivateKeyFromRSA :
rsa : RSACryptoServiceProvider -> byte[]
参数
- rsa
- 类型:System.Security.CryptographyRSACryptoServiceProvider
RSA 算法的加密解密对象
返回值
类型:
Byte原始的私钥数据
参见