NamespaceSystemLibrary.Common.Net
Obfuscate and deobfuscate 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
JsonObfuscateAttribute
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] public class JsonObfuscateAttribute : JsonConverterAttribute
Inheritance
System.Object
System.Attribute
System.Text.Json.Serialization.JsonAttribute
System.Text.Json.Serialization.JsonConverterAttribute
JsonObfuscateAttribute
Inherited Members
System.Text.Json.Serialization.JsonConverterAttribute.ConverterType
Constructors
Methods
Overrides
System.Text.Json.Serialization.JsonConverterAttribute.CreateConverter(System.Type)
Extension Methods
}