2025-02-05

I have a .NET 8 MVC project structured in three layers: Business, WebAPI, and Model. I want to convert it into a desktop application, so I used Electron.NET. However, I faced serious security concerns regarding my DLL files, as they can be easily decompiled.

I have tried obfuscation, but it is not strong enough for my needs. Ideally, I need to compile my code into a lower-level language like C++ or any other method that would make reverse engineering much harder.

Key Points:

My project contains Views (Razor Pages/Views), so Minimal API is not
a suitable alternative.

I need a way to hide or encrypt my DLL files or convert them into a
more secure format.

I am open to alternative solutions, such as using another technology
to compile or protect my code.

What are the best practices to secure my Electron.NET application’s backend code? Would AOT compilation or using a different language help? Any guidance would be greatly appreciated.

Show less