Hi,
I have a restful web service in netbeans which keeps usernames and passwords. On the other hand, I have android emulator running my own app. The app requests the authentication of username and password to the restful web service. The web service checks the username and password provided by the app and returns the XML file. The XML file is un-encrypted. The app reads the XML file. The XML file is as follows:
<result>
OK
</result>
The OK is replaced by FAIL if the authentication fails.
Is there any way I can make this data transfer secure? I tried encoding the XML file but it did not work since I got Bad Padding Exception in android. I also tried encoding the XML file using another code found here:
http://stackoverflow.com/questions/4874 ... id-encrypt
That also doesn't work in android and I always get null when I try to decrypt the XML.
I also tried encoding only the informative bit like the 'OK' but that also fails to work. Some advice would be really helpful! Thanks!



