Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
EncryptedAttribute.cs
1using System;
2
4{
10 [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
11 public class EncryptedAttribute : Attribute
12 {
13 private readonly int minLength;
14
21 : this(0)
22 {
23 }
24
34 : base()
35 {
36 this.minLength = MinLength;
37 }
38
44 public int MinLength => this.minLength;
45 }
46}
This attribute informs the persistence layer that the property must be encrypted before persisting it...
int MinLength
Minimum length of the property, in bytes, before encryption. If the clear text property is shorter th...
EncryptedAttribute(int MinLength)
This attribute informs the persistence layer that the property must be encrypted before persisting it...
EncryptedAttribute()
This attribute informs the persistence layer that the property must be encrypted before persisting it...