Outward transmission file encryption and decryption system, method, device and medium

Through the combination of the encryption and decryption system and the approval module, the problem of leakage of important company documents when being taken away is solved, ensuring data security and meeting the needs of employees to work from home, achieving efficient and safe transmission and management of files.

CN118740481APending Publication Date: 2024-10-01ZIGUANG COMPUTER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410981393.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Important company documents are easily leaked when taken away from the company, threatening data security. Existing technologies are difficult to effectively prevent such leaks.

Method used

Adopt an encryption and decryption system, use public keys to encrypt external files and decrypt them with private keys, combined with the approval module to approve file operations based on employee levels to ensure file security and flexibility.

Benefits of technology

It effectively prevents the leakage of important data, meets the needs of employees to work from home, and improves the security and flexibility of file management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740481A_ABST
    Figure CN118740481A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication security, and discloses an encryption and decryption system, method, equipment and medium for an outbound file, and the system comprises a network security module which is used for obtaining the outbound file and encrypting the outbound file by using a public key to obtain an encrypted file; the file decryption module is used for decrypting the encrypted file by using the private key to obtain a decrypted file; and the examination and approval module is used for obtaining the examination and approval application, examining and approving whether the operation of the decrypted file is allowed or not according to the importance of the decrypted file and the employee level corresponding to the examination and approval application, and if the operation is allowed, passing the examination and approval. According to the invention, the network security module is utilized to encrypt the outbound file, the security of the outbound file taken away from a company is ensured, important data information is prevented from being leaked, and the file decryption module and the approval module are utilized to meet the requirement that employees can work at home under necessary conditions, so that the system is more flexible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication security technology, and in particular to an encryption and decryption system, method, device and medium for externally transmitted files. Background Art

[0002] The company's documents are classified into different levels within the company. According to the importance of the documents, they are classified from high to low: top secret, confidential, secret, internal, and public. If the documents are above the secret level, they will only be communicated between specific personnel and ordinary employees cannot access them. Some of these documents are internal technical data, design drawings, contract documents and other information of the company. Once the documents above the secret level are leaked, it will cause great losses to the company. In some cases, employees need to copy work materials to a USB flash drive or upload them to an email address to take them away from the company. This behavior is most likely to cause the leakage of important company documents. How to prevent the leakage of important data in the documents taken away from the company is a problem that needs to be solved. Summary of the invention

[0003] In view of this, the present invention provides a system, method, device and medium for encrypting and decrypting external files to solve the problem of leakage of important data in files taken away from the company.

[0004] In a first aspect, the present invention provides an encryption and decryption system for externally transmitted files, the system comprising:

[0005] The network security module is used to obtain the external file and encrypt the external file using the public key to obtain the encrypted file;

[0006] A file decryption module, used to decrypt the encrypted file using a private key to obtain a decrypted file;

[0007] The approval module is used to obtain the approval application and approve whether the decrypted file operation is allowed based on the importance of the decrypted file and the employee level corresponding to the approval application. If the operation is allowed, the approval is passed.

[0008] The encryption and decryption system for externally transmitted files provided by the present invention utilizes a network security module to encrypt externally transmitted files, thereby ensuring the security of externally transmitted files taken away from the company and preventing important data from being leaked. The file decryption module and the approval module are utilized to meet the needs of employees being able to work from home when necessary, which is more flexible.

[0009] In an optional implementation, the externally transmitted files include: files copied from a company computer to a removable storage device or uploaded to an external network.

[0010] The encryption and decryption system for externally transmitted files provided by the present invention confirms the externally transmitted files by monitoring the actions of the files being copied to a removable storage device or uploaded to an external network, thereby achieving the function of accurately encrypting the externally transmitted files and ensuring the normal use of non-externally transmitted files.

[0011] In an optional implementation, the public key and the private key are a key pair automatically generated according to the employee number using a preset encryption algorithm.

[0012] The encryption and decryption system for externally transmitted files provided by the present invention associates the key with the employee number and corresponds the encryption and decryption process to the individual, which is easy to manage.

[0013] In a second aspect, the present invention provides an encryption and decryption method for an external file, which is applied to the encryption and decryption system for an external file according to any one of the first aspects, and the method comprises:

[0014] Obtain the external file, and use the public key to encrypt the external file to obtain the encrypted file;

[0015] Decrypt the encrypted file using the private key to obtain the decrypted file;

[0016] Get the approval application, and approve whether the decrypted file operation is allowed based on the importance of the decrypted file and the employee level corresponding to the approval application. If the operation is allowed, the approval is passed.

[0017] The encryption and decryption method for external files provided by the present invention ensures the security of external files taken out of the company by encrypting the external files, avoids the leakage of important data, and meets the needs of employees to work from home when necessary through the approval management of the decryption process, which is more flexible.

[0018] In an optional implementation, the approval of whether the decryption file is allowed to be operated is performed according to the importance of the decryption file and the employee level corresponding to the approval application, including:

[0019] If the importance level of the decrypted file matches the employee level corresponding to the approval application, the decrypted file operation is allowed and the approval is passed;

[0020] If the importance level of the decrypted file does not match the employee level corresponding to the approval application, the decrypted file operation is not allowed and the approval is not passed.

[0021] The encryption and decryption method for externally transmitted files provided by the present invention matches the importance of the externally transmitted files with the employee level during the approval process to determine whether the approval is passed, thereby ensuring the safe use of files of different levels and improving the security of file management.

[0022] In an optional implementation, the public key is used to encrypt the external file to obtain the encrypted file, including:

[0023] Get the byte stream and public key of the outgoing file;

[0024] The byte stream of the external file is encrypted using the public key to obtain the encrypted byte stream as the encrypted file.

[0025] The encryption and decryption method for externally transmitted files provided by the present invention ensures that the encryption operation is only for the externally transmitted files through the byte stream generated when the encrypted files are transmitted externally, avoids affecting the normal use of non-externally transmitted files, and improves the file transmission efficiency under the premise of ensuring the security of the externally transmitted files.

[0026] In an optional implementation, if the public key or private key is leaked, a new public key and a new private key are regenerated based on the employee number, and the new public key replaces the original public key, and the new private key replaces the original private key.

[0027] The encryption and decryption method for external files provided by the present invention avoids the leakage of data content in the external files due to the leakage of public keys or private keys by regenerating key pairs and replacing the original key pairs, thereby improving the effectiveness of encryption and decryption and improving the security of external files.

[0028] In an optional implementation, regenerating a new public key and a new private key using the employee number includes:

[0029] Change the preset encryption algorithm to obtain a new encryption algorithm;

[0030] A new key pair is generated based on the employee number using a new encryption algorithm. The new key pair includes a new public key and a new private key.

[0031] The encryption and decryption method for external files provided by the present invention increases the difficulty of cracking the key pair by replacing the key pair in a more preset encryption algorithm, improves the effectiveness of the key pair, and provides a high degree of confidentiality for the external files.

[0032] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0033] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to cause a computer to execute the method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 is a schematic diagram of the structure of an encryption and decryption system for externally transmitted files according to an embodiment of the present invention;

[0036] Figure 2 is a flowchart of information configuration when a new employee joins the company according to an embodiment of the present invention;

[0037] Figure 3 It is a schematic diagram of the process of encrypting, decrypting and approving an external file according to an encryption and decryption system for external files according to an embodiment of the present invention;

[0038] Figure 4 is a flowchart of an encryption and decryption method for an externally transmitted file according to an embodiment of the present invention;

[0039] Figure 5 is a flowchart of another method for encrypting and decrypting an externally transmitted file according to an embodiment of the present invention;

[0040] Figure 6 It is a schematic diagram of the process of encrypting and transmitting the byte stream of an external file according to the encryption and decryption method of an external file according to an embodiment of the present invention;

[0041] Figure 7 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0043] The embodiments of the present invention provide a system, method, device and medium for encrypting and decrypting external files. The system identifies external files, encrypts them and decrypts them after approval, thereby ensuring the security of external files while meeting the needs of employees working from home.

[0044] According to an embodiment of the present invention, a system for encrypting and decrypting external files is provided. Figure 1As shown, the system includes: a network security module 101, a file decryption module 102, and an approval module 103.

[0045] The network security module 101 is used to obtain the external file and encrypt the external file using the public key to obtain the encrypted file.

[0046] Specifically, when employees copy data to a removable storage device (such as a USB flash drive), upload files to an external network, or send files through instant messaging software, the network security module 101 will monitor these actions, treat these files as external files, and automatically encrypt the external files. In this way, external files stored in removable storage devices and external files received on the external network are all encrypted. The file successfully received on the external network is an encrypted file and cannot be opened, thereby avoiding data leakage caused by accidentally sending files to the chat section of instant messaging software.

[0047] The file decryption module 102 is used to decrypt the encrypted file using the private key to obtain a decrypted file.

[0048] Specifically, Figure 2 As shown, it is a flowchart of information configuration when a new employee joins the company. When each employee joins the company, when entering HR information in the company's office automation system (OA system), a work number and a pair of keys will be generated and assigned to the employee. The pair of keys includes: a public key and a private key. The public key is used in the encryption process of the external file in the above-mentioned network security module 101, and the private key is used in the decryption process of the encrypted file. The pair of keys is stored in a preset server. When the information technology administrator configures the computer for the employee, he can download the public key from the server to the employee's computer.

[0049] The approval module 103 is used to obtain the approval application, and approve whether the operation of the decrypted file is allowed according to the importance of the decrypted file and the employee level corresponding to the approval application. If the operation is allowed, the approval is passed.

[0050] Specifically, according to the employee's level or company regulations, the information technology manager can set whether each employee needs to go through the approval process for outgoing files. The specific setting rules are not limited here. If approval is not required, the employee can directly use the file decryption module to obtain the decrypted file and then download it, etc. The process can be viewed by the approver. Figure 3As shown, it is a schematic diagram of the process of encrypting, decrypting and approving external files. If an employee needs to go through the approval process, after the employee submits the approval process, the file decryption module 102 uses the private key to decrypt the encrypted file to obtain the decrypted file. The approver will check the decrypted file and approve it according to the importance of the decrypted file and the employee level corresponding to the approval application, or whether the file meets the confidentiality requirements of working from home. For example: For files of "secret" level and above, first-level employees are allowed to leave the company. Then, when a first-level employee transmits a "secret" file from his or her computer, if he or she wants to use the "secret" file at home, he or she needs to first use his or her private key to decrypt it, and then submit the approval process. After the approval is passed by the approver, the "secret" file can be downloaded and other operations can be performed; if the approval is not passed, the user will be notified that the approval has not passed. The notification method can be SMS, email, etc., which is only used as an example, but is not limited to this. It should be noted that the decrypted file is the external file that is encrypted and decrypted after the external file is transmitted, which is the same as the original "secret" file. It should be noted that, if Figure 3 As shown, when an employee transfers a file, the local computer will automatically encrypt the file and upload it to the approval system as an encrypted file. After uploading, the system will use the private key to decrypt the file to form a decrypted file. The approval personnel can view the content of the transferred file. Only when the employee's transfer file approval process is passed can the decrypted file be viewed and downloaded.

[0051] The encryption and decryption system for external files provided in this embodiment utilizes the network security module 101 to encrypt external files, thereby ensuring the security of external files taken out of the company and preventing important data from being leaked. The file decryption module 102 and the approval module 103 are utilized to meet the needs of employees being able to work from home when necessary, which is more flexible.

[0052] In some optional implementations, the externally transmitted files include: files copied from a company computer to a removable storage device or uploaded to an external network.

[0053] Specifically, removable storage devices include but are not limited to USB flash drives, removable hard disks, etc., and files uploaded to the external network include: files sent to other mailboxes using non-company mailboxes, files uploaded to the external network system, etc.

[0054] It should be noted that emails sent to customers or suppliers sometimes include documents. To ensure the normal operation of the company's business, external files do not include files in emails sent to customers or suppliers using the company's email address, and the email addresses of customers or suppliers need to be filed in the network security system in advance to ensure normal email delivery.

[0055] The encryption and decryption system for external files provided in this embodiment confirms the external files by monitoring the actions of the files being copied to a removable storage device or uploaded to an external network, thereby achieving the function of accurately encrypting the external files and ensuring the normal use of non-external files.

[0056] In some optional implementations, the public key and the private key are a key pair automatically generated according to the employee number using a preset encryption algorithm.

[0057] Specifically, when the information technology administrator installs and configures the computer for the corresponding employee, he creates a computer user with the employee's corresponding work number, downloads the public key and puts it in a specific ordinary user read-only directory. The information technology administrator has read and write permissions, and installs the network security module 101 on the computer. It should be noted that the network security module 101 also has all the functions of a commonly used network security system.

[0058] The encryption and decryption system for externally transmitted files provided in this embodiment associates the key with the employee number and corresponds the encryption and decryption process to the individual, which is easy to manage.

[0059] According to an embodiment of the present invention, an embodiment of a method for encrypting and decrypting an externally transmitted file is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0060] In this embodiment, a method for encrypting and decrypting an external file is provided, which can be used in the encryption and decryption system for external files in the above-mentioned embodiment. Figure 4 is a flow chart of a method for encrypting and decrypting an external file according to an embodiment of the present invention. Figure 4 As shown, the process includes the following steps:

[0061] Step S401, obtain the external file, and use the public key to encrypt the external file to obtain an encrypted file. Figure 1 The functional description of the network security module 101 is not repeated here.

[0062] Step S402: Decrypt the encrypted file using the private key to obtain a decrypted file. Figure 1 The functional description of the file decryption module 102 is not repeated here.

[0063] Step S403, obtain the approval application, and approve whether the decrypted file is allowed to be operated according to the importance of the decrypted file and the employee level corresponding to the approval application. If the operation is allowed, the approval is passed. For details, please refer to Figure 1 The functional description of the approval module 103 is not repeated here.

[0064] The encryption and decryption method for external files provided in this embodiment ensures the security of external files taken out of the company by encrypting the external files, avoids the leakage of important data, and meets the needs of employees to work from home when necessary through the approval management of the decryption process, which is more flexible.

[0065] In some optional implementations, if the public key or private key is leaked, a new public key and a new private key are regenerated based on the employee number, and the new public key replaces the original public key, and the new private key replaces the original private key.

[0066] The encryption and decryption method for external files provided in this embodiment avoids the leakage of data content in external files due to the leakage of public keys or private keys by regenerating key pairs and replacing the original key pairs, thereby improving the effectiveness of encryption and decryption and improving the security of external files.

[0067] In some optional implementations, regenerating a new public key and a new private key using the employee number includes:

[0068] Change the preset encryption algorithm to get a new encryption algorithm.

[0069] A new key pair is generated based on the employee number using a new encryption algorithm. The new key pair includes a new public key and a new private key.

[0070] Specifically, whether the public key or the private key is leaked, the key pair needs to be changed. The change method is to regenerate a new public key and a new private key. The new public key and the new private key can be directly regenerated using the original preset encryption algorithm, or the preset encryption algorithm can be changed to obtain a new encryption algorithm. The new encryption algorithm is used to generate a new key pair based on the employee number. The new key pair includes a new public key and a new private key. The preset encryption algorithm can prevent the new key pair from being leaked again, thereby improving the security and reliability of the new key pair.

[0071] The encryption and decryption method for external files provided in this embodiment increases the difficulty of cracking the key pair by replacing the key pair in a more preset encryption algorithm, improves the effectiveness of the key pair, and provides a high degree of confidentiality for the external files.

[0072] In this embodiment, a method for encrypting and decrypting external files is provided, which can be used in the above-mentioned mobile terminals, such as mobile phones, tablet computers, etc. Figure 5 is a flow chart of a method for encrypting and decrypting an external file according to an embodiment of the present invention. Figure 5 As shown, the process includes the following steps:

[0073] Step S501, obtaining an external file, and encrypting the external file using a public key to obtain an encrypted file.

[0074] Specifically, the above step S501 includes:

[0075] Step S5011, obtaining the byte stream and public key of the external file.

[0076] Specifically, Figure 6 As shown, when an employee copies data to a removable storage device (such as a USB flash drive), uploads files to an external network, or sends files through instant messaging software, the network security module 101 will monitor these actions and treat the corresponding files as "external files". External files are transmitted in the form of byte streams, so the monitoring of files can be achieved by monitoring whether the byte stream of the file appears. The byte stream refers to the binary of the file, that is, the lowest layer of bytes. When the byte stream is monitored, it means that the corresponding file is being transmitted externally. When the file is transmitted externally, the corresponding file is determined based on the monitored byte stream, and the public key is directly obtained from the employee's computer.

[0077] Step S5012, using the public key to encrypt the byte stream of the external file, to obtain an encrypted byte stream as an encrypted file.

[0078] Specifically, the public key in the employee's computer is used to encrypt the byte stream of the external file to obtain an encrypted file of the encrypted byte stream. When decrypting, the encrypted file is decrypted to obtain the byte stream of the external file. The byte stream of the external file is converted into the external file according to the preset rules to realize the decryption process. This is only an example, but not limited to this. The encryption of the byte stream is real-time and imperceptible.

[0079] The encryption and decryption method for externally transmitted files provided in this embodiment ensures that the encryption operation is only for externally transmitted files through the byte stream generated when the encrypted files are transmitted externally, avoids affecting the normal use of non-externally transmitted files, and improves the file transmission efficiency under the premise of ensuring the security of externally transmitted files.

[0080] Step S502: Decrypt the encrypted file using the private key to obtain a decrypted file. Figure 4 The step S402 is not described again here.

[0081] Step S503, obtaining an approval application, and approving whether the operation of the decrypted file is allowed according to the importance of the decrypted file and the employee level corresponding to the approval application. If the operation is allowed, the approval is passed.

[0082] Specifically, the above step S503 includes:

[0083] Step S5031: If the importance level of the decrypted file matches the employee level corresponding to the approval application, the decrypted file operation is allowed and the approval is passed.

[0084] Step S5032: If the importance level of the decrypted file does not match the employee level corresponding to the approval application, the decrypted file operation is not allowed and the approval is not passed.

[0085] Specifically, after the external file is decrypted, the employee goes through the approval process. During the approval process, the approver can view the decrypted external file and determine the importance level of the external file. Then, based on whether the level of the employee submitting the approval matches the importance level of the external file, that is, whether the level of the employee submitting the approval is allowed to view and operate the external file externally, if allowed, the approval is passed, and the employee can see the decrypted external file and download it; if not allowed, the employee is notified that the approval is not passed.

[0086] The encryption and decryption method for external files provided in this embodiment ensures the security of external files taken out of the company by encrypting the external files, avoids the leakage of important data, and meets the needs of employees to work from home when necessary through the approval management of the decryption process, which is more flexible. In the approval process, the importance of the external files and the level of the employees are matched to determine whether the approval is passed, thereby ensuring the safe use of files of different levels and improving the security of file management.

[0087] The encryption and decryption system for externally transmitted files in this embodiment is presented in the form of functional units, where the units refer to ASIC (Application Specific Integrated Circuit) circuits, processors and memories that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0088] The embodiment of the present invention also provides a computer device having the above Figure 1 The encryption and decryption system of the outbound files shown.

[0089] See also Figure 7 , Figure 7 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 7As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.

[0090] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0091] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0092] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0093] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0094] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0095] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0096] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. An encryption and decryption system for externally transmitted files, characterized in that: The system comprises: A network security module, used to obtain an external file and encrypt the external file using a public key to obtain an encrypted file; A file decryption module, used to decrypt the encrypted file using a private key to obtain a decrypted file; The approval module is used to obtain the approval application, and approve whether the operation of the decrypted file is allowed according to the importance of the decrypted file and the employee level corresponding to the approval application. If the operation is allowed, the approval is passed.

2. The system according to claim 1, characterized in that The external files include: files copied from company computers to removable storage devices or uploaded to the external network.

3. The system according to claim 1, characterized in that The public key and the private key are a key pair automatically generated according to the employee number using a preset encryption algorithm.

4. A method for encrypting and decrypting an external file, characterized in that: The encryption and decryption system for externally transmitted files according to any one of claims 1 to 3, the method comprising: Obtaining an external file, and encrypting the external file using a public key to obtain an encrypted file; Decrypt the encrypted file using the private key to obtain the decrypted file; An approval application is obtained, and whether the operation of the decrypted file is allowed is approved according to the importance of the decrypted file and the employee level corresponding to the approval application. If the operation is allowed, the approval is passed.

5. The method according to claim 4, characterized in that According to the importance of the decrypted file and the employee level corresponding to the approval application, whether the decrypted file is allowed to be operated is approved, including: If the importance level of the decrypted file matches the employee level corresponding to the approval application, the decrypted file is allowed to be operated and the approval is passed; If the importance level of the decrypted file does not match the employee level corresponding to the approval application, the decrypted file is not allowed to be operated and the approval is not passed.

6. The method according to claim 4, characterized in that The method of encrypting the external file using the public key to obtain the encrypted file includes: Get the byte stream and public key of the outgoing file; The byte stream of the outgoing file is encrypted using the public key to obtain an encrypted byte stream as an encrypted file.

7. The method according to claim 4, characterized in that If the public key or the private key is leaked, a new public key and a new private key are regenerated according to the employee number, and the new public key replaces the original public key, and the new private key replaces the original private key.

8. The method according to claim 7, characterized in that The method of regenerating a new public key and a new private key using the employee number includes: Change the preset encryption algorithm to obtain a new encryption algorithm; A new key pair is generated according to the employee number using a new encryption algorithm, wherein the new key pair includes a new public key and a new private key.

9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 4 to 8 by executing the computer instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 4 to 8.