I am facing one strange issue. My server is giving me public key to encrypt the user name and password.
It is giving different result if we use rsa/ecb/pkcs1padding (Cipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding")) algorithm. Same algorithm is using in Java server and android, but it gives different results.
If we use RSA/ECB/NOPADDING algorithm, both results are same and working fine. But i need to implement rsa/ecb/pkcs1padding in android.
Please help to identify the issue ?
Thanks.