hyperdefined / CustomLauncherRewrite

Cipher does not support integrity verification JAVA-S1005
Security
Critical
6 months ago2 years old
ECB mode ciphers are less secure due to a lack of integrity checks
141            key = sha.digest(key);
142            key = Arrays.copyOf(key, 16);
143            secretKey = new SecretKeySpec(key, "AES");
144            Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5PADDING");145            cipher.init(Cipher.DECRYPT_MODE, secretKey);
146            return new String(cipher.doFinal(Base64.getDecoder().decode(encryptedPassword)), StandardCharsets.UTF_8);
147        } catch (Exception exception) {