Aiming at the limitations of nodes in wireless sensor networks in terms of energy consumption and communication, this paper proposes a symmetric image encryption algorithm with an improved Logistic map. First, the image is scrambled at the bit level to destroy the interference between adjacent pixels, then use non-linear diffusion operations to complete the image encryption; This paper applies the public key cryptosystem and completes the security identity authentication by constructing a new Hash function. Experiments have proved that the proposed image algorithm can effectively resist typical attacks and increase the reliability of sending information between nodes.