RSAHelperEncryptLargeDataByRSA 方法 |
对原始字节的数据进行加密,不限制长度,因为RSA本身限制了117字节,所以此处进行数据切割加密。
Encrypt the original byte data without limiting the length, because RSA itself limits 117 bytes, so the data is cut and encrypted here.
命名空间:
HslCommunication.Core.Security
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.2.0.0 (12.2.0.0)
语法 public static byte[] EncryptLargeDataByRSA(
RSACryptoServiceProvider provider,
byte[] data
)
Public Shared Function EncryptLargeDataByRSA (
provider As RSACryptoServiceProvider,
data As Byte()
) As Byte()
public:
static array<unsigned char>^ EncryptLargeDataByRSA(
RSACryptoServiceProvider^ provider,
array<unsigned char>^ data
)
static member EncryptLargeDataByRSA :
provider : RSACryptoServiceProvider *
data : byte[] -> byte[]
参数
- provider
- 类型:System.Security.CryptographyRSACryptoServiceProvider
RSA公钥对象 - data
- 类型:SystemByte
等待加密的原始数据
返回值
类型:
Byte加密之后的结果信息
参见