JnicHelper
An annotation based config generator for the jnic java native obfuscator.
Install / Use
/learn @0xntpower/JnicHelperREADME
JnicHelper
An annotation based config generator for the jnic java obfuscator
JNIC: https://jnic.dev/
Usage
In the project that you plan on protecting with jnic implement the following interface
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Retention(RetentionPolicy.RUNTIME)
public @interface jnic {}
Then proceed to annotate every method that you want to protect in your project with the @jnic annotation, like so:
@jnic
public void logger(String msg) {
System.out.println(msg);
}
Running JnicHelper
When you want to protect your jar, download the latest release of JnicHelper from the releases tab
and run it with the command
java -jar JnicHelper.jar myJar.jar"
you also can specify output folder path
java -jar JnicHelper.jar myJar.jar OutputFolderPath"
arguments:
-mangle or -m - to set the mangle option in the generated config to true
-stringobf or -s - to set the stringobf option in the generated config to true
-desc or -d - to make jnic also generate the methods description
recommended settings:
java -jar JnicHelper.jar MyJar.jar -s
After running the command JnicHelper will generate a config.xml file
that will protect all the methods that are annotated with the @jnic annotation
Note: if you use another java obfuscator before obfuscating with jnic make sure to exclude the @jnic interface from being name obfuscated
Note: We did it! JNIC has implemented this annotations feature in version 3.5.0 so if you are on 3.5.0 or above there is no need to use jnichelper however we still keep this project up for anyone who is still on older versions
Annotation removal
If you want to remove the jnic annotation from the methods for one reason or another checkout bruhisalex's tool built directly for that: https://github.com/bruhitsalex/JarAnnotationRemover
Related Skills
node-connect
349.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
