点击或拖拽改变大小

ICryptographyEncrypt 方法 (String)

针对字符串进行加密,并返回加密后的字符串数据,字符串的编码默认为UTF8,加密后返回Base64编码
Encrypt the string and return the encrypted string data. The encoding of the string is UTF8 by default. After encryption, the Base64 encoding is returned.

命名空间:  HslCommunication.Core.Security
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
string Encrypt(
	string data
)

参数

data
类型:SystemString
等待加密的字符串

返回值

类型:String
加密后的Base64编码
参见