I'm building an app that will serve as a repository of encrypted data. The data is encrypted elsewhere, (in a console java application I'll run on my desktop) the app just needs to decrypt it and show it. I used the SimpleCrypto class, that can be found here among other places: stackoverflow.com/questions/11418336
It worked fine on desktop, then I tried decrypting the data on Android. I got a bad padding error. I checked the input, made sure it's identical. Then I googled a bit and found the thread I posted above. It seems the methods of the class are flawed. They do not work correctly on Android.
This was quite the disappointment for me. I've spent a lot of time searching for something usable, only to find out the hard way that it's buggy. Could someone please point me to a similar implementation of encryption, one that works the same on desktop and Android? Thank you.