发布网友 发布时间:2024-10-17 01:59
共2个回答
热心网友 时间:2024-11-28 10:19
javaCipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding");androidCipher cipher = Cipher.getInstance("RSA/ECB/NoPadding");参考: http://stackoverflow.com/questions/6069369/rsa-encryption-difference-between-java-and-android http://stackoverflow.com/questions/2956647/rsa-encrypt-with-base64-encoded-public-key-in-android热心网友 时间:2024-11-28 10:19
有点区别,java中默认填充方式是RSA/ECB/PKCS1Padding,Cipher.getInstance("RSA/ECB/PKCS1Padding");android不是