mkaring / ConfuserEx

An open-source, free protector for .NET applications
https://mkaring.github.io/ConfuserEx/
MIT License
2.39k stars 370 forks source link

Renaming a specify resource? #149

Open Ares-87 opened 4 years ago

Ares-87 commented 4 years ago

I would like to rename specific resources and not all a unique solution with (resource protection 'resource'), is it possible to rename for example a single resource (in my case an image)? How can I protect xaml pages? Currently I can rename them but I can't protect them from the decompiler. Thank you.

mkaring commented 4 years ago

Resource protection is currently an all or nothing deal. If it's enabled and ConfuserEx is able to resolve how the resources are accessed, they will be protected.

With XAML the problem is that renaming them is currently the only "protection" available. Hiding them from the BAML decompiler isn't possible, because WPF is accessing them the same way as the BAML decompilers. The XAML/BAML Syntax it self doesn't leave any room for modifications that make it harder to read but leave the result the same.

The only idea for XAML protection I got is to convert the XAML/BAML resources to C#/MSIL code and protect that. But that's not even on the road map as of right now.

KvanTTT commented 4 years ago

The only idea for XAML protection I got is to convert the XAML/BAML resources to C#/MSIL code and protect that. But that's not even on the road map as of right now.

Maybe the project XamlIl can help in this.