Issue in Android Encryption using RSA/ECB/PKCS1padding. It gives different results in Java and Android -


i facing 1 strange issue. server giving me public key encrypt user name , password.

it giving different result if use rsa/ecb/pkcs1padding (cipher cipher = cipher.getinstance("rsa/ecb/pkcs1padding")) algorithm. same algorithm using in java server , android, gives different results.

if use rsa/ecb/nopadding algorithm, both results same , working fine. need implement rsa/ecb/pkcs1padding in android.

please identify issue ?

thanks.

it's because of padding function, when use pkcs#1 padding , other ways,it generate random number , make cipher text different each time.


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -