/

Resource Protection

Protection ID: resources

This protection encodes and compresses embedded resources.

This protection allows you to choose if you want to code resources, compress them or both options simultaneously.

This protection is available in the editions:

Startup Enterprise


Parameters

  • Compress boolean : This Boolean type parameter sets whether resources should be compressed. true by default

We recommend using this parameter for any type of resource in order to reduce the weight of your application.

  • Encrypt boolean : This Boolean type parameter sets whether resources should be protected. true by default

We recommend using this parameter if the application's resources contain important data that you want to protect. It is not recommended when resources are simple images or elements used by the interface.


Rules configuration

  • shield.config.json
{
  "protections": {
    "resources": {
      "compress": true,
      "encrypt": true
    }
  }
}

Modes

  • Default: Use static algorithms with random parameters to encode resources.

Compatibility

FrameworkCompatibilityComments
.NET Core
.NET Framework
.NET (up to 8 version)
.NET Standard
Xamarin IOS
Xamarin Android
Xamarin MacOs
WPF
Blazor
.NET Maui
Unity
ASP
Silverlight
VBa (Visual Basic) or C# (CSharp)
WinRT

Shield is compatible with all versions of .NET, it doesn't matter if you use .NET 2.0, .NET 4.7, .NET Core 2.1 or Xamarin.Forms 5.0, it will adapt automatically according to needs, you don't have to worry about this.

Previous
Invalid Code