I tried to use AES/ECB/PKCS7Padding to encrypt a file, but am getting the following exception.
java.security.NoSuchAlgorithmException: Cannot find any provider supporting AES/ECB/PKCS7Padding
Apparently PKCS7Padding is not supported. If I use AES/ECB/PKCS5Padding, then it works fine.
The requirement given to me is that EBC and PKCS7 with padding are to be used.
Someone answered in the below question that "Java is actually performing PKCS #7 padding, but in the JCA specification, PKCS5Padding is the name given"
AES-256 and PKCS7Padding fails in Java
In the below question, someone said that " I will point out that PKCS#5 and PKCS#7 actually specify exactly the same type of padding ..."
java.security.NoSuchAlgorithmException:Cannot find any provider supporting AES/ECB/PKCS7PADDING
What does that mean? AES/ECB/PKCS5Padding and AES/ECB/PKCS7Padding are the same? So both will produce exactly the same encrypted output?
TIA.