Best / Safe way to transfer sensitive data to an android application via JSON

5

I am trying to develop an application for android that will work with a database in this case MySQL and I was thinking of doing communication between the database and the application via JSON the data would have to be transferred over SSL but even so maybe it was not the best option to transfer user data among others ..

Could you give me some lights on how to do it in a way that is minimally safe?

    
asked by anonymous 10.07.2014 / 18:08

2 answers

5

Encrypt your content after serialization, and before you send it; Decrypt when you receive the payload on your server, and before passing your JSON interpreter.

Use a reversible and resilient cryptographic algorithm, such as Rijndael . For additional security use keys based on a formula that varies over time.

    
10.07.2014 / 20:14
0

The safest option I see would be SSL, anyway. However, if you want to use something less robust, serialize the JSON string and send via POST.

It's an option: D

    
10.07.2014 / 18:16