NamespaceSystemLibrary.Common.Net
Encrypt and decrypt a property or field on receival or sending of a Model
Useful when you want to hide productId's or similar in Frontend part of your application. Avoids having int's or ID's in the frontend, for attackers wanting to brute force endpoints taking INTs
Remarks
Does not support all property/field types, but at least supports: int, uint, int64, uint64 and string types
JsonEncryptAttribute
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] public class JsonEncryptAttribute : JsonConverterAttribute
Inheritance
System.Object
System.Attribute
System.Text.Json.Serialization.JsonAttribute
System.Text.Json.Serialization.JsonConverterAttribute
JsonEncryptAttribute
Inherited Members
System.Text.Json.Serialization.JsonConverterAttribute.ConverterType
Constructors
Methods
Overrides
System.Text.Json.Serialization.JsonConverterAttribute.CreateConverter(System.Type)
Extension Methods
}