This repository was archived by the owner on Dec 4, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
src/main/java/org/y4sec/encryptor/cli Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 3434## 构建
3535
3636编译环境:
37- - Windows 64 位
37+ - Windows 11 / Ubuntu 22.04
3838- JDK 8 / Maven
39- - MSVC x64 / ml64
39+ - MSVC + ml64 (Windows) / gcc + nasm (Linux)
4040- CMake 3.x
41- - Python 3.x (非必要)
41+ - Python 3.x
4242
43- ` native ` 目录使用` cmake ` 构建,生成` dll ` 移动到` resources ` 中使用` Maven ` 构建
43+ ` native ` 目录使用` cmake ` 构建,生成` dll ` 和 ` so ` 移动到` resources ` 中使用` Maven ` 构建
4444
4545## 快速开始
4646
4747加密解密部分使用` C ` 做一层加密,使用` 汇编 ` 二层加密,已提供编译好的` Release ` 版本` DLL ` 文件嵌入` Jar ` 包中
4848
49- 仅支持 ` Windows 64位 ` / ` JDK-8 ` 环境 ,其他版本的` JDK ` 只需要更换` JNI.h ` 头文件重新编译,其他操作系统可能需要重写
49+ 内置支持是 ` JDK-8 ` ,其他版本的` JDK ` 只需要更换` JNI.h ` 头文件重新编译,新版本已支持 ` Windows ` 和 ` Linux ` 两个操作系统
5050
5151加密你的` Jar ` 包:(指定` Jar ` 包和` package ` 加密包名)
5252
6060java -jar code-encryptor-plus.jar export
6161```
6262
63- 使用解密` DLL ` 启动` Jar ` 包:(使用` -agentlib ` 参数)
63+ 使用解密` DLL ` 启动` Jar ` 包:(使用` -agentpath ` 参数)
6464
6565``` shell
66- java -agentlib :D:\a bs-path\d ecrypter=PACKAGE_NAME=com.your.pack --jar your-jar.jar
66+ java -agentpath :D:\a bs-path\d ecrypter.dll =PACKAGE_NAME=com.your.pack --jar your-jar.jar
6767```
6868
69- 另外支持了简易的` GUI ` 版本,选择需要加密的` Jar ` 文件即可一键加密
69+ 另外支持了简易的` GUI ` 版本,选择需要加密的` Jar ` 文件即可一键加密(仅支持 ` Windows ` 版)
7070
7171![ screenshot] ( img/001.png )
7272
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public void execute() {
2626 if (OSUtil .isWin ()) {
2727 JNIUtil .extractDllSo (DecrypterDLL , outputPath , false );
2828 System .out .println ("----------- ADD VM OPTIONS (WINDOWS) -----------" );
29- System .out .println ("java -agentlib: path-to-file =PACKAGE_NAME=xxx [other-params]" );
29+ System .out .println ("java -agentpath:/ path/to/decrypter.dll =PACKAGE_NAME=xxx [other-params]" );
3030 } else {
3131 JNIUtil .extractDllSo (DecrypterSo , outputPath , false );
3232 System .out .println ("----------- ADD VM OPTIONS (LINUX) -----------" );
You can’t perform that action at this time.
0 commit comments