Hi there,
We have an application that runs under java and under android which encrypts and decrypts data using AES. We found that we can decrypt data under android if the data was originally encrypted using android, and same applies with the java version. However, if we tried decrypting under android data that was originally encrypted under java, it doesnt work, and vice versa.
We believe we have narrowed it down to SecureRandom. For some reason, secret keys derived from SecureRandom are different for java and android.
Has anyone else experienced this and are there any solutions to this problem?
Thanks in advance.
We have an application that runs under java and under android which encrypts and decrypts data using AES. We found that we can decrypt data under android if the data was originally encrypted using android, and same applies with the java version. However, if we tried decrypting under android data that was originally encrypted under java, it doesnt work, and vice versa.
We believe we have narrowed it down to SecureRandom. For some reason, secret keys derived from SecureRandom are different for java and android.
Has anyone else experienced this and are there any solutions to this problem?
Thanks in advance.