Smartphones have become widely employed in a range of fields as a result of substantial developments in communication technology, distribution, and the development of numerous types of smart mobile devices. The goal of this research is to secure information sent over mobile phone networks. In this paper, we propose using cryptography to create a more secure application for transmitting confidential information, using encryption to improve security, and depending on the location of the mobile phone user's coordinates, obtained via GPS, to increase security. The XOR process was used between coordinates, the idea was new, the application was implemented, and good results were obtained. The process of converting text into unreadable text is known as ciphering, and in order to achieve it in this paper the Twofish algorithm was used to encrypt confidential information. When sending the coordinates, the RSA algorithm was used to encrypt them as for the Twofish algorithm, the coordinates serve as a key. We conclude that the proposed system used in this study achieved a high level of security.