AesCryptographyEncrypt 方法 (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.1.2.0 (12.1.2.0)
语法 public string Encrypt(
string data
)
Public Function Encrypt (
data As String
) As String
public:
virtual String^ Encrypt(
String^ data
) sealed
abstract Encrypt :
data : string -> string
override Encrypt :
data : string -> string
参数
- data
- 类型:SystemString
等待加密的字符串
返回值
类型:
String加密后的Base64编码
实现
ICryptographyEncrypt(String)参见