Encryption / Decryption using Rijndael with key 256bit on Android

后端 未结 1 1408
后悔当初
后悔当初 2021-02-11 11:32

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:47

    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)
提交回复
热议问题