SymmetricEncryptionAttribute
SymmetricEncryptionAttribute class
指示实例序列化以加密/解密对象序列化字符串。
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct)]
public sealed class SymmetricEncryptionAttribute : Attribute, IDataEncryption
构造函数
| 姓名 | 描述 | 
|---|---|
| SymmetricEncryptionAttribute(SymmetricAlgorithmType, string) | 使用参数和默认密码短语创建对称算法。 | 
| SymmetricEncryptionAttribute(SymmetricAlgorithmType, string, string) | 创建带参数的对称算法。 | 
方法
| 姓名 | 描述 | 
|---|---|
| Decode(string) | 根据算法类型、密钥和盐参数解密传递的字符串 | 
| Encode(string) | 根据提供的算法类型、密钥和盐参数加密字符串 | 
也可以看看
- interface IDataEncryption
 - 命名空间 GroupDocs.Signature.Domain.Extensions
 - 部件 GroupDocs.Signature