点击或拖拽改变大小

HslExtensionEncryptLargeData 方法

对原始字节的数据进行加密,不限制长度,因为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
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.1.1.0 (12.1.1.0)
语法
public static byte[] EncryptLargeData(
	this RSACryptoServiceProvider rsa,
	byte[] data
)

参数

rsa
类型:System.Security.CryptographyRSACryptoServiceProvider

[缺少 "M:HslCommunication.HslExtension.EncryptLargeData(System.Security.Cryptography.RSACryptoServiceProvider,System.Byte[])" 的 <param name="rsa"/> 文档]

data
类型:SystemByte
等待加密的原始数据

返回值

类型:Byte
加密之后的结果信息

备注

在 Visual Basic 和 C# 中,这个方法可以当成为类型 RSACryptoServiceProvider 的实例方法来调用。在采用实例方法语法调用这个方法时,请省略第一个参数。请参考 扩展方法 (Visual Basic)扩展方法 (C# 编程指南) 获取更多信息。
参见