Reputation: 8145
I have an Android application that communicates with my own server. Since we don't have https, I want to implement my own data encryption. The server is implemented in PHP.
I wanted to use AES, but my main problem is sharing the server key with the local application, since it could be intercepted and then anyone could decrypt my messages.
Should I use RSA instead? or there is a secure way of sharing the key?
Thanks!
Upvotes: 4
Views: 1821
Reputation: 31
You should use RSA and AES encrypting protocols.
So:
Have a look at the following Open Source project at GitHub: github.com/rcbarioni/followzup
The server is implemented with PHP and there are APIs for PHP and Java. The communication between client and server uses AES and RSA.
PHP and Java encryption libraries are full compatible. Java for Android is compatible too.
Upvotes: 3
Reputation: 3690
Well, i would do one of the following - with decreasing priority:
The last one is the least preferrable since there are a lot of things, you could do wrong, and thus accidentally break security. Just one example: If you happen to use both encryption and compression, you're vulnerable to the CRIME attack...
Upvotes: 0