Android6.0之后3DES加密算法得到的结果有变化

2016/05/10 15:36
阅读数 228

javax.crypto.Cipher cipher =   javax.crypto.Cipher.getInstance("DESede/CBC/NoPadding");

改为:

javax.crypto.Cipher cipher =   javax.crypto.Cipher.getInstance("DESede/CBC/NoPadding","BC");

参考: http://stackoverflow.com/questions/34286798/javax-crypto-cipher-working-differently-since-android-6-marshmallow

http://stackoverflow.com/questions/35873174/runtimeexception-when-closing-cipherinputstream

展开阅读全文
打赏
2
0 收藏
分享

作者的其它热门文章

打赏
0 评论
0 收藏
2
分享
返回顶部
顶部