Java 8 doesn’t support provider “AES/ECB/PKCS7Padding” .
Exception :
Exception in thread "main" java.security.NoSuchAlgorithmException: Cannot find any provider supporting AES/ECB/PKCS7Padding at javax.crypto.Cipher.getInstance(Cipher.java:540) at security.EncryptionDecryptionURLParam.main(EncryptionDecryptionURLParam.java:31)
Solution :
Java 8 doesn’t support provider “AES/ECB/PKCS7Padding” use provider as “AES/ECB/PKCS5Padding” as used in given example for Encryption and Decryption.
Examples:
- How to do Encryption and Decryption for plain text/password in JAVA
- JAVA Encryption and Decryption of URL Parameter
Issues Solution
For more other JAVA/JDBC issues solution follow link JAVA/JDBC Issues.
You must log in to post a comment.