点击或拖拽改变大小

AesCryptography 构造函数

使用指定的密钥实例化一个AES加密解密的对象,密钥由32位数字或字母组成,例如 12345678123456781234567812345678

命名空间:  HslCommunication.Core.Security
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public AesCryptography(
	string key,
	CipherMode mode = CipherMode.ECB
)

参数

key
类型:SystemString
密钥
mode (Optional)
类型:System.Security.CryptographyCipherMode
加密的模式,默认为 ECB
参见