The invention provides a network security encryption method, and relates to the technical field of network security. The method comprises the following steps: S1, region division: dividing a network according to different attributes and effects, and encrypting a single region, and S2, network boundary protection: performing security protection on boundaries among the divided and encrypted networks to prevent the influence of network concatenation. According to the method, large environment of the whole network is regionally divided into different small environments, the boundary of each small environment is protected, on one hand, the encryption degree can be improved, on the other hand, encryption access can be finely divided, encryption is carried out according to different levels, and the encryption is more meticulous; and through RSA and SM encryption, it can be ensured that the internal key is safer and is not prone to being cracked and infected by common programs. Therefore, it can be guaranteed that the secret key is in a relatively safe environment state in the transmission process, and after the secret key is received, the secret key is cracked and compared through corresponding hardware and software so that the safety of the file can be guaranteed.