[已发布][插件] Cocos Creator 构建后 · 代码混淆 3.x+2.x 版 (优惠中)

Cocos 3.x 插件近期商业化更新概要

已关闭特殊情况无法处理的拦截逻辑,可以自由混淆

  1. 新增三级兼容回退链:高级处理异常时,自动切换兼容核心方案继续混淆并覆盖,避免单一阶段问题导致任务中断。
  2. 优化大型构建文件处理,针对高内存、复杂控制流和重复字符串场景自动调整策略,提高成功率与处理效率。
  3. 重构终端日志,只保留关键结果,减少重复的配置、策略和审计信息。
  4. 新增包体变化统计,明确显示处理前后大小、增减 KB/MB 及变化百分比。
  5. 新增处理性能评估,展示总耗时、处理吞吐及预计运行影响等级。
  6. 新增保护效果摘要,集中展示混淆强度、反还原韧性、结构相似度及实际采用策略。
  7. 优化最终验收提示,清晰标明语法检查、单行输出、文件覆盖和兼容回退结果。

:shield: Cocos 3.x 插件 v3.12.33 商业化深度升级概要

支持重复混淆,重复混淆(默认配置的参数)增加的包体大小非常小,对于超大型js文件非常友好
混淆后对整体游戏的性能影响很小(采用强离线智能分析算法对游戏逻辑写法进行的智能深度混淆)

  1. 升级混淆核心,增强现代 JavaScript、复杂构建代码及特殊字符场景的兼容性。
  2. 强化显式文件处理,用户主动选择的合法 JS 文件优先执行混淆,不再被内部规则意外跳过。
  3. 优化大型构建文件策略,智能平衡混淆强度、处理速度、内存占用与最终包体。
  4. 增强多轮混淆能力,持续产生结构差异,同时避免重复套壳造成包体异常膨胀。
  5. 新增兼容回退机制,高级策略异常时自动切换稳定方案,继续完成混淆与覆盖。
  6. 优化安全覆盖流程,异常时优先保护原文件,正常完成后不遗留临时或备份文件。
  7. 精简终端日志,重点展示处理结果、包体变化、结构差异、性能影响与保护等级。

:shield: Cocos 3.x Plugin v3.12.33 Commercial Upgrade Summary

  1. Upgraded the obfuscation core for better compatibility with modern JavaScript, complex build output, and special character cases.
  2. Improved explicit file handling so manually selected valid JS files are processed first instead of being unexpectedly skipped.
  3. Optimized large-file processing to intelligently balance protection strength, speed, memory usage, and output size.
  4. Enhanced repeated obfuscation to keep producing structural differences while preventing excessive size growth from duplicated wrappers.
  5. Added a stable compatibility fallback that continues processing when an advanced strategy cannot safely complete.
  6. Improved secure overwrite behavior to protect the original file during failures and leave no temporary or backup files after success.
  7. Simplified terminal logs to highlight results, size changes, structural differences, performance impact, and protection level.

Cocos 3.x 插件商业化更新概要

算是基本上定稿了,兼顾单机离线智能扫描提高代码改写和混淆的性能,提高混淆的复杂度

  1. 优化整体处理性能,批量任务执行更稳定,减少等待时间和异常中断。
  2. 强化代码保护能力,提高代码结构复杂度和反分析难度。
  3. 优化大型文件处理,根据文件规模自动平衡保护强度、运行性能和包体大小。
  4. 改进重复处理逻辑,在保持运行稳定的同时持续产生结构差异。
  5. 完善兼容处理机制,遇到特殊文件时自动选择更稳妥的处理方案。
  6. 优化安全覆盖流程,处理失败时保留原文件,成功后不遗留临时文件。
  7. 精简运行日志,清晰显示处理进度、耗时、包体变化和最终结果。

Cocos 3.x Plugin Commercial Update Summary

  1. Improved overall processing performance and stability for batch tasks.
  2. Strengthened code protection and increased structural complexity.
  3. Optimized large file processing to balance protection, runtime performance, and output size.
  4. Improved repeated processing to produce further structural differences while maintaining stability.
  5. Enhanced compatibility handling with safer strategies for special files.
  6. Improved secure overwrite behavior to preserve original files when processing fails.
  7. Simplified runtime logs to clearly display progress, time, size changes, and final results.

Cocos 2.x/3.x 代码混淆插件功能更新概要

后期预计内置构建前混淆ts代码的功能逻辑放进去作为高级版本(目前测试中)

  1. 优化整体处理速度,批量处理多个文件时更加稳定。
  2. 增加路径记忆功能,下次使用时可以快速继续处理之前的文件或文件夹。
  3. 支持一次输入多个文件路径,减少重复选择和操作。
  4. 优化 ZIP 压缩包处理,可以直接处理压缩包内的代码并重新打包。
  5. 加强字符串保护功能,更好地隐藏中文、英文提示文字和重复内容。
  6. 优化大型文件处理,减少处理时间过长、卡住或失败的情况。
  7. 加强微信小游戏、抖音小游戏和常见网页项目的兼容性。
  8. 优化不同文件和不同项目结构的识别,降低处理后无法运行的风险。
  9. 完善失败保护,处理异常时不会轻易破坏原来的文件。
  10. 优化处理结果提示,可以更清楚地看到成功数量、失败原因、处理时间和文件大小变化。
  11. 改进重复处理逻辑,避免多次混淆后文件过大或运行异常。
  12. 完善中文、特殊字符和表情文字的处理,提升处理后的稳定性。
  13. 加强处理完成后的检查,尽量避免生成无法正常运行的代码。
  14. 优化整体使用流程,让普通用户也能更容易完成文件选择、处理和结果确认。

Cocos 2.x/3.x 代码混淆插件功能更新概要 V

本次更新重点完善增包、控制流、废代码、性能和稳定性。

  1. 新增项目级智能预算,优先加强入口、核心业务和重要文件,避免大量小文件重复增加无用外壳。
  2. 废代码不再只是简单填充,会包含有限、可执行的局部计算,更能干扰静态分析和人工逆向。
  3. 增加多种执行内核、外层结构和命名方式;固定种子可复现,随机模式可生成不同结构。
  4. 执行型混淆只在加载时进行一次有限局部运算,不读取业务数据、不写全局,也不访问网络或平台接口。
  5. 热路径、引擎核心、大文件和资源密集文件会自动降低运行成本,兼顾混淆强度与启动性能。
  6. 优化 2MB 以上高密度文件处理,减少重复解析、内存峰值、卡住和失败风险。
  7. 文件夹和 ZIP 批量处理共用统一预算与审计规则,并保留失败回滚和零临时文件机制。
  8. 日志会显示版本、参数、实际新增字节、执行内核和项目预算,方便普通用户确认功能是否生效。
  9. 混淆用于提高阅读、复制和逆向成本,不等同于加密。

新增自动授权模块面板,方便各位兄弟直接自行授权:

自动授权失败的请联系qq就行

image
image

Cocos 3.x 功能更新日志

  • 优化多路径、文件夹和批量任务统计,分别展示路径结果、文件结果、处理耗时、包体变化及实际生效能力,汇总信息更加直观。
  • 完善合法 JavaScript 的兼容回退机制。智能处理或高级审计无法确认时,会继续尝试兼容方案,不再轻易放弃文件处理。
  • 标准版与高级版统一按照混淆参数百分比控制最终包体增长,不再使用固定字节上限,日志同时显示目标比例、实际比例及误差。
  • 加强字符串保护、模块合同、平台明文标记、文件事务和 ZIP 内存处理,保留必要 API 与序列化属性的运行兼容性。
  • 修复完整商业自检完成后可能无法自动退出的问题,并完成语法、性能、强度、大文件、SourceMap、ZIP、回滚及多运行环境回归。

Cocos 3.x 插件更新 (基本稳定版v3.13.33)

智能AI离线判断改造代码混淆不会影响调制混淆参数,基本稳定,有新BUG请私信即可

  1. 修复 Web 反调试参数未实际生效的问题。
  2. 修复部分混淆参数被自动覆盖或错误联动的问题。
  3. 优化字符串数组、拆分及包装器混淆逻辑。
  4. 修复 Source Map 路径、重名及批量生成问题。
  5. 增强多文件、大文件及多轮混淆稳定性。
  6. 完善参数校验与异常回退提示。
  7. 优化标准版与 VIP 版混淆流程。
  8. 提升整体混淆深度、兼容性与可靠性。

Cocos 3.x 稳定更新 v3.13.35

Alt+B 可快捷打开操作面板(内有详细介绍参数功能作用)

  1. 修复模板切换后配置文件未及时同步的问题。
  2. 增加配置写入、回读校验和配置校验码。
  3. 优化 Cocos 2.x 与 3.x 混淆面板操作流程。
  4. 增加模板适用场景、强度及兼容性说明。
  5. 完善参数效果、风险和推荐值提示。
  6. 修复跨目录启动时配置模板生成位置异常。
  7. 统一主工具、配置文件及面板版本信息。
  8. 提升批量混淆、配置保存和异常恢复稳定性。






全平台 JS 代码混淆工具 稳定更新 v3.13.58

  1. 修复大型 Bundle 二次混淆时可能进入错误处理链的问题。
  2. 恢复并强化 compact=true 的最终真实单行压缩能力。
  3. 增强控制流变换、废代码注入、字符串拆分、数值表达式及对象键保护。
  4. 加强多轮随机混淆与多态输出,相同源码可生成不同结构的混淆结果。
  5. 增强反混淆与反还原干扰,提高静态分析、格式化分析及自动化还原成本。
  6. 优化 System.register、CommonJS、AMD、UMD 等模块格式兼容性。
  7. 修复 CRLF、LF、U+2028、U+2029 等行终止符可能造成的语义风险。
  8. 加强正则、除法、注释、ASI、Unicode 标识符等词法边界保护。
  9. 深度校验各项混淆参数,避免配置存在但实际未生效。
  10. 默认显示输入、输出、配置及异常文件完整路径,方便快速排查。
  11. 更新配置说明、使用文档及发布验收记录,提升批量混淆稳定性。

Cross-Platform JavaScript Obfuscator Stable Update v3.13.58

  1. Fixed an incorrect processing route that could affect large bundles during repeated obfuscation.
  2. Restored and strengthened true single-line output when compact=true is enabled.
  3. Enhanced control-flow transformation, dead-code injection, string splitting, numeric-expression protection, and object-key protection.
  4. Strengthened multi-pass randomized obfuscation and polymorphic output, allowing the same source code to produce structurally different results.
  5. Improved anti-deobfuscation and anti-restoration interference, increasing the cost of static analysis, beautification-based analysis, and automated recovery.
  6. Improved compatibility with System.register, CommonJS, AMD, UMD, and other module formats.
  7. Fixed semantic risks involving CRLF, LF, U+2028, and U+2029 line terminators.
  8. Strengthened lexical boundary protection for regular expressions, division, comments, ASI, and Unicode identifiers.
  9. Deeply verified that configured obfuscation options are actually applied during processing.
  10. Full input, output, configuration, and error-file paths are now shown by default for easier troubleshooting.
  11. Updated configuration guidance, user documentation, and release validation records for improved batch-processing stability.

Cocos 3.x 插件稳定更新 v3.13.68

  1. 修复字符串拼接、模板字符串及嵌套模板混淆后的语义异常。
  2. 强化 compact=true 的真实物理单行压缩能力。
  3. 修复部分微型 System.register 文件无法完成最终收口的问题。
  4. 优化大型 Bundle、多模块文件及 Cocos 构建产物的混淆稳定性。
  5. 增强控制流、废代码、字符串拆分、数值表达式及对象键保护。
  6. 完善多档高级恢复链,避免轻微问题直接回退或处理失败。
  7. 增加经典混淆安全保底,合法 JavaScript 不再被异常阻断。
  8. 修复批量处理时的跨文件字符串串值及内部标识符冲突。
  9. 优化标准版与 VIP 许可证识别,移除误导性的重复失败日志。
  10. 完善 JSON 参数兼容与生效校验,提升整体批量处理可靠性。

Cocos 3.x 插件稳定更新 v3.13.90

  1. 修复高级混淆候选校验失败后未正确进入后续安全回退的问题。
  2. 完善多级自动降级机制,单个高级阶段异常不再导致整个 JavaScript 文件处理失败。
  3. 修复任务实际已混淆成功,却在收尾阶段被错误标记为 EJS_PROCESS_FAILED 的问题。
  4. 修复批量、多路径及 ZIP 任务最终状态可能被后续流程错误覆盖的问题。
  5. 完善 ZIP 直接处理能力,支持完整批量混淆、失败回滚及归档一致性检查。
  6. 强化同一 JavaScript 文件连续多轮重复混淆的稳定性与最终状态校验。
  7. 增加“零有效处理”检测,避免异常情况下错误显示任务成功。
  8. 完善发布版自检闭环,正式精简包无需依赖额外测试或插件文件即可完成完整自检。

Cocos 3.x 插件稳定更新 v3.13.91

  1. 新增标准版与 VIP 终态字符串保险库,强化 Unicode 业务文本、短 ID 及常见字符串字面量隐藏。
  2. 强化 System.register、ESM 与 CommonJS 模块合同保护,避免依赖路径、公开导出及执行结构发生漂移。
  3. 新增五档高级局部恢复、经典三级最终保险及无核心保真链,合法 JavaScript 不再因内部增强阶段异常而停止处理。
  4. 完善固定 Seed 可复现与随机 Seed 多态构建,并统一控制最终包体增长比例。
  5. 强化单文件、文件夹、ZIP、SourceMap 与原子写入全流程校验,确保失败可回滚、成功状态不被收尾流程覆盖。

Cocos 2.x && Cocos 3.x JS 代码混淆工具终态稳定更新 v3.13.99

  1. 完善外部 JSON 配置参数执行链,确保字符串数组、字符串分割、控制流、废代码、包装器、调用阈值及 Seed 等参数真实生效。

  2. 强化高强度 AST 抗还原能力,新增相邻字符串常量折叠防护及 UTF-16/XOR 运行时解码,阻止多轮压缩后恢复业务明文。

  3. 加强标准版与 VIP 终态字符串保护,覆盖 Unicode 业务文本、短 ID、接口路由、令牌及常见敏感字符串,同时保护 Cocos 与模块运行合同。

  4. 完善 Browser、Node、CommonJS、ESM、UMD、Worker、小游戏及 System.register 兼容链,失败时自动安全降级,避免未混淆却误报成功。

  5. 完成文件、文件夹、ZIP、SourceMap、固定/随机 Seed 及反调试全流程验收;独立 Terser AST 攻击明文恢复为 0,内置发布自检 879/879 全部通过。

JavaScript Obfuscation Tool Stable Update v3.13.99

  1. Improved the external JSON configuration pipeline to ensure that string arrays, string splitting, control flow, dead code injection, wrappers, call thresholds, seeds, and other parameters take full effect.

  2. Strengthened high-intensity AST deobfuscation resistance with adjacent string constant-folding protection and runtime UTF-16/XOR decoding, preventing sensitive business strings from being recovered after repeated compression.

  3. Enhanced final-stage string protection for both Standard and VIP editions, covering Unicode business text, short IDs, API routes, tokens, and other sensitive strings while preserving Cocos and module runtime contracts.

  4. Improved compatibility across Browser, Node.js, CommonJS, ESM, UMD, Worker, mini-game, and System.register environments, with automatic safe fallback instead of reporting false obfuscation success.

  5. Completed end-to-end validation for files, folders, ZIP archives, SourceMaps, fixed/random seeds, and anti-debugging. Independent Terser AST attacks recovered zero protected plaintext, and all 879 built-in release checks passed.

新出的 TS 构建前混淆器插件

有需要的兄弟可以看看

JS 代码混淆工具强壮性更新 v3.13.102

  1. 修复 Cocos System.register 死代码变量提升遮蔽导入对象的问题,避免模块执行中断及资源加载失败。

  2. 强化模块绑定与终态执行审计,确保模块名称、依赖、Setters、Execute 及导出合同保持一致。

  3. 完善五档高级恢复链,单档终态失败后继续尝试其余高级方案,全部失败后才允许进入经典回退。

  4. 新增文件夹自适应高级预算,消除小文件 1024B 假上限及微文件预算转嫁,几百 KB 至数 MB 文件均按实际结构安全处理。

  5. 统一高级与经典产物的失控硬门,透明区分参数目标与安全结构开销;完整自检 885/885、商业门 58/58、微型 System.register 69/69 高级链通过。


JavaScript Obfuscation Tool Robustness Update v3.13.102

  1. Fixed a Cocos System.register issue where hoisted variables from injected dead code could shadow imported objects, interrupt module execution, and cause resource-loading failures.

  2. Strengthened final module-binding and execution audits to preserve module names, dependencies, setters, execution behavior, and export contracts.

  3. Improved the five-stage advanced recovery pipeline so remaining advanced strategies are attempted after a finalization failure, with classic fallback allowed only after full exhaustion.

  4. Added adaptive advanced budgeting for folder processing, eliminating false 1024B limits and micro-file budget transfers while safely supporting files from a few hundred KB to several MB.

  5. Unified runaway-size limits across advanced and classic outputs while clearly separating requested growth targets from required security overhead. All 885 built-in checks, 58 commercial gates, and 69 micro System.register advanced-path cases passed.

Cocos 3.x 更新 v3.13.119

  1. 大幅强化高级 VIP 字符串保护,新增统一字符串池,进一步减少业务明文暴露。

  2. 强化高级 VIP 深度混淆能力,提升属性、成员、模块结构和代码逻辑的隐藏效果。

  3. 优化控制流、废代码、字符串拆分、字符串数组等经典混淆能力,执行更加稳定可靠。

  4. 强化大型 Cocos Bundle 与二次混淆文件支持,在保持高强度混淆的同时进一步优化性能。

  5. 完善高级 VIP 与标准版能力区分,高级版提供更深层的字符串、结构及反分析保护。

  6. 完善高级参数、SourceMap、随机种子及旧配置兼容,现有配置可继续直接使用。

Cocos 3.x Update v3.13.119

  1. Significantly enhanced Advanced VIP string protection with a unified string pool to further reduce exposed business plaintext.

  2. Improved Advanced VIP deep obfuscation for properties, members, modules, and code structures.

  3. Improved the stability of classic obfuscation features including control flow, dead code, string splitting, and string arrays.

  4. Enhanced support for large Cocos bundles and repeatedly obfuscated files while maintaining strong protection and optimized performance.

  5. Improved the separation between Standard and Advanced VIP editions, with deeper string, structural, and anti-analysis protection available in VIP.

  6. Improved advanced parameter handling, SourceMap support, random seeds, and backward compatibility with existing configurations.

Cocos 3.x 更新 v3.13.131

  1. 修复抖音小游戏严格 JS 编译器对 Unicode 转义保留字的兼容问题,避免 default 等关键字被错误转义后导致编译失败。

  2. 优化过滤规则机制,历史排除列表默认仅保留配置、不主动生效,避免标准版或高级 VIP 因旧规则出现文件被意外跳过的问题。

  3. 强化配置文件无损升级逻辑,更新版本时尽量完整保留现有许可证、VIP 配置、自定义参数及说明字段,减少配置被重建或丢失的风险。

  4. 完善标准版与高级 VIP 的全流程状态校验,高级链路异常时优先进行安全恢复,避免非必要降级或功能被静默关闭。

  5. 加强 Cocos System.register、二次混淆及大型 Bundle 的兼容检查,进一步降低构建后代码在不同小游戏平台编译阶段出现异常的概率。

  6. 完整执行标准版、高级 VIP、ZIP、SourceMap、参数合同、性能及异常恢复回归测试,进一步提升正式发布版本的稳定性。


Cocos 3.x Update v3.13.131

  1. Fixed compatibility issues with strict JavaScript compilers in ByteDance Mini Games, preventing reserved words such as default from being incorrectly Unicode-escaped and causing compilation failures.

  2. Improved exclusion-rule handling. Legacy exclusion lists are now preserved but disabled by default, preventing Standard or Advanced VIP obfuscation from unexpectedly skipping files.

  3. Improved lossless configuration upgrades, preserving existing license data, VIP settings, custom parameters, and configuration metadata during version updates.

  4. Strengthened the complete Standard and Advanced VIP execution flow. Advanced processing now prioritizes safe recovery instead of unnecessary fallback or silent feature disabling.

  5. Improved compatibility checks for Cocos System.register, repeated obfuscation, and large Bundles, reducing the risk of platform-side compilation failures after obfuscation.

  6. Completed full regression verification covering Standard, Advanced VIP, ZIP, SourceMap, parameter contracts, performance, and recovery paths for improved release stability.

Cocos 3.x 更新 v3.13.135

  1. 大幅优化 JS 混淆速度,尤其改善大型文件、复杂代码和高字符串密度文件处理过慢的问题。

  2. 优化随机混淆效果,同一份代码多次混淆可生成不同结果,同时继续支持固定结果模式。

  3. 优化批量文件、文件夹、ZIP 和多路径处理效率,长时间连续混淆更加稳定。

  4. 新增更直观的耗时显示,可查看单文件、单任务以及整批处理耗时,方便快速判断处理进度。

  5. 优化高级混淆异常恢复能力,减少不必要的经典回退,提高复杂项目和二次混淆场景的稳定性。

  6. 完善整体兼容性与稳定性,进一步提升 Cocos 3.x、CommonJS、System.register 等构建代码的正式发布可靠性。


Cocos 3.x Update v3.13.135

  1. Significantly improved JS obfuscation speed, especially for large files, complex scripts, and string-heavy bundles.

  2. Improved randomized obfuscation so the same source can produce different protected outputs, while reproducible fixed-output mode remains available.

  3. Improved performance and stability for batch files, folders, ZIP archives, and multi-path processing.

  4. Added clearer processing-time information for individual files, tasks, and complete batches.

  5. Improved advanced obfuscation recovery to reduce unnecessary fallback and increase stability for complex and repeatedly obfuscated projects.

  6. Improved overall compatibility and release stability for Cocos 3.x, CommonJS, System.register, and other common build outputs.

Cocos 3.x 更新 v3.13.153

本版本已完成正式冻结验收,建议作为 v3.13.153 长期稳定基线使用

  1. 恢复并强化百分比混淆增包机制,用户设置的混淆强度可更稳定地映射到最终包体增长目标,标准版与高级版保持一致的尺寸合同。

  2. 进一步提升 Cocos 3.x、System.register、CommonJS、UMD、Webpack 等复杂 JavaScript 结构的兼容性,增强复杂作用域、语法结构及多种工程输出场景下的稳定性。

  3. 完善 SourceMap 全链路处理,修复平台前导内容、高级恢复及最终组装过程中可能出现的映射偏移、引用错位和 JS / Map 不一致问题。

  4. 优化大文件及连续多轮混淆性能,降低重复混淆时进入异常慢路径的概率,并保持每轮混淆参数、包体目标及最终结果持续有效。

  5. 强化文件、ZIP、多目录以及 JS + SourceMap 的原子写入与异常恢复机制,提升进程中断、发布异常及复杂工程场景下的数据一致性与文件安全性。

  6. 增强高级版字符串、结构与语义扰动保护,进一步提高格式化、自动化分析、批量还原及 AI 辅助代码分析的处理成本,同时兼顾小游戏运行性能与工程兼容性。

  7. 优化项目级混淆预算分配,改善小文件、平台前导及多文件工程下的增包预算分配和最终尺寸一致性,减少局部文件偏差对整体目标的影响。

  8. 完善事务级故障恢复闭环,增强旧事务残留隔离、同名项目并发安全及发布阶段异常中断后的恢复能力,进一步降低 JS、SourceMap 或工程文件状态不一致的风险。

  9. 完善自动化验收与正式冻结验证体系,加强语义正确性、SourceMap、事务恢复、最终产物及历史问题的独立校验,进一步提升长期发布稳定性。


Cocos 3.x Update v3.13.153

This release has completed final freeze validation and is recommended as the long-term stable v3.13.153 baseline.

  1. Restored and strengthened percentage-based output growth control, allowing configured obfuscation strength to map more consistently to the final output size target across both Standard and Advanced editions.

  2. Improved compatibility with complex JavaScript structures used by Cocos 3.x, System.register, CommonJS, UMD, Webpack and related build pipelines, with better stability for complex scopes, syntax patterns and project outputs.

  3. Improved the complete SourceMap processing pipeline, addressing potential mapping offsets, source reference mismatches and JavaScript / Map inconsistencies during platform-prefix handling, recovery and final output assembly.

  4. Optimized large-file and repeated obfuscation performance, reducing the chance of abnormal slow paths during multi-pass processing while keeping obfuscation parameters, output-size targets and final results effective across repeated runs.

  5. Strengthened atomic writing and failure recovery for files, ZIP packages, multi-directory projects and JavaScript + SourceMap output pairs, improving consistency and file safety during interrupted processes, publishing failures and complex project workflows.

  6. Strengthened Advanced-edition string, structural and semantic obfuscation, increasing the cost of formatting, automated analysis, bulk deobfuscation and AI-assisted code analysis while maintaining runtime performance and project compatibility.

  7. Optimized project-level obfuscation budget allocation for small files, platform prefixes and multi-file projects, improving output-size consistency and reducing the impact of individual file deviations on the overall target.

  8. Improved transaction-level failure recovery with stronger legacy transaction residue isolation, same-name project concurrency protection and recovery after abnormal termination during publishing, further reducing the risk of inconsistent JavaScript, SourceMap or project file states.

  9. Improved automated validation and final freeze verification with stronger independent checks for semantic correctness, SourceMap handling, transaction recovery, final artifacts and historical regression cases, improving long-term release stability.

预热,敬请期待:

专业 JSVM 虚拟机混淆功能正在开发中

Professional JSVM-based obfuscation functionality is currently under development.

:rocket: 深度代码保护模式|开发预览

专业 JSVMP 虚拟机混淆功能正在开发中。
目前处于持续研发、兼容性验证与性能优化阶段。
预热,敬请期待。

本次研发方向不再只是继续叠加传统 JavaScript 混淆强度。

在现有:

  • 变量名混淆
  • 字符串保护
  • 数值表达式扰乱
  • 控制流混淆
  • 属性访问保护
  • 多层结构扰乱

等能力基础上,计划进一步对部分高价值核心业务逻辑进行更加深入的结构级保护。

核心目标:

兼容性
+
运行性能
+
代码保护强度

在三者之间取得更合理的平衡。


:sparkles: 计划中的主要能力

:closed_lock_with_key: 核心逻辑深度保护

普通 JavaScript 混淆主要还是让代码:

更乱
更难读
更难搜索

深度保护模式希望进一步做到:

核心业务逻辑
↓
转换为内部执行结构
↓
不再直接以普通 JavaScript 业务表达式形式暴露

重点用于保护:

  • 核心算法
  • 授权逻辑
  • 关键校验
  • 游戏规则
  • 数据处理算法
  • 安全逻辑
  • 商业核心逻辑
  • 重要本地计算

:jigsaw: 多层结构保护

计划根据代码特征组合使用不同保护策略,包括:

函数结构保护
+
控制逻辑扰乱
+
调用关系保护
+
字符串保护
+
属性访问保护
+
核心逻辑深度转换

目标不是简单把文件变大。

而是提高:

自动分析成本
人工阅读成本
逻辑还原成本
批量恢复成本

:brain: 智能分级保护

并不会简单地:

所有函数
↓
全部套最重保护

而是计划根据代码类型自动选择更合适的保护方式:

普通业务逻辑
↓
高强度常规混淆

重要业务逻辑
↓
更深层结构保护

核心算法 / 授权 / 校验
↓
JSVMP 深度保护

高频运行逻辑
↓
优先保证运行性能

:zap: 游戏性能优先

针对游戏和小游戏环境,运行性能仍然是重要目标。

例如:

update
lateUpdate
tick
render
physics
Tween
动画循环
高频事件
每帧逻辑

不会简单粗暴地全部进入高成本保护结构。

后续会综合考虑:

  • 函数执行频率
  • 函数复杂度
  • 安全价值
  • 运行成本
  • 代码规模

自动选择更加合适的保护策略。


:arrows_counterclockwise: 不同构建产生不同结构

计划让同一份源码在不同构建中产生结构差异。

例如:

第一次构建
→ 保护结构 A

第二次构建
→ 保护结构 B

第三次构建
→ 保护结构 C

进一步增加固定规则批量分析多个版本的难度。


:mag: 混淆前后效果示意

以下代码仅用于简单展示不同保护层级之间的区别。

实际最终输出会根据:

源码
配置
构建随机性
代码类型
安全策略

产生变化。


① 原始代码

function verify(score, token) {
    if (token.length > 3 && score * 7 + 11 > 100) {
        return "ok";
    }

    return "no";
}

业务逻辑非常直接:

token.length > 3

score * 7 + 11 > 100

阅读源码即可快速理解判断规则。


② 普通混淆后的效果

传统高强度混淆后,可能变成类似:

function _0x91(_a, _b) {
    var _s = 0;

    while (true) {
        switch (_s) {

            case 0:
                if (_b.length > 3) {
                    _s = 1;
                    continue;
                }

                return _x[2];

            case 1:
                if (_a * 7 + 11 > 100) {
                    return _x[1];
                }

                return _x[2];
        }
    }
}

代码已经明显更难阅读。

但经过:

格式化
↓
整理变量
↓
简化控制流

仍然可能观察到:

_a * 7 + 11 > 100

也就是说:

普通混淆主要是在原有 JavaScript 结构上增加阅读和分析难度。


:fire: ③ 深度保护模式效果示意

正在研发的深度保护模式,希望让适合保护的核心业务逻辑进一步转换。

效果可能更接近:

function _a(a, b) {
    return _v(
        [a, b],
        _p,
        0x31ac
    );
}

var _p = [
    187, 22, 91, 7,
    216, 53, 11, 168,
    72, 199, 34, 5,
    118, 63, 205, 17,
    ...
];

此时原本非常明显的:

score * 7 + 11 > 100

不会再直接以普通业务表达式的形式暴露。

攻击者看到的会更加接近:

内部执行结构
+
编码数据
+
复杂控制关系
+
运行状态

而不是直接看到原始业务公式。


:bar_chart: 简单理解

保护方式 主要效果 分析难度
原始 JavaScript 业务逻辑直接可读 :star:
普通高强度混淆 名称、字符串、流程被扰乱 :star::star::star:
深度保护模式 核心逻辑进一步转换为内部执行结构 :star::star::star::star::star:

:shield: 保护目标

普通混淆后的分析过程通常比较接近:

格式化代码
↓
恢复变量关系
↓
整理控制流
↓
阅读业务代码

深度保护模式希望进一步提高到:

识别内部执行结构
↓
分析数据关系
↓
恢复控制关系
↓
恢复调用逻辑
↓
恢复业务语义

从而进一步增加自动化分析和人工还原成本。


:video_game: 计划兼容环境

主要面向:

  • Cocos Creator
  • 微信小游戏
  • 抖音小游戏
  • Web
  • Android
  • iOS
  • Node / CommonJS
  • System.register

等 JavaScript 项目环境。


:warning: 关于安全性的说明

任何最终运行在客户端的 JavaScript,都不存在真正意义上的:

绝对无法逆向
100% 无法破解
永久不可恢复

深度代码保护真正追求的是:

提高逆向成本、增加恢复步骤、降低批量自动分析效率。

同时尽量保证项目:

正常运行
+
平台兼容
+
性能可接受

当前功能仍在持续研发、兼容测试与性能优化中。

上述代码仅用于展示设计方向,不代表最终固定输出格式。

最终功能、兼容范围、运行性能及保护效果,以正式发布版本为准。

:rocket: 预热,敬请期待。


English Version

:rocket: Deep Code Protection Mode | Development Preview

Professional JSVMP-based virtualized JavaScript protection is currently under development.
Compatibility testing and performance optimization are still ongoing.
Coming soon.

This new protection mode is not simply about adding more layers to traditional JavaScript obfuscation.

Based on existing protection techniques such as:

  • Identifier obfuscation
  • String protection
  • Numeric expression transformation
  • Control-flow obfuscation
  • Property access protection
  • Multi-layer structural transformation

the new mode is designed to provide deeper protection for selected high-value business logic.

The main goal is to balance:

Compatibility
+
Runtime Performance
+
Protection Strength

:sparkles: Planned Features

:closed_lock_with_key: Deep Protection for Critical Logic

Traditional JavaScript obfuscation mainly makes code:

Harder to read
Harder to search
Harder to understand

The new deep protection mode aims to go further:

Critical Business Logic
↓
Internal Execution Structure
↓
Original business expressions are no longer directly exposed

Typical targets include:

  • Core algorithms
  • License logic
  • Validation logic
  • Game rules
  • Data-processing algorithms
  • Security-related code
  • Commercial core logic
  • Important local calculations

:jigsaw: Multi-Layer Structural Protection

Different protection strategies may be combined according to the characteristics of the source code:

Function Structure Protection
+
Control-Flow Transformation
+
Call-Relationship Protection
+
String Protection
+
Property Protection
+
Deep Logic Transformation

The goal is not simply to generate larger files.

The real target is to increase:

Automated Analysis Cost
Manual Analysis Cost
Logic Reconstruction Cost
Batch Recovery Cost

:brain: Intelligent Protection Levels

The new system is not designed to apply the heaviest protection to every function.

Instead:

Normal Business Logic
↓
High-Strength Traditional Obfuscation

Important Business Logic
↓
Deeper Structural Protection

Core Algorithms / License / Validation
↓
JSVMP Deep Protection

High-Frequency Runtime Logic
↓
Performance-Oriented Protection

:zap: Performance-Aware Design

Game and mini-game performance remains an important consideration.

High-frequency code such as:

update
lateUpdate
tick
render
physics
Tween callbacks
animation loops
frame-based logic

will not simply be forced into the heaviest protection structure.

The protection strategy will consider:

  • Execution frequency
  • Function complexity
  • Security value
  • Runtime cost
  • Code size

to automatically select a more suitable protection level.


:arrows_counterclockwise: Different Structures for Different Builds

The same source code may produce different protection structures across different builds.

For example:

Build 1
→ Structure A

Build 2
→ Structure B

Build 3
→ Structure C

This is intended to increase the cost of applying one fixed recovery rule to multiple future builds.


:mag: Before / After Example

The following example is only intended to demonstrate the difference between protection levels.

Actual output may vary depending on:

Source Code
Configuration
Build Randomness
Code Type
Protection Strategy

① Original Code

function verify(score, token) {
    if (token.length > 3 && score * 7 + 11 > 100) {
        return "ok";
    }

    return "no";
}

The business logic is immediately visible:

token.length > 3

score * 7 + 11 > 100

② Traditional Obfuscation

A traditionally obfuscated result may look similar to:

function _0x91(_a, _b) {
    var _s = 0;

    while (true) {
        switch (_s) {

            case 0:
                if (_b.length > 3) {
                    _s = 1;
                    continue;
                }

                return _x[2];

            case 1:
                if (_a * 7 + 11 > 100) {
                    return _x[1];
                }

                return _x[2];
        }
    }
}

The code is significantly harder to read.

However, after:

Beautification
↓
Variable Analysis
↓
Control-Flow Simplification

an analyst may still discover:

_a * 7 + 11 > 100

In other words:

Traditional obfuscation mainly increases complexity while the original JavaScript business structure still exists.


:fire: ③ Deep Protection Preview

For suitable high-value logic, the new protection mode is designed to transform the original business logic further.

The result may look more like:

function _a(a, b) {
    return _v(
        [a, b],
        _p,
        0x31ac
    );
}

var _p = [
    187, 22, 91, 7,
    216, 53, 11, 168,
    72, 199, 34, 5,
    118, 63, 205, 17,
    ...
];

The original expression:

score * 7 + 11 > 100

is no longer directly exposed as ordinary business JavaScript.

Instead, an analyst is more likely to encounter:

Internal Execution Structure
+
Encoded Data
+
Complex Control Relationships
+
Runtime State

before reaching the original business logic.


:bar_chart: Simple Comparison

Protection Level Main Effect Analysis Difficulty
Original JavaScript Business logic directly readable :star:
Traditional Obfuscation Names, strings and control flow transformed :star::star::star:
Deep Protection Mode Core logic transformed into an internal execution structure :star::star::star::star::star:

:shield: Protection Goal

Traditional obfuscation analysis often follows a path similar to:

Beautify Code
↓
Recover Variable Relationships
↓
Simplify Control Flow
↓
Read Business Logic

The deep protection mode aims to increase the required analysis steps:

Identify Internal Execution Structure
↓
Analyze Data Relationships
↓
Recover Control Relationships
↓
Recover Call Logic
↓
Reconstruct Business Semantics

The goal is to significantly increase the cost of both automated analysis and manual reconstruction.


:video_game: Planned Compatibility

Main target environments include:

  • Cocos Creator
  • WeChat Mini Games
  • Douyin Mini Games
  • Web
  • Android
  • iOS
  • Node / CommonJS
  • System.register

:warning: Security Notice

No client-side JavaScript protection can honestly guarantee:

100% Impossible to Reverse
Completely Unbreakable
Permanently Unrecoverable

The real purpose of advanced code protection is to:

Increase reverse-engineering cost, add reconstruction steps, and reduce the efficiency of automated recovery.

while maintaining:

Runtime Compatibility
+
Practical Performance
+
Protection Strength

This feature is still under active development, compatibility testing and performance optimization.

The examples above are intended only to demonstrate the design direction and do not represent a fixed final output format.

Final functionality, compatibility, runtime performance and protection strength may change before release.

:rocket: Coming Soon.