I. Introduction
The deep integration of energy internet and 5G drives the digital development of the grid and enhances the intelligence of the grid. Due to the increasing number of underlying business terminals and the popularity of intelligent inspection robots, data transmission is constantly increasing. If all data is sent to the cloud for processing, it will lead to increased latency and energy consumption, but with the development of mobile edge computing [1] and the open capability nature of 5G [2], these problems can be solved using local offloading and shunting techniques for edge computing based on the sinking of 5G user-plane.The tasks of local devices are transferred to the corresponding edge servers for computation through computational offloading, which solves the problems of prolonged task processing and unreasonable resource al-location in cloud computing. In addition, the introduction of mobile edge computing and open 5G network capabilities can bring better terminal monitoring capabilities, higher quality of power services, and better power communication networks to the smart grid though. However, it brings in a series of problems in terms of security, and the distributed deployment of edge servers makes it more difficult to protect the commu-nication security. In a multi-power end-user but edge server system, there may be malicious eavesdroppers infiltrating and eavesdropping and tampering with users' data causing power communications to not function properly. Therefore, designing a 5G edge computing system based on security mechanisms to handle smart grid data services can meet the requirements of grid data for security.