Advances in Computer Science : an International Journal (ACSIJ)
Wireless sensor networks' nodes are divided to H-sensors and L-sensors. H-sensor nodes are more powerful than L-sensor nodes in term of processing and memory. Because of that H-sensors are considered as the cluster head and L-sensor as the cluster member. H-sensor is responsible for the security of this communication. Each node can communicate with neighbor nodes. Problems of the network are security and battery lifetime for each node. Proposed algorithm presents a scheme to keep the security, reduce energy consuming and the length of message in wireless sensor network.