(String[] args)
| 34 | Security.addProvider(new BouncyCastleProvider()); |
| 35 | } |
| 36 | public static void main(String[] args) throws Exception { |
| 37 | |
| 38 | // String a = encryptKeyivmode("{\"id\":\"1''\"}", |
| 39 | // "f0ngtestf0ngtest","f0ngf0ngf0ngf0ng","AES","CBC","PKCS5Padding","Base64","无"); |
| 40 | |
| 41 | // String a = encryptKeyivmode("{\"mobile\":\"13888888888\"}", |
| 42 | // "3d7bdda07326bb086de449838ec5c590","","SM4","ECB","PKCS5Padding","Hex","Hex"); |
| 43 | // |
| 44 | // System.out.println(a); |
| 45 | // |
| 46 | String aa = encryptKeyivmode("{\"wxOpenId\":\"\",\"account\":\"\",\"password\":\"\",\"request_seq\":\"ZJOSS202404191143432890846955\"}", |
| 47 | "j6slh8xin3yfhqbxmx46n53p","j6slh8xin3yfhqbxmx46n53p","DESede","ECB","PKCS5Padding","Hex","null"); |
| 48 | System.out.println(aa); |
| 49 | |
| 50 | // String aa = encryptKeyivmode("{\"mobile\":13812312355}\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000", |
| 51 | // "1234567890123456","1234567890123456","AES","CBC","NoPadding","Base64","无"); |
| 52 | // System.out.println(aa); |
| 53 | |
| 54 | // String a = encryptKeyivmode("{\"loginstate\":null,\"data\":[],\"object\":null,\"token\":null,\"code\":null," + |
| 55 | // "\"resultStatus\":\"success\",\"messageCode\":1009,\"devMessage\":\"\",\"message\":\"操作失败\"," + |
| 56 | // "\"clientStyle\":1,\"dataCount\":0,\"key\":null,\"zip\":false,\"requestInfo\":{\"responseTime\":1}," + |
| 57 | // "\"authStatus\":3,\"enabled\":1}", "12345645678iaweb","1234567812345678","AES","CBC","NoPadding","Base64","null"); |
| 58 | |
| 59 | // String aa = encryptKeyivmode("{\"loginstate\":null,\"data\":[],\"object\":null,\"token\":null,\"code\":null,\"resultStatus\":\"success\",\"messageCode\":1009,\"devMessage\":\"\",\"message\":\"操作失败\",\"clientStyle\":1,\"dataCount\":0,\"key\":null,\"zip\":false,\"requestInfo\":{\"responseTime\":168022497401},\"authStatus\":3,\"enabled\":1}", "12345645678iaweb","1234567812345678","AES","CBC","NoPadding","Base64","null"); |
| 60 | // String aa = encryptKeyivmode("123456", "1234567890123456","1234567890123456","AES","CBC","NoPadding","Base64","null"); |
| 61 | |
| 62 | // String aa = decryptKeyivmode("QEwd/DWmy/4yGncCqBofQQ==", "1234567890123456","1234567890123456","AES","CBC","NoPadding","Base64","null"); |
| 63 | // System.out.println(aa); |
| 64 | } |
| 65 | |
| 66 | // public static String byte2hex(final byte[] array) { |
| 67 | // String s = ""; |
nothing calls this directly
no test coverage detected