NoSuchAlgorithmException: DESede/ECB/PKCS5Padding

To solve this problem, you may want to check your security provider.

Or, you can just check your code of Key generation.

For example, if you find

SecretKeyFactory keyfactory = SecretKeyFactory.getInstance("DESede/ECB/PKCS5Padding");

Then you are wrong at coding.

Instead, you should write

SecretKeyFactory keyfactory = SecretKeyFactory.getInstance("DESede")

In other words,
only the algorithm part can be accepted by the key factory,although you can use the full transformation to do cipher.

Cipher desCipher = Cipher.getInstance("DESede/ECB/PKCS5Padding");

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.