Encryption / Decryption using Rijndael with key 256bit on Android

后端 未结 1 1254
再見小時候
再見小時候 2021-02-11 11:19

I am developing an Android application that consumes a WS. For exchange of information between the android application and WebService, you must use the algorithm encryption / de

相关标签:
1条回答
  • 2021-02-11 11:58

    Cipher.getInstance("AES/CBC/PKCS5Padding") should do the trick. You will have to match (character)-encodings and you may use SecretKeySpec(byte[32]) to create a 256 bit AES key.

    0 讨论(0)
提交回复
热议问题