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, TripleDES, etc.) from Android, and eventually wind up being decrypted in C#. I found an example for encoding AES in Android and encoding/decoding AES in C# but am not sure if these are compatible (C# requires an IV, nothing is specified for this in the Android example). Also, a recommendation on a good way of encoding the encrypted string for transmission over HTTP (Base64?) would be helpful. Thanks.
Share
Got some help from http://oogifu.blogspot.com/2009/01/aes-in-java-and-c.html.
Here is my Java class:
I used http://iharder.sourceforge.net/current/java/base64/ for the base64 encoding.
Here’s my C# class:
I really hope this helps someone else!