Encryption compatible between Android and C#

前端 未结 5 1838
既然无缘
既然无缘 2020-12-02 11:55

I\'ve found plenty of examples how to do encryption in C#, and a couple for Android, but I\'m particularly looking for a way to handle encrypting (using something like AES,

5条回答
  •  醉话见心
    2020-12-02 12:03

    Yes it should be fine, as long we the keysize is the same - 128 bit AES and the correct block cipher mode (CBC). You might run into issues with padding, but that should be fairly easy to sort out. I ran into these issues with Java and Python recently, but got everything working in the end. Base64 for encoding should be fine over HTTP. Good luck!

提交回复
热议问题