Encrypted information processing method for Beidou short message
By encrypting Beidou short messages and using symmetric encryption algorithms and check code additions, the problem of data security risks during the transmission process is solved, comprehensive encryption and accurate transmission of data are achieved, and transmission strength and integrity are enhanced.
Patent Information
- Application Number
- CN202410824931.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-10
AI Technical Summary
Beidou short messages lack security encryption measures during transmission, leading to risks of data leakage, tampering, and theft.
Symmetric encryption algorithms are used to encrypt and decrypt Beidou short messages, including data encoding, hash operations, XOR operations, block encryption, check code attachment and key management to ensure the security of data during transmission.
Effectively prevent data leakage, tampering and theft, ensure the accuracy and integrity of data transmission, enhance the strength of encrypted transmission, and reduce the risk of a single encryption algorithm.
Smart Images

Figure CN118632240A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to an encryption information processing method for Beidou short messages. Background Art
[0002] Beidou short message is a special feature of Beidou navigation and positioning system, which is different from other major navigation and positioning systems in the world. However, Beidou's main task is positioning and navigation. The communication channel resources are very limited, and it can only complete the short message communication function with a small amount of data. Therefore, the number of users and the amount of information sent will be limited. According to the different levels of Beidou cards, the message communication supported by Beidou cards can be divided into two levels. The special Beidou card sends short messages at a frequency of 240 characters per time in 30 seconds, and the ordinary Beidou card sends short messages at a frequency of 78 characters per time in 1 minute. Beidou's short message is limited to two data types, one is the reserved ASCII code method, and the other is the BCD code method;
[0003] Compared with radio stations and communication networks, the short message communication realized by Beidou satellites can cover all areas within the range without communication blind spots. At the same time, based on satellite communication, it has better long-distance communication capabilities. With the gradual realization of Beidou satellite navigation system covering the Asia-Pacific region and global services, Beidou short messages are increasingly widely used in various fields such as transportation, land resources, satellite rescue, and maritime communications.
[0004] During the transmission of Beidou short messages, the data that users need to transmit is directly forwarded by the terminal without any security encryption measures. No security encryption measures are taken when the user transmits data between the user, the terminal, and the satellite. When the basic information of the Beidou system, such as the modulation frequency and information transmission format, is not disclosed, this transmission method makes the user's transmitted data at risk of leakage, tampering, and theft, which poses a security risk. Therefore, we propose an encryption information processing method for Beidou short messages. Summary of the invention
[0005] The purpose of the present invention is to provide a Beidou short message encryption information processing method.
[0006] In order to solve the problems raised in the above background technology, the present invention provides the following technical solutions: a method for processing encrypted information of a Beidou short message, wherein the Beidou short message can be encrypted and decrypted using a symmetric encryption algorithm during transmission, and the transmission method used by the Beidou short message is a binary data format, and the specific operation steps of the method for processing encrypted information of the Beidou short message are as follows:
[0007] Step 1: Collect Beidou short messages, including device status information, latitude and longitude information, progressive image compression data, and on-site environment information of Beidou short messages, encode the above data information, convert it into a plaintext data format suitable for Beidou short message reception, mark the plaintext data as P, and mark the length of the converted data plaintext as L(P);
[0008] Step 2: Perform a hash operation on the plaintext data P to obtain a hash value H(P), then perform an XOR operation on the hash value H(P) and the plaintext data P to obtain a new plaintext data P', and mark the length of the new plaintext data P' as L(P'). When L(P') ≥ Dbit, divide the plaintext data P' into several Dbit data blocks according to the length of Dbit;
[0009] Step 3: Use the symmetric encryption algorithm to encrypt the Dbit data blocks except the last one, and obtain the corresponding ciphertexts C1, C2, C3, ... C n-2 and C n-1 , process the last data block Dbit, and then n The length L(P n )=Dbit, directly encrypt it to get the ciphertext C n ;
[0010] Step 4: In the ciphertext C n In the above example, the data except the last data block are encrypted to obtain the corresponding ciphertexts C1, C2, C3, ...C n-2 and C n-1 , these ciphertexts are combined to get the intermediate ciphertext C', and we can get C'∈C1,C2,C3,…C n-2 ,C n-1 ;
[0011] Step 5. Use a symmetric encryption algorithm different from that in step 3 to encrypt the intermediate ciphertext again to obtain the final ciphertext C', then calculate the check code of the final ciphertext C' and append it to the plaintext data P. After the appending is completed, the final ciphertext C' and the check code are combined and output.
[0012] As a further solution of the present invention: in the step one, the device status information of the Beidou short message is encoded using an 8-bit unsigned integer, the longitude and latitude are encoded using a 32-bit floating point number, the field environment information is encoded using a 16-bit signed integer, and the progressive image compression information is encoded using an 8-bit unsigned integer. After the encoding is completed, they are arranged according to the little-endian mode of the Beidou short message, and the various information elements are combined into plain text data P in a defined order.
[0013] As a further solution of the present invention: in the step 2, after receiving the plaintext data P, the hash value H(P') of the plaintext data is calculated, and H(P) is compared with H(P'). When H(P) = H(P'), it is proved that the received plaintext data is exactly the same as the original plaintext data.
[0014] As a further solution of the present invention: in the step 2, the specific value of Dbit depends on the specific application scenario and requirements. In practical applications, the size of the data block needs to be selected based on the characteristics of the data, security requirements and the efficiency of the encryption algorithm.
[0015] As a further solution of the present invention: in step 3, in L(P n )<Dbit, it is necessary to i The DL(P n )bit data P'i and fill it in P n At position b, a new data block P' is formed n , mark the intercepted Ci as C'i, and then n Encrypt to get the ciphertext C n .
[0016] As a further solution of the present invention: In step 3, the ciphertext C n , C1, C2, C3, …C n-2 and C n-1 Perform unified encryption, and after the encryption is completed, take the intermediate ciphertext C' and encrypt it again.
[0017] As a further solution of the present invention: In step three, the symmetric encryption key needs to be updated regularly, and a key management system is used to generate and distribute new keys, and ensure the secure storage and transmission of the keys.
[0018] As a further solution of the present invention: in the step five, a CRC check code is generated and attached to the final ciphertext C", and then a polynomial calculation is performed on the final ciphertext C", and the calculated result is the CRC check code. When the final ciphertext C" is received, the polynomial calculation is performed on it in the same way to obtain a new CRC check code, and the new CRC check code is compared with the original CRC check code to ensure that the received data is the same as the original data.
[0019] As a further solution of the present invention: when the Beidou short message is decrypted, it is necessary to record the received ciphertext and check code, calculate the check code again according to the received ciphertext, and then compare the calculated check code with the received check code. When the check codes are the same, the final ciphertext C" is decrypted using the symmetric key during the secondary encryption to obtain the intermediate ciphertext C', and each data block is restored according to the inverse process of processing the last data block during encryption, and then the inverse XOR operation is performed on each restored data block, and the influence of data preprocessing is removed to restore the original plaintext data P, and the original plaintext data P is converted into device status information, longitude and latitude information, progressive image compression data and on-site environment information of the Beidou short message in the order of arrangement.
[0020] By adopting the above technical solution, compared with the prior art, the beneficial effects of the present invention are:
[0021] 1. The present invention performs comprehensive and sophisticated encryption processing on Beidou short messages, including data encoding, hash operation, secondary symmetric encryption, check code addition and other steps, effectively preventing the user from data leakage, tampering and theft during data transmission. The data information of Beidou short messages is standardized and encoded in the data encoding stage, which can ensure the accuracy and consistency of the transmitted data. The encryption method is used to encrypt Beidou short messages, which can help reduce the amount of data transmission, and can use less frequency to complete the encryption operation. By using the secondary symmetric encryption algorithm, the strength of Beidou short message encryption transmission is enhanced, and the possible risks of a single encryption algorithm are reduced.
[0022] 2. The present invention provides a strong guarantee for the integrity of Beidou short message transmission data by adding a check code, ensuring that the receiver can accurately judge whether the received data is consistent with the data sent by the sender. By separately encoding and sorting the device status information, longitude and latitude information, progressive image compression data and field environment information, the receiver can quickly decrypt and read the received data when receiving the data. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 The figure is a schematic diagram of the Beidou short message encryption process in an embodiment of the present invention. DETAILED DESCRIPTION
[0024] The specific embodiments of the present invention are further described below in conjunction with the accompanying drawings. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0025] The present invention provides an encrypted information processing method of a Beidou short message. The Beidou short message can be encrypted and decrypted using a symmetric encryption algorithm during transmission. The transmission method used by the Beidou short message is a binary data format. The specific operation steps of the encrypted information processing method of the Beidou short message are as follows:
[0026] Step 1: Collect Beidou short messages, including device status information, latitude and longitude information, progressive image compression data, and on-site environment information of Beidou short messages, encode the above data information, convert it into a plaintext data format suitable for Beidou short message reception, mark the plaintext data as P, and mark the length of the converted data plaintext as L(P);
[0027] Step 2: Perform a hash operation on the plaintext data P to obtain a hash value H(P), then perform an XOR operation on the hash value H(P) and the plaintext data P to obtain a new plaintext data P', and mark the length of the new plaintext data P' as L(P'). When L(P') ≥ Dbit, divide the plaintext data P' into several Dbit data blocks according to the length of Dbit;
[0028] Step 3: Use the symmetric encryption algorithm to encrypt the Dbit data blocks except the last one, and obtain the corresponding ciphertexts C1, C2, C3, ... C n-2 and C n-1 , process the last data block Dbit, and then n The length L(P n )=Dbit, directly encrypt it to get the ciphertext C n ;
[0029] Step 4: In the ciphertext C n In the above example, the data except the last data block are encrypted to obtain the corresponding ciphertexts C1, C2, C3, ...C n-2 and C n-1 , these ciphertexts are combined to get the intermediate ciphertext C', and we can get C'∈C1,C2,C3,…C n-2 ,C n-1 ;
[0030] Step 5. Use a symmetric encryption algorithm different from that in step 3 to encrypt the intermediate ciphertext again to obtain the final ciphertext C', then calculate the check code of the final ciphertext C' and append it to the plaintext data P. After the appending is completed, the final ciphertext C' and the check code are combined and output.
[0031] In one embodiment of the present invention: in step one, the device status information of the Beidou short message is encoded using an 8-bit unsigned integer, the longitude and latitude are encoded using a 32-bit floating point number, the field environment information is encoded using a 16-bit signed integer, and the progressive image compression information is encoded using an 8-bit unsigned integer. After encoding, they are arranged in the little-endian mode of the Beidou short message, and the various information elements are combined into plain text data P in a defined order.
[0032] In one embodiment of the present invention: in step 2, after receiving the plaintext data P, the hash value H(P') of the plaintext data is calculated, and H(P) is compared with H(P'). When H(P) = H(P'), it is proved that the received plaintext data is exactly the same as the original plaintext data.
[0033] In one embodiment of the present invention: In step 2, the specific value of Dbit depends on the specific application scenario and requirements. In practical applications, the size of the data block needs to be selected based on the characteristics of the data, security requirements and efficiency of the encryption algorithm.
[0034] In one embodiment of the present invention: In step three, in L(P n )<Dbit, it is necessary to i The DL(P n ) bit data P'i and append it to P n At position b, a new data block P' is formed n , mark the intercepted Ci as C'i, and then n Encrypt to get the ciphertext C n .
[0035] In one embodiment of the present invention: In step 3, the ciphertext C n , C1, C2, C3, …C n-2 and C n-1 Perform unified encryption, and after the encryption is completed, take the intermediate ciphertext C' and encrypt it again.
[0036] In one embodiment of the present invention: In step three, the symmetric encryption key needs to be updated regularly, and a key management system is used to generate and distribute new keys, and ensure the secure storage and transmission of the keys.
[0037] In one embodiment of the present invention: in step five, a CRC check code is generated and attached to the final ciphertext C", and then a polynomial calculation is performed on the final ciphertext C", and the calculated result is the CRC check code. When the final ciphertext C" is received, the polynomial calculation is performed on it in the same way to obtain a new CRC check code, and the new CRC check code is compared with the original CRC check code to ensure that the received data is the same as the original data.
[0038] In one embodiment of the present invention: when decrypting a Beidou short message, it is necessary to record the received ciphertext and check code, calculate the check code again based on the received ciphertext, and then compare the calculated check code with the received check code. When the check codes are the same, the final ciphertext C" is decrypted using the symmetric key used in the secondary encryption to obtain the intermediate ciphertext C', and each data block is restored according to the inverse process of processing the last data block during encryption, and then an inverse XOR operation is performed on each restored data block, and the influence of data preprocessing is removed to restore the original plaintext data P, and the original plaintext data P is converted into device status information, longitude and latitude information, progressive image compression data and on-site environment information of the Beidou short message in the order of arrangement.
[0039] In one embodiment of the present invention: after receiving the plaintext data P, the hash value H(P')≠H(P') of the plaintext data is calculated to prove that the received plaintext data has been damaged or tampered with. At this time, the transmission process needs to be checked and rectified in time to ensure that the received data is the same as the original data.
[0040] In one embodiment of the present invention: the check code is calculated again according to the received ciphertext, and then the calculated check code is compared with the received check code. When the check codes do not match, the receiving direction needs to resend the receiving request to the sending direction, and explain the situation of the check code mismatch, require the correct Beidou short message to be resent, and record the event of the check code mismatch, including the time, information of the sender and receiver, and relevant characteristics of the Beidou short message, so as to facilitate subsequent troubleshooting and rectification of the problem.
[0041] In one embodiment of the present invention: the received data is obtained by decrypting the received ciphertext twice.
[0042] Embodiment 1
[0043] The Beidou short message is collected, including the device status information, longitude and latitude information, progressive image compression data and on-site environment information of the Beidou short message. The device status information of the Beidou short message is encoded using an 8-bit unsigned integer, the longitude and latitude are encoded using a 32-bit floating point number, the on-site environment information is encoded using a 16-bit signed integer, and the progressive image compression information is encoded using an 8-bit unsigned integer. After the encoding is completed, it is arranged according to the little-endian mode of the Beidou short message, and each information element is combined into plaintext data P in a defined order, and the length of the converted data plaintext is marked as L(P). The plaintext data P is hashed to obtain a hash value H(P). After the plaintext data P is received, the hash value H(P') of the plaintext data is calculated, and H(P) is compared with H(P'). When H(P)=H(P'), it proves that the received plaintext data is exactly the same as the original plaintext data. When H(P)≠H(P'), it proves that the received plaintext data is different from the original plaintext data. The received data may be damaged or tampered with, and it is necessary to retransmit or find the problem and solve it. Then, the hash value H(P) is XORed with the plaintext data P to obtain the new plaintext data P'. The length of the new plaintext data P' is marked as L(P'). When L(P')≥Dbit, the plaintext data P' is divided into several Dbit data blocks according to the length of Dbit.
[0044] Embodiment 2
[0045] Using the symmetric encryption algorithm, encrypt the Dbit data blocks except the last one, and obtain the corresponding ciphertexts C1, C2, C3, ... C n-2 and C n-1 , process the last data block Dbit, and then n The length L(P n )=Dbit, directly encrypt it to get the ciphertext C n , in L(P n )<Dbit, it is necessary to i The DL(P n ) bit data P'i and append it to P n At position b, a new data block P' is formed n , mark the intercepted Ci as C'i, and then n Encrypt to get the ciphertext C n , in the ciphertext C n In the above example, the data except the last data block are encrypted to obtain the corresponding ciphertexts C1, C2, C3, ...C n-2 and C n-1, these ciphertexts are combined to get the intermediate ciphertext C', and we can get C'∈C1,C2,C3,…C n-2 ,C n-1 ,During the encryption process, it is necessary to regularly update the symmetric encryption keys, use the key management system to generate and distribute new keys, and ensure the secure storage and transmission of the keys.
[0046] Embodiment 3
[0047] Use a symmetric encryption algorithm different from the first symmetric encryption algorithm to encrypt the intermediate ciphertext again to obtain the final ciphertext C", then calculate the CRC check code of the final ciphertext C" and append it to the plaintext data P. After the appending is completed, the final ciphertext C" and the CRC check code are combined and output. When the final ciphertext and CRC check code are received, the final ciphertext C" is polynomially calculated, and the calculated result is the CRC check code. When the final ciphertext C" is received, the polynomial is calculated in the same way to obtain a new CRC check code, and the new CRC check code is compared with the original CRC check code to ensure that the received data is the same as the original data;
[0048] When decrypting the Beidou short message, it is necessary to record the received ciphertext and check code, and calculate the check code again based on the received ciphertext, and then compare the calculated check code with the received check code. If the check codes are the same, use the symmetric key during the secondary encryption to decrypt the final ciphertext C" to obtain the intermediate ciphertext C', calculate the check code again based on the received ciphertext, and then compare the calculated check code with the received check code. If the check codes do not match, the receiver needs to resend the receiving request to the sender, and explain the mismatch of the check code, and request to resend the correct one. The Beidou short message is received and the event of mismatch of the check code is recorded, including the time, information of the sender and the receiver, and the relevant characteristics of the Beidou short message, so as to facilitate the subsequent investigation and rectification of the problem. After obtaining the intermediate ciphertext C', each data block is restored according to the inverse process of processing the last data block during encryption, and then the inverse XOR operation is performed on each restored data block, and the influence of data preprocessing is removed to restore the original plaintext data P, and the original plaintext data P is converted into the device status information, longitude and latitude information, progressive image compression data and on-site environment information of the Beidou short message in the order of arrangement.
[0049] By performing comprehensive and sophisticated encryption processing on Beidou short messages, including data encoding, hash operations, secondary symmetric encryption, checksum addition and other steps, it effectively prevents users from leaking, tampering and stealing data during data transmission, and solves the problem of Beidou short messages not performing security encryption measures during transmission.
[0050] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the described embodiments. For those skilled in the art, various changes, modifications, substitutions and variations of these embodiments are made without departing from the principles and spirit of the present invention, and still fall within the scope of protection of the present invention.
[0051] In the description of the specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0052] The above contents are merely examples and explanations of the present invention. Various modifications or additions to the specific embodiments described or replacements in similar ways by technicians in the technical field shall fall within the protection scope of the present invention as long as they do not deviate from the invention or exceed the scope defined by the claims.
[0053] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A Beidou short message encryption information processing method, characterized in that: The Beidou short message can be encrypted and decrypted using a symmetric encryption algorithm during transmission. The transmission method used by the Beidou short message is a binary data format. The specific operation steps of the Beidou short message encryption information processing method are as follows: Step 1: Collect Beidou short messages, including device status information, latitude and longitude information, progressive image compression data, and on-site environment information of Beidou short messages, encode the above data information, convert it into a plaintext data format suitable for Beidou short message reception, mark the plaintext data as P, and mark the length of the converted data plaintext as L(P); Step 2: Perform a hash operation on the plaintext data P to obtain a hash value H(P), then perform an XOR operation on the hash value H(P) and the plaintext data P to obtain a new plaintext data P', and mark the length of the new plaintext data P' as L(P'). When L(P') ≥ Dbit, divide the plaintext data P' into several Dbit data blocks according to the length of Dbit; Step 3: Use the symmetric encryption algorithm to encrypt the Dbit data blocks except the last one, and obtain the corresponding ciphertexts C1, C2, C3, ... C n-2 and C n-1 , process the last data block Dbit, and then n The length L(P n )=Dbit, directly encrypt it to get the ciphertext C n ; Step 4: In the ciphertext C n In the above example, the data except the last data block are encrypted to obtain the corresponding ciphertexts C1, C2, C3, ...C n-2 and C n-1 , these ciphertexts are combined to get the intermediate ciphertext C', and we can get C'∈C1,C2,C3,…C n-2 ,C n-1 ; Step 5. Use a symmetric encryption algorithm different from that in step 3 to encrypt the intermediate ciphertext again to obtain the final ciphertext C', then calculate the check code of the final ciphertext C' and append it to the plaintext data P. After the appending is completed, the final ciphertext C' and the check code are combined and output.
2. The method for processing encrypted information of a Beidou short message according to claim 1, characterized in that: In the step 1, the device status information of the Beidou short message is encoded using an 8-bit unsigned integer, the longitude and latitude are encoded using a 32-bit floating point number, the field environment information is encoded using a 16-bit signed integer, and the progressive image compression information is encoded using an 8-bit unsigned integer. After the encoding is completed, it is arranged according to the little-endian mode of the Beidou short message, and each information element is combined into plaintext data P in a defined order.
3. The method for processing encrypted information of a Beidou short message according to claim 1, characterized in that: In step 2, after receiving the plaintext data P, the hash value H(P') of the plaintext data is calculated, and H(P) is compared with H(P'). When H(P)=H(P'), it is proved that the received plaintext data is exactly the same as the original plaintext data.
4. The method for processing encrypted information of a Beidou short message according to claim 1, characterized in that: In the step 2, the specific value of Dbit depends on the specific application scenario and requirements. In practical applications, the size of the data block needs to be selected based on the characteristics of the data, security requirements, and the efficiency of the encryption algorithm.
5. The method for processing encrypted information of a Beidou short message according to claim 1, characterized in that: In the step 3, in L(P n )<Dbit, it is necessary to i The DL(P n ) bit data P'i and append it to P n At position b, a new data block P' is formed n , mark the intercepted Ci as C'i, and then n Encrypt to get the ciphertext C n .
6. The method for processing encrypted information of a Beidou short message according to claim 1, characterized in that: In step 3, the ciphertext C n , C1, C2, C3, ...C n-2 and C n-1 Perform unified encryption, and after the encryption is completed, take the intermediate ciphertext C' and encrypt it again.
7. The method for processing encrypted information of a Beidou short message according to claim 1, characterized in that: In step three, the symmetric encryption key needs to be updated regularly, a key management system is used to generate and distribute new keys, and secure storage and transmission of the keys are ensured.
8. The method for processing encrypted information of a Beidou short message according to claim 1, characterized in that: In the step five, a CRC check code is generated and attached to the final ciphertext C", and then a polynomial calculation is performed on the final ciphertext C", and the calculated result is the CRC check code. When the final ciphertext C" is received, the polynomial calculation is performed on it in the same way to obtain a new CRC check code, and the new CRC check code is compared with the original CRC check code to ensure that the received data is the same as the original data.
9. The method for processing encrypted information of a Beidou short message according to claim 1, characterized in that: When the Beidou short message is decrypted, it is necessary to record the received ciphertext and check code, calculate the check code again according to the received ciphertext, and then compare the calculated check code with the received check code. When the check codes are the same, the final ciphertext C" is decrypted using the symmetric key during the secondary encryption to obtain the intermediate ciphertext C', and each data block is restored according to the inverse process of processing the last data block during encryption, and then the inverse XOR operation is performed on each restored data block, and the influence of data preprocessing is removed to restore the original plaintext data P, and the original plaintext data P is converted into device status information, latitude and longitude information, progressive image compression data and on-site environment information of the Beidou short message in the order of arrangement.
Citation Information
Patent Citations
Encryption and decryption method for short message communication
CN105873033A
Algorithm file encryption and decryption method and device, equipment and medium
CN117407902A
PLC communication security detection method
CN117930736A
