You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在ConfuserEx中使用密码混淆符号名称?

Hey there! Since you're familiar with encrypting symbol names in Eazfuscator.NET using that assembly attribute, let's walk through how to do the exact same thing in ConfuserEx—both via the GUI and a configuration file (for more code-driven setups).

Option 1: Using ConfuserEx GUI

This is the most straightforward way if you prefer a visual interface:

  • Open ConfuserEx and click the + button to add your target .NET assembly.
  • Select your assembly from the left sidebar, then switch to the Protection tab.
  • Scroll through the available protections, find Rename, and click Add to enable it.
  • Expand the Rename protection's settings to configure the encryption:
    • Set Mode to Secure—this enables password-protected encryption of symbol names, matching the "encrypt symbol names" feature in Eazfuscator.NET.
    • In the Password field, enter your desired password (e.g., XPASSWORD).
    • Make sure the Exclude checkbox is unchecked (this corresponds to your original Exclude = false setting, ensuring no parts are skipped).
  • Once configured, click the Protect button to start the obfuscation process.
Option 2: Using a ConfuserEx Configuration File (Code/Driven Setup)

If you want to automate the process or use a code-like configuration, create a .conf XML file with the following structure:

<project baseDir="." outputDir=".\Obfuscated" xmlns="http://confuser.codeplex.com">
  <!-- Apply rename protection with password encryption to all modules -->
  <rule pattern="true" inherit="false">
    <protection id="rename" mode="secure" password="XPASSWORD" />
  </rule>
  <!-- Add your target assembly -->
  <module path="YourTargetAssembly.dll" />
</project>
  • mode="secure" enables the encrypted symbol renaming, just like Eazfuscator's feature.
  • password="XPASSWORD" sets the encryption password directly in the config.
  • pattern="true" applies this rule to all modules; if you need to exclude specific types/members, you can adjust the pattern or add exclusion rules.

Bonus: Per-Member/Type Exclusion (Matching Exclude = false)

If you want to explicitly mark code to include/exclude from renaming (just like the Exclude parameter in your Eazfuscator attribute), you can use the standard ObfuscationAttribute in your code—ConfuserEx recognizes it:

// Ensure this class is included in the encrypted renaming
[System.Reflection.Obfuscation(Exclude = false, Feature = "rename")]
public class YourImportantClass
{
    // This method will also be renamed/encrypted
    [System.Reflection.Obfuscation(Exclude = false, Feature = "rename")]
    public void YourMethod() { }
}

Both methods will achieve the same result as your original Eazfuscator.NET setup: encrypting symbol names with your specified password, no exclusions applied.

内容的提问来源于stack exchange,提问作者rosenishere

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.29 18:17:48