I am interacting with an outdated Java application (the application cannot be modified) that encrypts data using AES. Here's how the Java source code instantiates an AES cipher:
SecretKeySpec skeySpec = new SecretKeySpec(key, "AES"); cipher = Cipher.getInstance("AES"); cipher.init(Cipher.ENCRYPT_MODE, skeySpec );
I am a C / C ++ developer, not Java, but from what I can say, this legacy Java code does not indicate the mode nor the initialization vector. Does anyone know what Java will use by default since it is not specified?
We need a new C / C ++ application to decrypt encrypted Java data. But I don’t understand what to use OpenSSL and the chain for the initialization vector, since I don’t know what java does.
source share