QuackatronHQ / Gigarepo

CBC and ECB modes are insecure JAVA-S1004
Security
Critical
5 days ago2 years old
ECB mode is vulnerable to multiple types of attacks attacks
 51                StringBuffer sb = new StringBuffer();
 52                HttpClient hc = HttpClient.newBuilder().build();
 53                HttpRequest offerReq = HttpRequest.newBuilder(offerAPI).GET().build();
 54                Cipher ci = Cipher.getInstance("DES/ECB/PKCS5Padding"); 55
 56                HttpResponse<String> offerResp = hc.send(offerReq, HttpResponse.BodyHandlers.ofString());
 57