A method, system and equipment for testing secure transmission
By establishing a network connection between devices, obtaining configuration information and encrypting and decrypting, the problem of poor transmission authentication compatibility between devices is solved, and an efficient and secure security testing process is achieved, which improves the user experience.
Patent Information
- Application Number
- CN202411179183.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2044-08-27
AI Technical Summary
In the prior art, different secure transmission authentication methods need to be used between different devices, resulting in poor compatibility and low efficiency of transmission authentication, which makes users inconvenient to use.
By establishing a network connection between the target master and the target secondary device, obtaining device information, sending activation instructions to obtain configuration information tables, and encrypting the main device and decrypting the files on the secondary device, evaluating the decryption process to ensure the security and consistency of the transmitted files .
It realizes fast and accurate security testing between devices, improves transmission security and operation simplicity, and improves user experience.
Smart Images

Figure CN118694688B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of encryption testing technology, and in particular to a secure transmission testing method, system, testing equipment and computer-readable storage medium. Background Art
[0002] In recent years, with the popularization of mobile communications, security issues in mobile communications are receiving more and more attention, competition among equipment manufacturers is becoming increasingly fierce, and the security of communication network transmission has been given top priority.
[0003] However, the current secure transmission authentication has problems such as low efficiency, complex operation, and insufficient security. In addition, different secure transmission authentication methods need to be used between different devices, resulting in poor compatibility of secure transmission authentication and inconvenience for users.
[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0005] The main purpose of the present invention is to provide a secure transmission testing method, system, testing equipment and computer-readable storage medium, aiming to solve the problem in the prior art that different secure transmission authentication methods need to be used between different devices, resulting in poor compatibility of complete transmission authentication and low efficiency of secure transmission authentication.
[0006] To achieve the above object, the present invention provides a method for testing secure transmission, the method comprising the following steps:
[0007] Establishing a network connection with a target main device and a target secondary device, obtaining main device information of the target main device and secondary device information of the target secondary device, and establishing a communication connection between the target main device and the target secondary device according to the main device information and the secondary device information;
[0008] Sending the activation instruction input by the user to the target primary device and the target secondary device respectively, and receiving the primary configuration information table sent by the target primary device according to the activation instruction and the secondary configuration information table sent by the target secondary device according to the activation instruction;
[0009] Sending the encryption instruction in the master configuration information table to the target master device, receiving the target file sent by the target master device, and controlling the target master device to send the target file to the target slave device, wherein the target file is obtained by the target master device encrypting the stored transmission file;
[0010] The decryption instruction in the secondary configuration information table is sent to the target secondary device, and the target secondary device is controlled to perform decryption processing on the target file and evaluate the decryption processing process to obtain a decryption result.
[0011] Optionally, the test method for secure transmission, wherein the establishing a network connection with a target master device and a target slave device, obtaining master device information of the target master device and slave device information of the target slave device, and establishing a communication connection between the target master device and the target slave device according to the master device information and the slave device information, specifically includes:
[0012] Establish a network connection with the target master device, and obtain the master device IP address and master device ID of the target master device;
[0013] Establishing a network connection with a target secondary device, and obtaining a secondary device IP address and a secondary device ID of the target secondary device;
[0014] According to the master device IP address, the master device ID, the slave device IP address and the slave device ID, the target master device and the target slave device are controlled to establish a communication connection.
[0015] Optionally, the test method for secure transmission, wherein the sending of the activation instruction input by the user to the target primary device and the target secondary device respectively, and receiving the primary configuration information table sent by the target primary device according to the activation instruction and the secondary configuration information table sent by the target secondary device according to the activation instruction, specifically comprises:
[0016] Acquire an activation instruction input by a user, and send the activation instruction to the target primary device and the target secondary device respectively;
[0017] A main configuration information table pre-stored in the target main device and a sub-configuration information table pre-stored in the target sub-device are received respectively.
[0018] Optionally, the test method for secure transmission, wherein the step of respectively receiving a main configuration information table pre-stored in the target main device and a sub-configuration information table pre-stored in the target sub-device, further comprises:
[0019] The main configuration information table and the secondary configuration information table are compared. If the main configuration information table and the secondary configuration information table do not match, a first warning message is generated to prompt a user to modify the main configuration information table or the secondary configuration information table.
[0020] Optionally, the test method for secure transmission, wherein the step of sending the encryption instruction in the master configuration information table to the target master device, receiving the target file sent by the target master device, and controlling the target master device to send the target file to the target slave device, specifically includes:
[0021] Obtaining a transmission instruction from a user, and determining a transmission file stored in the target host device that needs to be sent according to the transmission instruction;
[0022] Sending the encryption instruction in the master configuration information table to the target master device, controlling the target master device to encrypt the transmission file to obtain the target file;
[0023] The transmission instruction is sent to the target master device, and the target master device is controlled to send the target file to the target slave device.
[0024] Optionally, the test method for secure transmission, wherein sending the decryption instruction in the secondary configuration information table to the target secondary device, controlling the target secondary device to perform decryption processing on the target file and evaluating the decryption processing process to obtain the decryption result, specifically includes:
[0025] After receiving the file receiving information sent by the target secondary device, sending the decryption instruction of the secondary configuration information table to the target secondary device, wherein the file receiving information is generated by the target secondary device according to the received target file;
[0026] Controlling the target secondary device to decrypt the target file, and receiving a decryption time and a decryption file sent by the target secondary device, wherein the decryption time and the decryption file are generated when the target secondary device decrypts the target file;
[0027] The decryption time and the decrypted file are analyzed to obtain a decryption score.
[0028] Optionally, the test method for secure transmission, wherein the step of controlling the target secondary device to decrypt the target file and receiving the decryption time and the decrypted file sent by the target secondary device, further comprises:
[0029] The decrypted file is compared with the transmission file, and if the decrypted file is inconsistent with the transmission file, a second warning message is generated.
[0030] In addition, to achieve the above-mentioned purpose, the present invention further provides a test system for secure transmission, wherein the test system for secure transmission comprises:
[0031] A device connection module, used to establish a network connection with a target main device and a target secondary device, obtain the main device information of the target main device and the secondary device information of the target secondary device, and establish a communication connection between the target main device and the target secondary device according to the main device information and the secondary device information;
[0032] An instruction configuration module, used to send the activation instruction input by the user to the target primary device and the target secondary device respectively, and receive the primary configuration information table sent by the target primary device according to the activation instruction and the secondary configuration information table sent by the target secondary device according to the activation instruction;
[0033] a file encryption module, used to send the encryption instruction in the main configuration information table to the target master device, receive the target file sent by the target master device, and control the target master device to send the target file to the target slave device, wherein the target file is obtained by the target master device encrypting the stored transmission file;
[0034] The decryption evaluation module is used to send the decryption instruction in the secondary configuration information table to the target secondary device, control the target secondary device to perform decryption processing on the target file and evaluate the decryption processing process to obtain a decryption result.
[0035] In addition, to achieve the above-mentioned purpose, the present invention also provides a testing device, wherein the testing device includes: a memory, a processor, and a secure transmission test program stored in the memory and executable on the processor, wherein the secure transmission test program implements the steps of the secure transmission test method as described above when executed by the processor.
[0036] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a secure transmission test program, and when the secure transmission test program is executed by a processor, the steps of the secure transmission test method as described above are implemented.
[0037] In the present invention, a network connection is established with a target main device and a target secondary device, and the main device information of the target main device and the secondary device information of the target secondary device are obtained, and a communication connection is established between the target main device and the target secondary device based on the main device information and the secondary device information; an activation instruction input by a user is sent to the target main device and the target secondary device respectively, and a main configuration information table sent by the target main device according to the activation instruction and a secondary configuration information table sent by the target secondary device according to the activation instruction are received; an encryption instruction in the main configuration information table is sent to the target main device, a target file sent by the target main device is received, and the target main device is controlled to send the target file to the target secondary device, wherein the target file is obtained by the target main device encrypting a stored transmission file; a decryption instruction in the secondary configuration information table is sent to the target secondary device, and the target secondary device is controlled to decrypt the target file and evaluate the decryption process to obtain a decryption result. The present invention connects two devices for data transmission, controls the devices to encrypt, transmit and decrypt the transmission files in the form of control instructions, and evaluates the encryption and decryption process. On the basis of quickly and accurately completing the security test between the devices, the security of the transmission between the devices is guaranteed, and the operation of the security test is also simplified, making it more convenient for users to use and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is a flow chart of a preferred embodiment of the test method for secure transmission of the present invention;
[0039] Figure 2 It is a schematic diagram of configuration information of a preferred embodiment of the test method for secure transmission of the present invention;
[0040] Figure 3 It is a schematic diagram of equipment connection of a preferred embodiment of the test method for secure transmission of the present invention;
[0041] Figure 4 It is a communication schematic diagram of a preferred embodiment of the test method for secure transmission of the present invention;
[0042] Figure 5 It is a test schematic diagram of a preferred embodiment of the test method for secure transmission of the present invention;
[0043] Figure 6 It is an information receiving display diagram of a preferred embodiment of the test method for secure transmission of the present invention;
[0044] Figure 7 It is a file import diagram of a preferred embodiment of the test method for secure transmission of the present invention;
[0045] Figure 8It is a result display diagram of a preferred embodiment of the test method for secure transmission of the present invention;
[0046] Fig. 9 It is a schematic diagram of the principle of a preferred embodiment of the test system for secure transmission of the present invention;
[0047] Fig.10 Schematic diagram of the operating environment of a preferred embodiment of the testing device of the present invention. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0049] The test method for secure transmission described in the preferred embodiment of the present invention is as follows: Figure 1 As shown, the test method for secure transmission includes the following steps:
[0050] Step S10, establish a network connection with the target main device and the target secondary device, obtain the main device information of the target main device and the secondary device information of the target secondary device, and establish a communication connection between the target main device and the target secondary device according to the main device information and the secondary device information.
[0051] Specifically, a network connection is established with a target main device, and the main device IP address and main device ID of the target main device are obtained; a network connection is established with a target secondary device, and the secondary device IP address and secondary device ID of the target secondary device are obtained; and according to the main device IP address, the main device ID, the secondary device IP address and the secondary device ID, the target main device and the target secondary device are controlled to establish a communication connection.
[0052] Among them, Figure 2 As shown, you can open a CMD (command prompt) window to enter commands to control the target main device and the target sub-device, establish network connections with the target main device and the target sub-device respectively, and import data acquisition and analysis files into the two devices, so that the target main device and the target sub-device can analyze and verify the transmitted data, and obtain the main device information and sub-device information of the two devices at the same time, so that the target main device and the target sub-device can be connected to each other, thereby realizing targeted data transmission.
[0053] Step S20: Send the activation instruction input by the user to the target primary device and the target secondary device respectively, and receive the primary configuration information table sent by the target primary device according to the activation instruction and the secondary configuration information table sent by the target secondary device according to the activation instruction.
[0054] Specifically, an activation instruction input by a user is obtained, and the activation instruction is sent to the target main device and the target secondary device respectively; and a main configuration information table pre-stored in the target main device and a secondary configuration information table pre-stored in the target secondary device are received respectively.
[0055] Among them, Figure 3 and Figure 4 As shown, by using the test tool (for example, softbus_tool), by entering the activation command, you can view the relevant prompts of the target master device: OpenSession succ, sessionId = 1, so as to determine that the target master device is activated successfully. The same operation can be taken for the target slave device. At this time, the corresponding main configuration information table and slave configuration information table will be displayed in the CMD windows of the target master device and the target slave device to help users understand the test process, simplify the complexity of users' security transmission tests, and improve the user experience.
[0056] Furthermore, the main configuration information table and the secondary configuration information table are compared, and if the main configuration information table and the secondary configuration information table do not match, a first warning message is generated to prompt the user to modify the main configuration information table or the secondary configuration information table.
[0057] Among them, after obtaining the main configuration information table of the target main device and the sub-configuration information table of the target sub-device, the information tables of the two are compared. If the configuration information tables of the two do not match, it means that the target main device and the target sub-device have not successfully established a connection. At this time, it is necessary to generate a first warning information to prompt the user to check whether the two devices are connected successfully; if the two devices are connected successfully and the configuration information tables of the two still do not match, the user needs to be prompted to update the configuration information table or the sub-configuration information table to adapt to the current security transmission test conditions to avoid subsequent detection errors.
[0058] Step S30, sending the encryption instruction in the main configuration information table to the target master device, receiving the target file sent by the target master device, and controlling the target master device to send the target file to the target slave device, wherein the target file is obtained by the target master device encrypting the stored transmission file.
[0059] Specifically, the user's transmission instruction is obtained, and the transmission file that needs to be sent and is stored in the target master device is determined according to the transmission instruction; the encryption instruction in the main configuration information table is sent to the target master device, and the target master device is controlled to encrypt the transmission file to obtain the target file; the transmission instruction is sent to the target master device, and the target master device is controlled to send the target file to the target slave device.
[0060] The target file is encrypted according to the transmission instruction of the user, and then the target file is sent to the target secondary device according to the sending instruction input by the user. Figure 5 as shown).
[0061] Step S40: Send the decryption instruction in the secondary configuration information table to the target secondary device, control the target secondary device to perform decryption processing on the target file and evaluate the decryption processing process to obtain a decryption result.
[0062] Specifically, after receiving the file reception information sent by the target secondary device, the decryption instruction of the secondary configuration information table is sent to the target secondary device, wherein the file reception information is generated by the target secondary device according to the received target file; the target secondary device is controlled to decrypt the target file, and the decryption time and the decryption file sent by the target secondary device are received, wherein the decryption time and the decryption file are generated when the target secondary device decrypts the target file; the decryption time and the decryption file are analyzed to obtain a decryption score.
[0063] Among them, Figure 6 As shown, before decryption, according to the input check instruction, it can be determined whether the target secondary device has received the target file sent by the target main device. If the target file is not found, it is necessary to check whether the target main device has successfully sent the target file and whether the target main device and the target secondary device have successfully established a connection, and send the relevant inspection results to the user to prompt the user to make timely adjustments; further, if the target file is detected, the target file is saved in the target main device and the test device through different commands, such as Figure 7 As shown in the figure, use "tcpdump_aarch64 -i wlan0 src host 192.168.1.100 and dst host 192.168.1.101 -w / data / chen01" to save the target file to the target host device, use the "hdc -t 150100414a54443452060d354c1fb800 filerecv / data / chen01 C:\Users\Administrator\Desktop\hdc_std\" command to save the target file to the test device, and use the tool to check whether the target file is encrypted (such as Figure 8 As shown), the target file is saved in the target host device and the test device respectively, which can be used to verify the target file after decryption to improve the accuracy of file transmission and improve the user's testing efficiency.
[0064] Furthermore, the decrypted file is compared with the transmission file, and if the decrypted file is inconsistent with the transmission file, a second warning message is generated.
[0065] Among them, after the target file is decrypted, it is necessary to compare the consistency of the decrypted file and the transmitted file, and generate a corresponding decryption score based on the decryption time and the accuracy and integrity of the target file in the decryption process. The security and accuracy of the current secure transmission test are tested based on the decryption score to avoid deviations in the content of the transmitted file during encryption or decryption, thereby ensuring the accuracy and integrity of the transmitted file during the encryption and decryption processes.
[0066] The present invention connects two devices for data transmission, controls the devices to encrypt, transmit and decrypt the transmission files in the form of control instructions, and evaluates the encryption and decryption process. On the basis of quickly and accurately completing the security test between the devices, the security of the transmission between the devices is guaranteed, and the operation of the security test is also simplified, making it more convenient for users to use and improving the user experience.
[0067] Furthermore, if Fig. 9 As shown, based on the above-mentioned secure transmission test method, the present invention also provides a secure transmission test system accordingly, wherein the secure transmission test system includes:
[0068] The device connection module 51 is used to establish a network connection with a target main device and a target secondary device, obtain the main device information of the target main device and the secondary device information of the target secondary device, and establish a communication connection between the target main device and the target secondary device according to the main device information and the secondary device information;
[0069] The instruction configuration module 52 is used to send the activation instruction input by the user to the target primary device and the target secondary device respectively, and receive the primary configuration information table sent by the target primary device according to the activation instruction and the secondary configuration information table sent by the target secondary device according to the activation instruction;
[0070] A file encryption module 53 is used to send the encryption instruction in the main configuration information table to the target master device, receive the target file sent by the target master device, and control the target master device to send the target file to the target slave device, wherein the target file is obtained by the target master device encrypting the stored transmission file;
[0071] The decryption evaluation module 54 is used to send the decryption instruction in the secondary configuration information table to the target secondary device, control the target secondary device to perform decryption processing on the target file and evaluate the decryption processing process to obtain a decryption result.
[0072] Furthermore, if Fig.10 As shown, based on the above-mentioned secure transmission testing method and system, the present invention also provides a testing device accordingly, and the testing device includes a processor 10, a memory 20 and a display 30. Fig.10 Only some of the components of the test device are shown, but it should be understood that implementation of all of the components shown is not required, and more or fewer components may be implemented instead.
[0073] In some embodiments, the memory 20 may be an internal storage unit of the test device, such as a hard disk or memory of the test device. In other embodiments, the memory 20 may also be an external storage device of the test device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the test device. Further, the memory 20 may also include both an internal storage unit of the test device and an external storage device. The memory 20 is used to store application software and various types of data installed on the test device, such as the program code of the installed test device. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, a securely transmitted test program 40 is stored on the memory 20, and the securely transmitted test program 40 can be executed by the processor 10, thereby realizing the secure transmission test method in the present application.
[0074] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the test method for secure transmission.
[0075] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the test device and to display a visual user interface. The components 10-30 of the test device communicate with each other via a system bus.
[0076] In one embodiment, when the processor 10 executes the test program 40 securely transmitted in the memory 20, the following steps are implemented:
[0077] Establishing a network connection with a target main device and a target secondary device, obtaining main device information of the target main device and secondary device information of the target secondary device, and establishing a communication connection between the target main device and the target secondary device according to the main device information and the secondary device information;
[0078] Sending the activation instruction input by the user to the target primary device and the target secondary device respectively, and receiving the primary configuration information table sent by the target primary device according to the activation instruction and the secondary configuration information table sent by the target secondary device according to the activation instruction;
[0079] Sending the encryption instruction in the master configuration information table to the target master device, receiving the target file sent by the target master device, and controlling the target master device to send the target file to the target slave device, wherein the target file is obtained by the target master device encrypting the stored transmission file;
[0080] The decryption instruction in the secondary configuration information table is sent to the target secondary device, and the target secondary device is controlled to perform decryption processing on the target file and evaluate the decryption processing process to obtain a decryption result.
[0081] The step of establishing a network connection with a target main device and a target secondary device, obtaining the main device information of the target main device and the secondary device information of the target secondary device, and establishing a communication connection between the target main device and the target secondary device according to the main device information and the secondary device information, specifically includes:
[0082] Establish a network connection with the target master device, and obtain the master device IP address and master device ID of the target master device;
[0083] Establishing a network connection with a target secondary device, and obtaining a secondary device IP address and a secondary device ID of the target secondary device;
[0084] According to the master device IP address, the master device ID, the slave device IP address and the slave device ID, the target master device and the target slave device are controlled to establish a communication connection.
[0085] The sending of the activation instruction input by the user to the target primary device and the target secondary device respectively, and receiving the primary configuration information table sent by the target primary device according to the activation instruction and the secondary configuration information table sent by the target secondary device according to the activation instruction specifically include:
[0086] Acquire an activation instruction input by a user, and send the activation instruction to the target primary device and the target secondary device respectively;
[0087] A main configuration information table pre-stored in the target main device and a sub-configuration information table pre-stored in the target sub-device are received respectively.
[0088] The step of respectively receiving a main configuration information table pre-stored in the target main device and a sub-configuration information table pre-stored in the target sub-device further comprises:
[0089] The main configuration information table and the secondary configuration information table are compared. If the main configuration information table and the secondary configuration information table do not match, a first warning message is generated to prompt a user to modify the main configuration information table or the secondary configuration information table.
[0090] The step of sending the encryption instruction in the master configuration information table to the target master device, receiving the target file sent by the target master device, and controlling the target master device to send the target file to the target slave device specifically includes:
[0091] Obtaining a transmission instruction from a user, and determining a transmission file stored in the target host device that needs to be sent according to the transmission instruction;
[0092] Sending the encryption instruction in the master configuration information table to the target master device, controlling the target master device to encrypt the transmission file to obtain the target file;
[0093] The transmission instruction is sent to the target master device, and the target master device is controlled to send the target file to the target slave device.
[0094] The sending of the decryption instruction in the secondary configuration information table to the target secondary device, controlling the target secondary device to perform decryption processing on the target file and evaluating the decryption processing process to obtain the decryption result specifically includes:
[0095] After receiving the file receiving information sent by the target secondary device, sending the decryption instruction of the secondary configuration information table to the target secondary device, wherein the file receiving information is generated by the target secondary device according to the received target file;
[0096] Controlling the target secondary device to decrypt the target file, and receiving a decryption time and a decryption file sent by the target secondary device, wherein the decryption time and the decryption file are generated when the target secondary device decrypts the target file;
[0097] The decryption time and the decrypted file are analyzed to obtain a decryption score.
[0098] The step of controlling the target secondary device to decrypt the target file and receiving the decryption time and the decrypted file sent by the target secondary device further includes:
[0099] The decrypted file is compared with the transmission file, and if the decrypted file is inconsistent with the transmission file, a second warning message is generated.
[0100] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a secure transmission test program, and when the secure transmission test program is executed by a processor, the steps of the secure transmission test method as described above are implemented.
[0101] In summary, the present invention provides a secure transmission testing method and related equipment, the method comprising: establishing a network connection with a target main device and a target secondary device, and obtaining the main device information of the target main device and the secondary device information of the target secondary device, and establishing a communication connection between the target main device and the target secondary device based on the main device information and the secondary device information; sending an activation instruction input by a user to the target main device and the target secondary device respectively, receiving a main configuration information table sent by the target main device according to the activation instruction and a secondary configuration information table sent by the target secondary device according to the activation instruction; sending an encryption instruction in the main configuration information table to the target main device, receiving a target file sent by the target main device, and controlling the target main device to send the target file to the target secondary device, wherein the target file is obtained by the target main device encrypting a stored transmission file; sending a decryption instruction in the secondary configuration information table to the target secondary device, controlling the target secondary device to decrypt the target file and evaluating the decryption process to obtain a decryption result. The present invention connects two devices for data transmission, controls the devices to encrypt, transmit and decrypt the transmission files in the form of control instructions, and evaluates the encryption and decryption process. On the basis of quickly and accurately completing the security test between the devices, the security of the transmission between the devices is guaranteed, and the operation of the security test is also simplified, making it more convenient for users to use and improving the user experience.
[0102] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or test device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or test device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or test device including the element.
[0103] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium that can be read by a computer, and the program can include the processes of the above-mentioned method embodiments when executed. The computer-readable storage medium can be a memory, a disk, an optical disk, etc.
[0104] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A method for testing secure transmission, characterized in that: The test method for secure transmission includes: Establishing a network connection with a target main device and a target secondary device, obtaining main device information of the target main device and secondary device information of the target secondary device, and establishing a communication connection between the target main device and the target secondary device according to the main device information and the secondary device information; Sending the activation instruction input by the user to the target primary device and the target secondary device respectively, and receiving the primary configuration information table sent by the target primary device according to the activation instruction and the secondary configuration information table sent by the target secondary device according to the activation instruction; The step of sending the activation instruction input by the user to the target primary device and the target secondary device respectively, and receiving the primary configuration information table sent by the target primary device according to the activation instruction and the secondary configuration information table sent by the target secondary device according to the activation instruction specifically includes: Acquire an activation instruction input by a user, and send the activation instruction to the target primary device and the target secondary device respectively; Importing the data analysis file into the target master device and the target slave device to analyze and verify the transmitted data; Respectively receiving a main configuration information table pre-stored in the target main device and a sub-configuration information table pre-stored in the target sub-device; Comparing the main configuration information table with the secondary configuration information table, if the main configuration information table and the secondary configuration information table do not match, generating a first warning message to prompt a user to modify the main configuration information table or the secondary configuration information table; Sending the encryption instruction in the master configuration information table to the target master device, receiving the target file sent by the target master device, and controlling the target master device to send the target file to the target slave device, wherein the target file is obtained by the target master device encrypting the stored transmission file; The sending of the encryption instruction in the main configuration information table to the target master device, receiving the target file sent by the target master device, and controlling the target master device to send the target file to the target slave device specifically includes: Obtaining a transmission instruction from a user, and determining a transmission file stored in the target host device that needs to be sent according to the transmission instruction; Sending the encryption instruction in the master configuration information table to the target master device, controlling the target master device to encrypt the transmission file to obtain the target file; Sending the transmission instruction to the target master device, and controlling the target master device to send the target file to the target slave device; The target file is saved in the target host device and the test device through different commands, and a tool is used to check whether the target file has been encrypted; Sending the decryption instruction in the secondary configuration information table to the target secondary device, controlling the target secondary device to perform decryption processing on the target file and evaluating the decryption processing process to obtain a decryption result; The sending of the decryption instruction in the secondary configuration information table to the target secondary device, controlling the target secondary device to perform decryption processing on the target file and evaluating the decryption processing process to obtain the decryption result specifically includes: After receiving the file receiving information sent by the target secondary device, sending the decryption instruction of the secondary configuration information table to the target secondary device, wherein the file receiving information is generated by the target secondary device according to the received target file; Controlling the target secondary device to decrypt the target file, and receiving a decryption time and a decryption file sent by the target secondary device, wherein the decryption time and the decryption file are generated when the target secondary device decrypts the target file; Analyze the decryption time and the decrypted file to obtain a decryption score; The decrypted file is compared with the transmission file, and if the decrypted file is inconsistent with the transmission file, a second warning message is generated.
2. The method for testing secure transmission according to claim 1, characterized in that: The establishing of a network connection with a target main device and a target secondary device, acquiring main device information of the target main device and secondary device information of the target secondary device, and establishing a communication connection between the target main device and the target secondary device according to the main device information and the secondary device information, specifically includes: Establish a network connection with the target master device, and obtain the master device IP address and master device ID of the target master device; Establishing a network connection with a target secondary device, and obtaining a secondary device IP address and a secondary device ID of the target secondary device; According to the master device IP address, the master device ID, the slave device IP address and the slave device ID, the target master device and the target slave device are controlled to establish a communication connection.
3. A secure transmission test system, characterized in that: The test system for secure transmission comprises: A device connection module, used to establish a network connection with a target main device and a target secondary device, obtain the main device information of the target main device and the secondary device information of the target secondary device, and establish a communication connection between the target main device and the target secondary device according to the main device information and the secondary device information; An instruction configuration module, used to send the activation instruction input by the user to the target primary device and the target secondary device respectively, and receive the primary configuration information table sent by the target primary device according to the activation instruction and the secondary configuration information table sent by the target secondary device according to the activation instruction; The step of sending the activation instruction input by the user to the target primary device and the target secondary device respectively, and receiving the primary configuration information table sent by the target primary device according to the activation instruction and the secondary configuration information table sent by the target secondary device according to the activation instruction specifically includes: Acquire an activation instruction input by a user, and send the activation instruction to the target primary device and the target secondary device respectively; Importing the data analysis file into the target master device and the target slave device to analyze and verify the transmitted data; Respectively receiving a main configuration information table pre-stored in the target main device and a sub-configuration information table pre-stored in the target sub-device; Comparing the main configuration information table with the secondary configuration information table, if the main configuration information table and the secondary configuration information table do not match, generating a first warning message to prompt a user to modify the main configuration information table or the secondary configuration information table; a file encryption module, used to send the encryption instruction in the main configuration information table to the target master device, receive the target file sent by the target master device, and control the target master device to send the target file to the target slave device, wherein the target file is obtained by the target master device encrypting the stored transmission file; The sending of the encryption instruction in the main configuration information table to the target master device, receiving the target file sent by the target master device, and controlling the target master device to send the target file to the target slave device specifically includes: Obtaining a transmission instruction from a user, and determining a transmission file stored in the target host device that needs to be sent according to the transmission instruction; Sending the encryption instruction in the master configuration information table to the target master device, controlling the target master device to encrypt the transmission file to obtain the target file; Sending the transmission instruction to the target master device, and controlling the target master device to send the target file to the target slave device; The target file is saved in the target host device and the test device through different commands, and a tool is used to check whether the target file has been encrypted; A decryption evaluation module, used to send the decryption instruction in the secondary configuration information table to the target secondary device, control the target secondary device to perform decryption processing on the target file and evaluate the decryption processing process to obtain a decryption result; The sending of the decryption instruction in the secondary configuration information table to the target secondary device, controlling the target secondary device to perform decryption processing on the target file and evaluating the decryption processing process to obtain the decryption result specifically includes: After receiving the file receiving information sent by the target secondary device, sending the decryption instruction of the secondary configuration information table to the target secondary device, wherein the file receiving information is generated by the target secondary device according to the received target file; Controlling the target secondary device to decrypt the target file, and receiving a decryption time and a decryption file sent by the target secondary device, wherein the decryption time and the decryption file are generated when the target secondary device decrypts the target file; Analyze the decryption time and the decrypted file to obtain a decryption score; The decrypted file is compared with the transmission file, and if the decrypted file is inconsistent with the transmission file, a second warning message is generated.
4. A testing device, characterized in that: The testing device comprises: a memory, a processor, and a secure transmission testing program stored in the memory and executable on the processor. When the secure transmission testing program is executed by the processor, the steps of the secure transmission testing method as described in any one of claims 1-2 are implemented.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a secure transmission test program, and when the secure transmission test program is executed by a processor, the steps of the secure transmission test method according to any one of claims 1-2 are implemented.