DES Already broken 4 places See details
Classical public-key cipher through the JCA
`Cipher.getInstance()` with a transformation whose algorithm component is a public-key or legacy symmetric cipher. The transformation string is parsed into algorithm, mode and padding, so `RSA/ECB/PKCS1Padding` is separated from `RSA/ECB/OAEPWithSHA-256AndMGF1Padding`.
This is already unsafe today, with no quantum computer involved. A 56-bit key is brute-forced classically in hours.
What to do. For RSA encryption, move to ML-KEM-768 and keep RSA-OAEP only as the classical half of a hybrid during transition.
-
src/main/java/cn/hyperchain/sdk/crypto/CipherUtil.java:51
SecretKeyFactory keyFactory = SecretKeyFactory.getInstance("DES"); -
src/main/java/cn/hyperchain/sdk/crypto/CipherUtil.java:53
Cipher cipher = Cipher.getInstance("DES"); -
src/main/java/cn/hyperchain/sdk/crypto/CipherUtil.java:83
SecretKeyFactory keyFactory = SecretKeyFactory.getInstance("DES"); -
src/main/java/cn/hyperchain/sdk/crypto/CipherUtil.java:85
Cipher cipher = Cipher.getInstance("DES");