I'm creating and end-to-end encrypted IM for Android, using PHP and GCM as the middle man to deliver the messages.
I've got the IM part nailed down, but now I'm looking to implement an end-to-end encryption on all messages.
My IM is text-only and has a maximum payload of 4kb (the max GCM supports).
Whats the best way to implement this on Android? AES + RSA?
Is there any default library for implementing this in a secure and easy way?