Security “Crypto” provider deprecated in Android N

后端 未结 2 1174
攒了一身酷
攒了一身酷 2020-11-30 14:07

A user run my application in Android N, he got the crash.I know Google deprecated Crypto provider in Android N,but what would be the best way to migrating old encrypted data

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-30 15:02

    You can use this code for provider :

    SecretKeyFactory.getInstance("PBKDF2WithHmacSHA1").getProvider();
    

提交回复
热议问题