Skip to content
This repository was archived by the owner on Dec 4, 2024. It is now read-only.

Commit 2b321da

Browse files
committed
new readme
1 parent 761bb29 commit 2b321da

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,19 @@
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

@@ -60,13 +60,13 @@
6060
java -jar code-encryptor-plus.jar export
6161
```
6262

63-
使用解密`DLL`启动`Jar`包:(使用`-agentlib`参数)
63+
使用解密`DLL`启动`Jar`包:(使用`-agentpath`参数)
6464

6565
```shell
66-
java -agentlib:D:\abs-path\decrypter=PACKAGE_NAME=com.your.pack --jar your-jar.jar
66+
java -agentpath:D:\abs-path\decrypter.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

src/main/java/org/y4sec/encryptor/cli/ExportCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) -----------");

0 commit comments

Comments
 (0)