Android6.0之后3DES加密算法得到的结果有变化
2016-05-10 00:00
176 查看
摘要: Android6.0之后3DES加密算法得到的结果有变化
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
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
相关文章推荐
- 如何自学Android
- Android SharedPreferences 源码分析
- 理解Android编译命令
- Android Studio 快速添加 @Override
- Android 6.0 应用权限(二) -- 与系统权限一起工作(Working with System Permissions)
- Android编码规范
- Android APK反编译
- Android 精确绘制文字位置
- Dialog使用心得(完善中)
- Android style报错
- Android Activity 屏幕操作
- Android关于销毁你所应该知道的
- Android布局中gravity与layout-gravity
- Android之bitmap压缩的几种方法的解读
- Android中的端口号设置
- 15 个 Android 通用流行框架大全
- 浅谈android中的mvc模式
- Android 9.Patch图详解
- Android6.0运行时权限简介
- Android JNI/NDK开发之基本姿势<二>