点击或拖拽改变大小

ICryptography 接口

加密解密的数据接口
Encrypted and decrypted data interface

命名空间:  HslCommunication.Core.Security
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public interface ICryptography

ICryptography 类型公开以下成员。

属性
  名称说明
公共属性Key
当前加密的密钥信息
currently encrypted key information
Top
方法
  名称说明
公共方法Decrypt(Byte)
对原始的数据进行解密的操作,返回解密之后的二进制原始数据
Decrypt the original data and return the decrypted binary original data
公共方法Decrypt(String)
针对Base64字符串进行解密操作,转为二进制数据后进行解密,解密之后使用UTF8编码获取最终的字符串数据
Decrypt the Base64 string, convert it to binary data, and decrypt it. After decryption, use UTF8 encoding to obtain the final string data.
公共方法Encrypt(Byte)
对原始的数据进行加密的操作,返回加密之后的二进制原始数据
Encrypt the original data and return the encrypted binary original data
公共方法Encrypt(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.
Top
参见