(Regarding the shortcomings of the existing schemes, a key management scheme based on grouping is proposed. After the nodes are deployed, the establishment of communication keys between nodes and nodes is realized. The analysis results show that the scheme is suitable for large-scale wireless sensor networks. It improves the connectivity of the network while ensuring the secure communication between nodes.)