Engineering a secure mobile messaging framework