Social media are one of the trending medias through which the users communicate with each other through the use of messages. Messages are sent from the source to the destination with great ease. But what is the guarantee that the message is not intruded by the intruder in between the source and the destination? In order to solve this issue the secure text transfer using Diffie Hellman Key Exchange based on cloud application is introduced. Encryption is one of the techniques for providing security for the data that has been sent by the sender. There will be different algorithms used in order to achieve the encryption of the data.