SystemLibrary.Common.Framework.Attributes
Classes
ConfigDecryptAttribute
Marks a property as the placeholder for a decrypted config value.
The property must be public, instance-level, with both get and set accessors.
Used internally by Config to locate and decrypt values marked with DecryptAttribute on instantiation.
Values must be encrypted using the parameterless Encrypt() method. See StringExtensions.Encrypt() for details.
JsonCompressAttribute
Compress and decompress a String, Long or Int property or field on serialization and deserialization
Useful when you want to minify long texts before sending to Client or upon receiving
JsonEncryptAttribute
Encrypt and decrypt a String, Long or Int property or field on serialization and deserialization
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
JsonObfuscateAttribute
Obfuscate and deobfuscate a String, Long or Int property or field on serialization and deserialization
Useful when you want to hide productId's or similar in Frontend part of your application when an object is exposed through an API response for instance. Avoids having int's or ID's in the frontend, for attackers wanting to brute force endpoints taking INTs