In wireless networks, the security of data is an important aspect and encryption algorithms play an important role to provide the security to the wireless networks. In wireless sensor network Vehicular Ad-hoc NETwork (VANET) consist of smart vehicles with sensing, computing and wireless communication capabilities and Road Side Units (RSUs). The main aim of the cryptography is to enhance the data confidentiality and privacy by making the information unintelligible. Hence the data cannot be interrupted by the intruders. In this paper, the authors propose a two tier approach for communication. The communication is based on two tier approach for security they have to use RC6 and compression they have to use aggregation of data algorithms.