This document discusses the security vulnerabilities in mobile instant messaging (IM) applications, highlighting issues in authentication and encryption systems. It proposes a novel method based on elliptic curve cryptography (ECC) operating within a peer-to-peer architecture to enhance security and reduce computational overhead during data transmission. The results suggest that this method effectively improves both the encryption and authentication processes in mobile IM environments.