跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[分享创造] 分享下花了一段时间开发的 Java 字节码混淆加密工具

发表于

https://github.com/jar-analyzer/jar-obfuscator

Jar Obfuscator 是一个 JAR/CLASS 文件混淆工具

  • 命令行模式,简单易用
  • 仅单个 JAR 文件小于 1 MB 超轻量
  • 简洁的配置文件快速上手
  • 输入 JAR 直接输出混淆后的 JAR

支持的混淆内容

  • 类名混淆(包含引用修改)
  • 包名混淆(包含引用修改)
  • 方法名混淆(包含引用修改)
  • 字段名混淆(包含引用修改)
  • 方法内参数名混淆(包含引用修改)
  • 删除编译调试信息(删除行号信息)
  • 字符串加密运行时解密(使用 AES 加密)
  • 字符串提取数组混淆(访问数组方式得到字符串)
  • 整型常数异或混淆(多重异或的加密)
  • 垃圾代码花指令混淆(可指定多级别的混淆)
  • 使用某些技巧可以在反编译时隐藏方法
  • 使用某些技巧可以在反编译时隐藏字段
  • 安全的随机(支持通过 CPU 指令获得随机数)
  • 基于 JVMTI 的字节码加密( beta )

一些混淆后的例子

004.png

006.png

在混淆之外,提供了一种字节码加密的功能,在 JVM 启动时通过 -agentpath:decrypter.dll 参数指定解密密钥等信息,动态解密字节码运行(如果仅拿到 jar/class 文件无法被任何工具反编译)

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.