Civil aviation airborne terminal data transmission method, device and equipment and storage medium

The authentication response message is generated in the data transmission of civil aviation airborne terminals through salt value and encryption algorithms. The data transmission security problem caused by plain text password authentication is solved, and a more secure authentication process is realized. Data transmission.

CN118972074APending Publication Date: 2024-11-15CHINA ELECTRONICS TECHNOLOGY AVIONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411330606.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-24
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

In the data transmission of existing civil aviation airborne terminals, plain-text password authentication is easily leaked, resulting in impairment of data transmission security.

Method used

The authentication response message is generated using salt value and encryption algorithm, and the authentication process is ensured through exclusive OR operation and hash value verification, and data transmission is carried out after the authentication is passed.

Benefits of technology

Improves the security of data transmission, prevents password leakage and unauthorized data access, and ensures the security and reliability of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118972074A_ABST
    Figure CN118972074A_ABST
Patent Text Reader

Abstract

The invention discloses a civil aviation onboard terminal data transmission method, device and equipment and a storage medium, and relates to the field of data transmission security, and the method comprises the steps: sending an authentication request message to a server, so that the server reads a stored first salt value from a storage medium of the server after receiving the authentication request message, randomly generates a second salt value, and sends the second salt value to the server; generating an authentication response message based on the first salt value and the second salt value, and sending the authentication response message to the civil aviation airborne terminal; analyzing the authentication response message to generate an authentication confirmation message according to the obtained first salt value, the second salt value and the received user password; the authentication confirmation message is sent to the server, so that the server generates an authentication response message and sends the authentication response message to the civil aviation onboard terminal; and verifying the received authentication response message, and sending transmission data to the server based on a preset data sending rule after the verification is passed. Therefore, a safer authentication process can be set, and the security of data transmission is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data transmission security, and in particular to a method, device, equipment and storage medium for data transmission on a civil aviation airborne terminal. Background Art

[0002] With the development of civil aviation airborne terminals, the security of data transmission between terminals has attracted much attention. Usually, the client enters a password to authenticate with the server. If plain text is used for password authentication, the password is very easy to leak during the authentication process. Or if the server uses plain text password storage, the password is also very easy to leak, resulting in the security of data transmission being compromised. Summary of the invention

[0003] In view of this, the purpose of the present invention is to provide a method, device, equipment and storage medium for data transmission of civil aviation airborne terminals, which can set up a safer authentication process and perform data transmission after authentication, thereby ensuring the security of data transmission. The specific scheme is as follows:

[0004] In a first aspect, the present application discloses a civil aviation airborne terminal data transmission method, which is applied to a civil aviation airborne terminal, comprising:

[0005] Sending an authentication request message to a server, so that after receiving the authentication request message, the server reads a first salt value stored in a server storage medium, randomly generates a second salt value, generates an authentication response message based on the first salt value and the second salt value, and sends the authentication response message to the civil aviation airborne terminal;

[0006] Parsing the received authentication response message to generate an authentication confirmation message according to the first salt value, the second salt value obtained by parsing, and the received user password;

[0007] Sending the authentication confirmation message to the server so that the server generates an authentication response message corresponding to the authentication confirmation message, and sending the authentication response message to the civil aviation airborne terminal;

[0008] The received authentication response message is verified, and after the verification is passed, data is exchanged with the server based on the preset data sending rules.

[0009] Optionally, reading the first salt value stored in the storage medium of the server, randomly generating a second salt value, generating an authentication response message based on the first salt value and the second salt value, and sending the authentication response message to the civil aviation airborne terminal includes:

[0010] Reading a first salt value stored in a server storage medium and generating a random number to convert the random number into a second salt value;

[0011] Based on a first preset XOR operation value, performing an XOR operation on the first salt value and the second salt value respectively to obtain a first target salt value corresponding to the first salt value and a second target salt value corresponding to the second salt value;

[0012] An authentication response message is generated based on the first target salt value and the second target salt value, and the authentication response message is sent to the civil aviation airborne terminal.

[0013] Optionally, the parsing the received authentication response message to generate an authentication confirmation message according to the first salt value, the second salt value obtained by parsing, and the received user password includes:

[0014] Receiving the authentication response message sent by the server, and parsing the authentication response message to determine the first target salt value and the second target salt value included in the authentication response message;

[0015] Reducing the first target salt value and the second target salt value according to the first preset XOR operation value to obtain the first salt value and the second salt value;

[0016] Performing encryption operation processing on the first salt value and the received user password by using a first preset encryption algorithm to obtain a first hash value, and performing encryption operation processing on the first hash value and the second salt value by using the first preset encryption algorithm to obtain a second hash value;

[0017] An XOR operation is performed on the first preset XOR operation value and the second Hash value to obtain a target second Hash value, and an authentication confirmation message including the target second Hash value is generated.

[0018] Optionally, generating an authentication response message corresponding to the authentication confirmation message, and sending the authentication response message to the civil aviation airborne terminal includes:

[0019] Restoring the target second Hash value based on the first preset XOR operation value to obtain the second Hash value;

[0020] Reading a preset comparison hash value stored in the server storage medium, processing the preset comparison hash value to obtain a target comparison hash value, and comparing the target comparison hash value with the second hash value to obtain a corresponding comparison result; the preset comparison hash value is a hash value obtained by performing an encryption operation on the first salt value and the user password using the first preset encryption algorithm;

[0021] The comparison result is XORed using the first preset XOR operation value to obtain a target comparison result, an authentication response message including the target comparison result is generated, and the authentication response message is sent to the civil aviation airborne terminal.

[0022] Optionally, the verifying the received authentication response message includes:

[0023] Parsing the authentication response message to determine the target comparison result in the authentication response message, and restoring the target comparison result by using the first preset XOR operation value to obtain the comparison result;

[0024] If the comparison result indicates that the target comparison hash value is consistent with the second hash value, then the verification is successful;

[0025] If the comparison result indicates that the target comparison hash value is inconsistent with the second hash value, it indicates that the verification has failed, and the process jumps to the step of sending an authentication request message to the server to re-issue the authentication request.

[0026] Optionally, the sending the transmission data to the server based on a preset data sending rule includes:

[0027] Generate a first target sequence number value;

[0028] Performing an encryption operation on the first target serial number value and the first salt value by using a second preset encryption algorithm to obtain a first encrypted serial number value;

[0029] Performing an encryption operation on the first encryption sequence value and the second salt value by using the second preset encryption algorithm to obtain a second encryption sequence value, and performing an XOR operation on the second encryption sequence value based on a second preset XOR operation value to obtain a target second encryption sequence value;

[0030] Generate a heartbeat signal including the target second encrypted sequence number value, and send the heartbeat signal to the server so that the server parses the heartbeat signal to obtain the target second encrypted sequence number value, and restores the second encrypted sequence number value based on the second preset XOR operation value to obtain the second encrypted sequence number value; compare the second encrypted sequence number value with the local target encrypted sequence number value to obtain a corresponding encrypted sequence number comparison result; generate a heartbeat response message including the encrypted sequence number comparison result, and send the heartbeat response message to the civil aviation airborne terminal;

[0031] The heartbeat response message is received, and based on the heartbeat response message, it is determined whether to perform data interaction with the server.

[0032] Optionally, determining whether to perform data interaction with the server based on the heartbeat response message includes:

[0033] Determine whether the heartbeat response message is received within a preset time range, and if the heartbeat response message is not received within the preset time range, prohibit data transmission;

[0034] If the heartbeat response message is received within the preset time range, the heartbeat response message is parsed to obtain the encrypted sequence number comparison result;

[0035] If the encrypted sequence number comparison result indicates that the second encrypted sequence number value is consistent with the target encrypted sequence number value, the first target sequence number value is self-incremented, data is transmitted to the server, and the process jumps to the step of performing encryption operation on the first target sequence number value and the first salt value by using a second preset encryption algorithm to obtain the first encrypted sequence number value, so as to perform the next round of data transmission;

[0036] If the second encrypted sequence number value and the target encrypted sequence number value are inconsistent, jump to the step of encrypting the first target sequence number value and the first salt value through the second preset encryption algorithm to obtain the first encrypted sequence number value, so as to re-transmit the heartbeat signal.

[0037] In a second aspect, the present application discloses a civil aviation airborne terminal data transmission device, which is applied to a civil aviation airborne terminal, comprising:

[0038] A first message sending module, configured to send an authentication request message to a server, so that after receiving the authentication request message, the server reads a first salt value stored in a server storage medium, randomly generates a second salt value, generates an authentication response message based on the first salt value and the second salt value, and sends the authentication response message to the civil aviation airborne terminal;

[0039] A message parsing module, used for parsing the received authentication response message to generate an authentication confirmation message according to the first salt value, the second salt value and the received user password obtained by parsing;

[0040] A second message sending module, used to send the authentication confirmation message to the server, so that the server generates an authentication response message corresponding to the authentication confirmation message, and sends the authentication response message to the civil aviation airborne terminal;

[0041] The data transmission module is used to verify the received authentication response message and, after the verification is passed, to perform data exchange with the server based on preset data sending rules.

[0042] In a third aspect, the present application discloses an electronic device, comprising:

[0043] Memory, used to store computer programs;

[0044] The processor is used to execute the computer program to implement the civil aviation airborne terminal data transmission method as described above.

[0045] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the aforementioned civil aviation airborne terminal data transmission method.

[0046] In the present application, an authentication request message is first sent to a server, so that after receiving the authentication request message, the server reads a first salt value stored in a storage medium of the server, randomly generates a second salt value, and generates an authentication response message based on the first salt value and the second salt value, and sends the authentication response message to the civil aviation airborne terminal; the received authentication response message is parsed to generate an authentication confirmation message according to the first salt value, the second salt value obtained by parsing, and the received user password; the authentication confirmation message is sent to the server, so that the server generates an authentication reply message corresponding to the authentication confirmation message, and sends the authentication reply message to the civil aviation airborne terminal; the received authentication reply message is verified, and after the verification is passed, data is interacted with the server based on a preset data sending rule. It can be seen that the method of the present application requires that the generated authentication request message be sent to the server. After receiving the authentication request message, the server needs to read the first salt value stored in the server storage medium, and randomly generate the second salt value, and then generate an authentication response message containing the first salt value and the second salt value, and send the authentication response message to the civil aviation airborne terminal. After receiving the authentication response message, it is necessary to generate an authentication confirmation message based on the first salt value, the second salt value and the password entered by the user, and send it to the server, so that after the server receives the authentication confirmation message, it replies with an authentication response message corresponding to the authentication confirmation message. The civil aviation airborne terminal needs to verify the authentication response message, and after the verification is passed, it interacts with the server based on the preset data sending rules. In this way, a safer authentication process is set up, and data transmission is performed after the authentication is passed, ensuring the security of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0048] Figure 1 This is a flow chart of a civil aviation airborne terminal data transmission method disclosed in this application;

[0049] Figure 2 A password authentication flow chart disclosed in this application;

[0050] Figure 3 This is a flow chart of another civil aviation airborne terminal data transmission method disclosed in this application;

[0051] Figure 4 A flow chart of a heartbeat signal interaction process disclosed in this application;

[0052] Figure 5 This is a schematic diagram of the structure of a civil aviation airborne terminal data transmission device disclosed in this application;

[0053] Figure 6 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0054] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0055] In the prior art, the client usually enters a password to authenticate with the server. If plain text is used for password authentication, the password is very easy to leak during the authentication process. Or if the server uses plain text password storage, the password is also very easy to leak, resulting in the security of data transmission being compromised.

[0056] In order to overcome the above technical problems, the present application discloses a civil aviation airborne terminal data transmission method, device, equipment and storage medium, which can set up a more secure authentication process and perform data transmission after the authentication is passed, ensuring the security of data transmission.

[0057] See also Figure 1 As shown, the embodiment of the present invention discloses a civil aviation airborne terminal data transmission method, which is applied to a civil aviation airborne terminal, and includes:

[0058] Step S11, sending an authentication request message to the server, so that after receiving the authentication request message, the server reads the stored first salt value from the server storage medium, randomly generates a second salt value, generates an authentication response message based on the first salt value and the second salt value, and sends the authentication response message to the civil aviation airborne terminal.

[0059] In this embodiment, Figure 2 As shown, in order to ensure the data transmission security between the civil aviation airborne terminal and the server, the civil aviation airborne terminal and the server need to perform password authentication first. First, the civil aviation airborne terminal needs to send a request authentication message to the server. After receiving the request authentication message sent by the civil aviation airborne terminal, the server needs to read the first salt value stored in the server storage medium and generate a random number to convert the random number into a second salt value. Specifically, the server needs to read the first salt value stored in the non-volatile memory, that is, the salt1 value, and then randomly generate a random number and convert the generated random number into a second salt value, that is, the salt2 value. Then, the server needs to use the first salt value based on the first pre- Assume that an XOR operation value, that is, a preset XOR value, performs an XOR operation on the first salt value and the second salt value respectively to obtain a first target salt value salt1' value corresponding to the first salt value and a second target salt value salt2' value corresponding to the second salt value. It should be noted that the first preset XOR operation value is an XOR operation value set by the user, which can be pre-stored in the civil aviation airborne terminal and the server after the setting is completed; further, after obtaining the first target salt value salt1' value and the second target salt value salt2' value, an authentication response message including the first target salt value salt1' value and the second target salt value salt2' value can be generated, and as shown Figure 2 As shown, the authentication response message is sent to the civil aviation airborne terminal.

[0060] Step S12: parsing the received authentication response message to generate an authentication confirmation message according to the first salt value, the second salt value and the received user password obtained by parsing.

[0061] In this embodiment, after receiving the authentication response message, the civil aviation airborne terminal needs to parse the authentication response message to obtain the first target salt value salt1' value and the second target salt value salt2' value contained in the authentication response message, and then use the locally stored first preset XOR operation value, that is, the preset xor value to perform XOR calculations on the first target salt value salt1' value and the second target salt value salt2' value respectively to obtain the restored first salt value salt1 value and the second salt value salt2 value.

[0062] After obtaining the first salt value salt1 and the second salt value salt2, it is necessary to perform encryption operation on the first salt value and the received user password through the first preset encryption algorithm to obtain the first hash value, and perform encryption operation on the first hash value and the second salt value through the first preset encryption algorithm to obtain the second hash value. Specifically, the first preset encryption algorithm can be set by the user. In the present application, the first preset encryption algorithm is set to the MD5 (Message-Digest Algorithm) information digest algorithm. Therefore, the password entered by the user can be calculated with salt1 by MD5 with salt value to obtain cli_hashvalue1 value, that is, the first hash value, and then the cli_hashvalue1 value and salt2 value are calculated by MD5 with salt value to obtain cli_hashvalue2 value, that is, the second hash value, and then the second hash value is XORed by the first preset XOR operation value, that is, the preset xor value to obtain the target second hash value, that is, cli_hashvalue2' value, and finally an authentication confirmation message containing the cli_hashvalue2' value is generated.

[0063] Step S13: Send the authentication confirmation message to the server so that the server generates an authentication response message corresponding to the authentication confirmation message, and sends the authentication response message to the civil aviation airborne terminal.

[0064] In this embodiment, the civil aviation onboard terminal needs to send an authentication confirmation message to the server, so that after the server receives the authentication confirmation message, it parses the authentication confirmation message to obtain the target second hash value cli_hashvalue2' value contained in the authentication confirmation message, and then restores the target second hash value cli_hashvalue2' value through the first preset exclusive OR operation value, that is, the xor value, to obtain the second hash value cli_hashvalue2 value.

[0065] Further, after obtaining the second hash value cli_hashvalue2, it is necessary to read the stored preset comparison hash value ser_hashvalue1 from the server storage medium, and then process the ser_hashvalue1 to obtain the target comparison hash value ser_hashvalue2, wherein the target comparison hash value ser_hashvalue2 is obtained by performing a salted MD5 calculation on the ser_hashvalue1 and the second salt value salt2, and further, the target comparison hash value is compared with the second hash value to obtain the corresponding comparison result pw_result. It should be noted that the preset comparison hash value ser_hashvalue1 is obtained by performing a salted MD5 calculation on the user password and the first salt value salt1.

[0066] In the next step, the comparison result pw_result needs to be XORed by the first preset XOR value xor value to obtain the target comparison result pw_result', and then an authentication response message including the target comparison result pw_result' is generated, and the authentication response message is sent to the civil aviation airborne terminal. And if the server does not receive the authentication confirmation message within 3 seconds of sending the authentication confirmation message, the authentication request message needs to be reprocessed.

[0067] Step S14: verify the received authentication response message, and after the verification is passed, perform data exchange with the server based on preset data sending rules.

[0068] In this embodiment, after receiving the authentication response message sent by the server, the authentication response message needs to be parsed to obtain the target comparison result pw_result' contained in the authentication response message, and then the target comparison result pw_result' is restored by the first preset XOR value xor value to obtain the comparison result pw_result. If the comparison result indicates that the target comparison hash value ser_hashvalue2 is consistent with the second hash value cli_hashvalue2, then the verification is passed, and the user password entered by the user is consistent with the pre-saved user password; if the comparison result indicates that the target comparison hash value ser_hashvalue2 is inconsistent with the second hash value cli_hashvalue2, then the verification is not passed. At this time, the user password entered by the user is inconsistent with the pre-saved user password, and the user needs to re-enter the password. Furthermore, if the civil aviation airborne terminal does not receive the authentication response message replied by the server within 3 seconds of sending the authentication confirmation message, it will resend the authentication request message.

[0069] It should be noted that if the verification is passed, data interaction with the server can be performed according to the preset data sending rules.

[0070] It can be seen that the method of the present application requires that the generated authentication request message be sent to the server. After receiving the authentication request message, the server needs to read the first salt value stored in the server storage medium, and randomly generate the second salt value, and then generate an authentication response message containing the first salt value and the second salt value, and send the authentication response message to the civil aviation airborne terminal. After receiving the authentication response message, it is necessary to generate an authentication confirmation message based on the first salt value, the second salt value and the password entered by the user, and send it to the server, so that after the server receives the authentication confirmation message, it replies with an authentication response message corresponding to the authentication confirmation message. The civil aviation airborne terminal needs to verify the authentication response message, and after the verification is passed, it interacts with the server based on the preset data sending rules. In this way, a safer authentication process is set up, and data transmission is performed after the authentication is passed, ensuring the security of data transmission.

[0071] Based on the above embodiments, it can be known that in this application, if the verification of the server is passed, data can be interacted with the server according to the preset data sending rules. Therefore, this embodiment describes in detail how to interact with the server according to the preset data sending rules. Figure 3 As shown, the embodiment of the present invention discloses a method for transmitting data from a civil aviation airborne terminal, comprising:

[0072] Step S21, generate a first target sequence number value.

[0073] In this embodiment, if the authentication between the civil aviation airborne terminal and the server is successful, Figure 4 As shown, the civil aviation airborne terminal should send a heartbeat signal with an encrypted sequence number every second, where the sequence number is called the cli_seq value, which is also the first target sequence number value. The cli_seq value should be accumulated from 0 after the civil aviation airborne terminal is powered on.

[0074] Step S22: perform encryption operation on the first target serial number value and the first salt value using a second preset encryption algorithm to obtain a first encrypted serial number value.

[0075] In this embodiment, it is necessary to perform encryption operation on the first target serial number value and the first salt value through the second preset encryption algorithm to obtain the first encrypted serial number value, wherein the second preset encryption algorithm can be set by the user. In this application, the second preset encryption algorithm is set to the MD5 algorithm. Thus, the first target serial number value cli_seq value and the pre-stored first salt value salt1 value can be subjected to MD5 calculation with salt value to obtain the first encrypted serial number value cli_hash_seq1 value.

[0076] Step S23, perform encryption operation on the first encryption serial number value and the second salt value through the second preset encryption algorithm to obtain a second encryption serial number value, and perform an XOR operation on the second encryption serial number value based on a second preset XOR operation value to obtain a target second encryption serial number value.

[0077] In this embodiment, it is necessary to perform an encryption operation on the first encrypted serial number value and the second salt value through a second preset encryption algorithm to obtain the second encrypted serial number value. Specifically, it is necessary to perform an MD5 calculation with a salt value on the first encrypted serial number value cli_hash_seq1 value and the pre-stored second salt value salt2 value to obtain the second encrypted serial number value cli_hash_seq2 value, and then perform an XOR operation on the second encrypted serial number value cli_hash_seq2 value based on the second preset XOR operation value xor value to obtain the target second encrypted serial number value cli_hash_seq2' value.

[0078] Step S24, generate a heartbeat signal including the target second encrypted serial number value, and send the heartbeat signal to the server, so that the server parses the heartbeat signal to obtain the target second encrypted serial number value, and restores the second encrypted serial number value based on the second preset XOR operation value to obtain the second encrypted serial number value; compare the second encrypted serial number value with the local target encrypted serial number value to obtain a corresponding encrypted serial number comparison result; generate a heartbeat response message including the encrypted serial number comparison result, and send the heartbeat response message to the civil aviation airborne terminal.

[0079] In this embodiment, the civil aviation airborne terminal needs to generate a heartbeat signal including the target second encrypted serial number value cli_hash_seq2' value, and then send the heartbeat signal to the server. After the server receives the heartbeat signal, it needs to parse the heartbeat signal to obtain the target second encrypted serial number value cli_hash_seq2' value, and then restore the cli_hash_seq2' value based on the second preset XOR operation value to obtain the second encrypted serial number value cli_hash_seq2 value.

[0080] It should be noted that the server itself also generates a serial number value, which is the second target serial number value ser_seq value. The second target serial number value ser_seq value and salt1 value need to be subjected to MD5 calculation with salt value to obtain ser_hash_seq1 value, and then the ser_hash_seq1 value and the second salt value salt2 value need to be subjected to MD5 calculation with salt value to obtain ser_hash_seq2 value, which is the target encrypted serial number value.

[0081] After obtaining the target encrypted sequence number value, it is necessary to compare the second encrypted sequence number value cli_hash_seq2 value and the target encrypted sequence number value ser_hash_seq2 value to obtain the corresponding sequence number comparison result seq_result, and then perform XOR calculation on seq_result and xor value to obtain seq_result', which is the encrypted sequence number comparison result. Finally, a heartbeat response message containing the encrypted sequence number comparison result is generated, and the heartbeat response message is sent to the civil aviation airborne terminal. It should be noted that if the server does not receive the heartbeat signal from the client within 3 seconds or the sequence number comparison result seq_result is inconsistent, it stops sending data to the client.

[0082] Step S25: Receive the heartbeat response message, and determine whether to interact with the server based on the heartbeat response message.

[0083] In this embodiment, after receiving the heartbeat response message, the civil aviation airborne terminal needs to parse the heartbeat response message to obtain the encrypted sequence number comparison result seq_result', and then the encrypted sequence number comparison result seq_result' needs to be XORed by the second preset XOR operation value to obtain the sequence number comparison result seq_result. If the sequence number comparison result indicates that the second encrypted sequence number value and the target encrypted sequence number value are consistent, the first target sequence number value is self-incremented by cli_seq plus 1, data is transmitted to the server, and the step of performing encryption operation on the first target sequence number value and the first salt value by the second preset encryption algorithm to obtain the first encrypted sequence number value is jumped to perform the next round of heartbeat signal sending and data transmission. If the sequence number comparison result indicates that the second encrypted sequence number value and the target encrypted sequence number value are inconsistent, the last cli_seq is used for encryption, and then the step of performing encryption operation on the first target sequence number value and the first salt value by the second preset encryption algorithm to obtain the first encrypted sequence number value is jumped to re-transmit the heartbeat signal. It should be noted that if the heartbeat response signal sent by the server is not received within 1 second, data transmission is prohibited, and the last cli_seq is used for encryption, and then the process jumps to the step of encrypting the first target sequence number value and the first salt value through the second preset encryption algorithm to obtain the first encrypted sequence number value, so as to re-transmit the heartbeat signal.

[0084] It can be seen that through the method of the present application, after the verification between the civil aviation airborne terminal and the server is passed, heartbeat signals and corresponding heartbeat response signals need to be sent to each other, and data interaction should be carried out when the heartbeat signals are communicated normally. If the heartbeat response signals cannot be communicated normally between the civil aviation airborne terminal and the server, the data interaction is stopped, thereby ensuring the security of the data interaction.

[0085] See also Figure 5 As shown, the embodiment of the present invention discloses a civil aviation airborne terminal data transmission device, which is applied to a civil aviation airborne terminal, comprising:

[0086] The first message sending module 11 is used to send an authentication request message to the server, so that after receiving the authentication request message, the server reads the first salt value stored in the server storage medium, randomly generates a second salt value, generates an authentication response message based on the first salt value and the second salt value, and sends the authentication response message to the civil aviation airborne terminal;

[0087] The message parsing module 12 is used to parse the received authentication response message to generate an authentication confirmation message according to the first salt value, the second salt value and the received user password obtained by parsing;

[0088] The second message sending module 13 is used to send the authentication confirmation message to the server so that the server generates an authentication response message corresponding to the authentication confirmation message and sends the authentication response message to the civil aviation airborne terminal;

[0089] The data transmission module 14 is used to verify the received authentication response message, and after the verification is passed, perform data exchange with the server based on preset data sending rules.

[0090] In this embodiment, an authentication request message is first sent to a server, so that after receiving the authentication request message, the server reads a first salt value stored in a storage medium of the server, randomly generates a second salt value, and generates an authentication response message based on the first salt value and the second salt value, and sends the authentication response message to the civil aviation airborne terminal; the received authentication response message is parsed to generate an authentication confirmation message according to the first salt value, the second salt value obtained by parsing, and the received user password; the authentication confirmation message is sent to the server, so that the server generates an authentication reply message corresponding to the authentication confirmation message, and sends the authentication reply message to the civil aviation airborne terminal; the received authentication reply message is verified, and after the verification is passed, data is interacted with the server based on a preset data sending rule. It can be seen that the method of the present application requires that the generated authentication request message be sent to the server. After receiving the authentication request message, the server needs to read the first salt value stored in the server storage medium, and randomly generate the second salt value, and then generate an authentication response message containing the first salt value and the second salt value, and send the authentication response message to the civil aviation airborne terminal. After receiving the authentication response message, it is necessary to generate an authentication confirmation message based on the first salt value, the second salt value and the password entered by the user, and send it to the server, so that after the server receives the authentication confirmation message, it replies with an authentication response message corresponding to the authentication confirmation message. The civil aviation airborne terminal needs to verify the authentication response message, and after the verification is passed, it interacts with the server based on the preset data sending rules. In this way, a safer authentication process is set up, and data transmission is performed after the authentication is passed, ensuring the security of data transmission.

[0091] In some embodiments, the first message sending module 11 may specifically include:

[0092] a salt value determination unit, configured to read a first salt value stored in a server storage medium and generate a random number to convert the random number into a second salt value;

[0093] a salt value conversion unit, configured to perform an XOR operation on the first salt value and the second salt value based on a first preset XOR operation value, so as to obtain a first target salt value corresponding to the first salt value and a second target salt value corresponding to the second salt value;

[0094] The first message sending unit is used to generate an authentication response message based on the first target salt value and the second target salt value, and send the authentication response message to the civil aviation airborne terminal.

[0095] In some embodiments, the message parsing module 12 may specifically include:

[0096] a first message parsing unit, configured to receive the authentication response message sent by the server, and parse the authentication response message to determine the first target salt value and the second target salt value included in the authentication response message;

[0097] a first restoring unit, configured to perform a restoring process on the first target salt value and the second target salt value according to the first preset XOR operation value to obtain the first salt value and the second salt value;

[0098] a hash calculation unit, configured to perform encryption operation processing on the first salt value and the received user password by using a first preset encryption algorithm to obtain a first hash value, and perform encryption operation processing on the first hash value and the second salt value by using the first preset encryption algorithm to obtain a second hash value;

[0099] An XOR operation unit is used to perform an XOR operation on the first preset XOR operation value and the second Hash value to obtain a target second Hash value, and generate an authentication confirmation message including the target second Hash value.

[0100] In some embodiments, the second message sending module 13 may specifically include:

[0101] a second restoring unit, configured to restore the target second Hash value based on the first preset XOR operation value to obtain the second Hash value;

[0102] A hash comparison unit, configured to read a preset comparison hash value stored in the server storage medium, process the preset comparison hash value to obtain a target comparison hash value, and compare the target comparison hash value with the second hash value to obtain a corresponding comparison result; the preset comparison hash value is a hash value obtained by performing an encryption operation on the first salt value and the user password using the first preset encryption algorithm;

[0103] The second message sending unit is used to perform an XOR operation on the comparison result through the first preset XOR operation value to obtain a target comparison result, generate an authentication response message including the target comparison result, and send the authentication response message to the civil aviation airborne terminal.

[0104] In some embodiments, the data transmission module 14 may specifically include:

[0105] a third restoring unit, configured to parse the authentication response message to determine the target comparison result in the authentication response message, and restore the target comparison result by using the first preset XOR operation value to obtain the comparison result;

[0106] A verification and confirmation unit, configured to indicate that verification is successful if the comparison result indicates that the target comparison hash value is consistent with the second hash value;

[0107] The first step jump unit is used to jump to the step of sending an authentication request message to the server to re-issue the authentication request if the comparison result indicates that the target comparison hash value is inconsistent with the second hash value, indicating that the verification has failed.

[0108] In some embodiments, the civil aviation airborne terminal data transmission device may further include:

[0109] A sequence number generating unit, configured to generate a first target sequence number value;

[0110] A first encryption operation unit, used to perform an encryption operation on the first target sequence number value and the first salt value by using a second preset encryption algorithm to obtain a first encrypted sequence number value;

[0111] a second encryption operation unit, configured to perform an encryption operation on the first encryption sequence value and the second salt value by using the second preset encryption algorithm to obtain a second encryption sequence value, and perform an XOR operation on the second encryption sequence value based on a second preset XOR operation value to obtain a target second encryption sequence value;

[0112] A third message sending unit is used to generate a heartbeat signal including the target second encrypted sequence number value, and send the heartbeat signal to the server, so that the server parses the heartbeat signal to obtain the target second encrypted sequence number value, and restores the second encrypted sequence number value based on the second preset XOR operation value to obtain the second encrypted sequence number value; compares the second encrypted sequence number value with the local target encrypted sequence number value to obtain a corresponding encrypted sequence number comparison result; generates a heartbeat response message including the encrypted sequence number comparison result, and sends the heartbeat response message to the civil aviation airborne terminal;

[0113] The data transmission confirmation submodule is used to receive the heartbeat response message and determine whether to interact with the server based on the heartbeat response message.

[0114] In some embodiments, the data transmission confirmation submodule may further include:

[0115] A message receiving judgment unit, used to judge whether the heartbeat response message is received within a preset time range, and if the heartbeat response message is not received within the preset time range, prohibiting data transmission;

[0116] A second message parsing unit, configured to parse the heartbeat response message if the heartbeat response message is received within the preset time range to obtain the encryption sequence number comparison result;

[0117] The second step jump unit is used for, if the comparison result of the encrypted sequence number indicates that the second encrypted sequence number value is consistent with the target encrypted sequence number value, then performing a self-increment process on the first target sequence number value, transmitting data to the server, and jumping to the step of performing an encryption operation on the first target sequence number value and the first salt value by using a second preset encryption algorithm to obtain a first encrypted sequence number value, so as to perform the next round of data transmission;

[0118] The third step jump unit is used to jump to the step of encrypting the first target sequence number value and the first salt value through the second preset encryption algorithm to obtain the first encryption sequence number value if the second encryption sequence number value and the target encryption sequence number value are inconsistent, so as to re-transmit the heartbeat signal.

[0119] Furthermore, the present application also discloses an electronic device. Figure 6 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be considered as any limitation on the scope of use of the present application.

[0120] Figure 6 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the civil aviation airborne terminal data transmission method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0121] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0122] In addition, the memory 22 as a carrier for resource storage may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon may include an operating system 221, a computer program 222, etc., and the storage method may be temporary storage or permanent storage.

[0123] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, which can be Windows Server, Netware, Unix, Linux, etc. In addition to the computer program that can be used to complete the civil aviation airborne terminal data transmission method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include computer programs that can be used to complete other specific tasks.

[0124] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned disclosed civil aviation airborne terminal data transmission method is implemented. The specific steps of the method can refer to the corresponding contents disclosed in the aforementioned embodiments, and will not be repeated here.

[0125] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0126] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0127] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0128] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or 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 device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0129] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technicians in this field, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for transmitting data from a civil aviation airborne terminal, characterized in that: Applied to civil aviation airborne terminals, including: Sending an authentication request message to a server, so that after receiving the authentication request message, the server reads a first salt value stored in a server storage medium, randomly generates a second salt value, generates an authentication response message based on the first salt value and the second salt value, and sends the authentication response message to the civil aviation airborne terminal; Parsing the received authentication response message to generate an authentication confirmation message according to the first salt value, the second salt value obtained by parsing, and the received user password; Sending the authentication confirmation message to the server so that the server generates an authentication response message corresponding to the authentication confirmation message, and sending the authentication response message to the civil aviation airborne terminal; The received authentication response message is verified, and after the verification is passed, data is exchanged with the server based on the preset data sending rules.

2. The method for transmitting data from a civil aviation airborne terminal according to claim 1, characterized in that: The method of reading the first salt value stored in the server storage medium, randomly generating a second salt value, generating an authentication response message based on the first salt value and the second salt value, and sending the authentication response message to the civil aviation airborne terminal includes: Reading a first salt value stored in a server storage medium and generating a random number to convert the random number into a second salt value; Based on a first preset XOR operation value, performing an XOR operation on the first salt value and the second salt value respectively to obtain a first target salt value corresponding to the first salt value and a second target salt value corresponding to the second salt value; An authentication response message is generated based on the first target salt value and the second target salt value, and the authentication response message is sent to the civil aviation airborne terminal.

3. The method for transmitting data from a civil aviation airborne terminal according to claim 2, characterized in that: The parsing of the received authentication response message to generate an authentication confirmation message according to the first salt value, the second salt value and the received user password obtained by parsing includes: Receiving the authentication response message sent by the server, and parsing the authentication response message to determine the first target salt value and the second target salt value included in the authentication response message; Reducing the first target salt value and the second target salt value according to the first preset XOR operation value to obtain the first salt value and the second salt value; Performing encryption operation processing on the first salt value and the received user password by using a first preset encryption algorithm to obtain a first hash value, and performing encryption operation processing on the first hash value and the second salt value by using the first preset encryption algorithm to obtain a second hash value; An XOR operation is performed on the first preset XOR operation value and the second Hash value to obtain a target second Hash value, and an authentication confirmation message including the target second Hash value is generated.

4. The method for transmitting data to a civil aviation airborne terminal according to claim 3, characterized in that: The step of generating an authentication response message corresponding to the authentication confirmation message and sending the authentication response message to the civil aviation airborne terminal includes: Restoring the target second Hash value based on the first preset XOR operation value to obtain the second Hash value; Reading a preset comparison hash value stored in the server storage medium, processing the preset comparison hash value to obtain a target comparison hash value, and comparing the target comparison hash value with the second hash value to obtain a corresponding comparison result; the preset comparison hash value is a hash value obtained by performing an encryption operation on the first salt value and the user password using the first preset encryption algorithm; The comparison result is XORed using the first preset XOR operation value to obtain a target comparison result, an authentication response message including the target comparison result is generated, and the authentication response message is sent to the civil aviation airborne terminal.

5. The method for transmitting data from a civil aviation airborne terminal according to claim 4, characterized in that: The verifying the received authentication response message includes: Parsing the authentication response message to determine the target comparison result in the authentication response message, and restoring the target comparison result by using the first preset XOR operation value to obtain the comparison result; If the comparison result indicates that the target comparison hash value is consistent with the second hash value, then the verification is successful; If the comparison result indicates that the target comparison hash value is inconsistent with the second hash value, it indicates that the verification has failed, and the process jumps to the step of sending an authentication request message to the server to re-issue the authentication request.

6. The method for transmitting data from a civil aviation airborne terminal according to any one of claims 1 to 5, characterized in that: The sending the transmission data to the server based on the preset data sending rule includes: Generate a first target sequence number value; Performing an encryption operation on the first target serial number value and the first salt value by using a second preset encryption algorithm to obtain a first encrypted serial number value; Performing an encryption operation on the first encryption sequence value and the second salt value by using the second preset encryption algorithm to obtain a second encryption sequence value, and performing an XOR operation on the second encryption sequence value based on a second preset XOR operation value to obtain a target second encryption sequence value; Generate a heartbeat signal including the target second encrypted sequence number value, and send the heartbeat signal to the server so that the server parses the heartbeat signal to obtain the target second encrypted sequence number value, and restores the second encrypted sequence number value based on the second preset XOR operation value to obtain the second encrypted sequence number value; compare the second encrypted sequence number value with the local target encrypted sequence number value to obtain a corresponding encrypted sequence number comparison result; generate a heartbeat response message including the encrypted sequence number comparison result, and send the heartbeat response message to the civil aviation airborne terminal; The heartbeat response message is received, and based on the heartbeat response message, it is determined whether to perform data interaction with the server.

7. The method for transmitting data from a civil aviation airborne terminal according to claim 6, characterized in that: The determining whether to perform data interaction with the server based on the heartbeat response message includes: Determine whether the heartbeat response message is received within a preset time range, and if the heartbeat response message is not received within the preset time range, prohibit data transmission; If the heartbeat response message is received within the preset time range, the heartbeat response message is parsed to obtain the encrypted sequence number comparison result; If the encrypted sequence number comparison result indicates that the second encrypted sequence number value is consistent with the target encrypted sequence number value, the first target sequence number value is self-incremented, data is transmitted to the server, and the process jumps to the step of performing encryption operation on the first target sequence number value and the first salt value by using a second preset encryption algorithm to obtain the first encrypted sequence number value, so as to perform the next round of data transmission; If the second encrypted sequence number value and the target encrypted sequence number value are inconsistent, jump to the step of encrypting the first target sequence number value and the first salt value through the second preset encryption algorithm to obtain the first encrypted sequence number value, so as to re-transmit the heartbeat signal.

8. A civil aviation airborne terminal data transmission device, characterized in that: Applied to civil aviation airborne terminals, including: A first message sending module, configured to send an authentication request message to a server, so that after receiving the authentication request message, the server reads a first salt value stored in a server storage medium, randomly generates a second salt value, generates an authentication response message based on the first salt value and the second salt value, and sends the authentication response message to the civil aviation airborne terminal; A message parsing module, used for parsing the received authentication response message to generate an authentication confirmation message according to the first salt value, the second salt value and the received user password obtained by parsing; A second message sending module, used to send the authentication confirmation message to the server, so that the server generates an authentication response message corresponding to the authentication confirmation message, and sends the authentication response message to the civil aviation airborne terminal; The data transmission module is used to verify the received authentication response message and, after the verification is passed, to perform data exchange with the server based on preset data sending rules.

9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is used to execute the computer program to implement the civil aviation airborne terminal data transmission method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein when the computer program is executed by a processor, the civil aviation airborne terminal data transmission method as described in any one of claims 1 to 7 is implemented.