MCPcopy Create free account
hub / github.com/Drun1baby/JavaSecurityLearning / main

Method main

JavaSecurity/AesEncode.java:11–17  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

9
10public 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{

Callers

nothing calls this directly

Calls 3

getBytesMethod · 0.95
encryptMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected