Encryption method, system, storage medium and display screen of LED display screen

By generating a comprehensive key and performing multi-layer encryption processing on the LED display screen data, the problem of low encryption security in the prior art is solved, and the security and tamper-proof capability of data transmission are significantly improved.

CN119254540BActive Publication Date: 2025-03-04深圳市昌卓科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411767584.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-03-04
Estimated Expiration
2044-12-04

AI Technical Summary

Technical Problem

The data encryption technology of existing LED displays has low encryption security, and the encryption solution is relatively simple and easy to be cracked.

Method used

By obtaining the unique identification information of the LED display, the microcontroller unit identification information and the decryption chip identification information, a comprehensive key is generated, and the information data is subject to multi-layer encryption, including primary and secondary encryption, and decryption and verification are carried out on the server.

Benefits of technology

It significantly improves the security and tamper-proof capability of LED display data information transmission, avoiding information leakage or display abnormalities caused by interception or cracking of the key.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119254540B_ABST
    Figure CN119254540B_ABST
Patent Text Reader

Abstract

The present invention discloses an encryption method, system, storage medium and display screen of an LED display screen. The method comprises obtaining unique identification information, information data, microcontroller unit identification information and decryption chip identification information of the LED display screen; generating a comprehensive key according to the unique identification information, microcontroller unit identification information and decryption chip identification information; encrypting the information data based on the comprehensive key to obtain ciphertext data; performing primary encryption and secondary encryption on the ciphertext data to obtain secondary encrypted ciphertext data; sending the secondary encrypted ciphertext data to a server device so that the server device decrypts it to obtain decrypted data, and comparing the decrypted data with the information data, and when the decrypted data is consistent with the information data, inputting a control signal to the LED display screen so that the LED display screen outputs display content according to the information data. The method can improve the efficiency and security of data transmission of the LED display screen.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data encryption, and in particular to an encryption method, system, storage medium and display screen of an LED display screen. Background Art

[0002] LED (Light Emitting Diode) display screen is a solid-state semiconductor device that can directly convert electrical energy into light energy. The heart of LED is a semiconductor chip, one end of which is attached to a bracket, one end is the negative pole, and the other end is connected to the positive pole of the power supply, so that the entire chip is encapsulated by epoxy resin. When current passes through, the chip will emit light. In the three colors of red, green and blue, three LEDs with different voltages are arranged together, and a layer with printed text is added to form a display screen with multiple colors and complete brightness.

[0003] The data information transmission technology of LED display screen mainly adopts serial port transmission, which has low transmission rate, short transmission distance, low transmission bandwidth, and poor signal anti-interference performance. Therefore, the transmission is easily interfered by the external environment, resulting in display failure. In the prior art, the method of encrypting display data is mainly to encrypt the LED display data, and then use the encrypted LED display data and the key to generate a check code, merge the encrypted LED display data and the check code, and then transmit the serial port data. After receiving the data transmitted through the serial port, decrypt it. However, the key is directly transmitted through the network, the key may be intercepted, the encryption security is low, and only one encryption algorithm is used for encryption and decryption, which is easy to crack.

[0004] In summary, the existing technology for encrypting display data has low encryption security, and the encryption scheme is relatively simple and easy to be cracked. Summary of the invention

[0005] The present invention provides an encryption method, system, storage medium and display screen of an LED display screen, which can improve the security of data transmission of the LED display screen.

[0006] In a first aspect, in order to solve the above technical problems, the present invention provides an encryption method for an LED display screen, comprising:

[0007] Obtaining unique identification information of the LED display screen, information data of the LED display screen, identification information of the microcontroller unit in the control circuit, and identification information of the decryption chip in the control circuit;

[0008] Generate a comprehensive key according to the unique identification information, the micro control unit identification information and the decryption chip identification information;

[0009] Encrypting the information data based on the comprehensive key to obtain ciphertext data;

[0010] Performing primary encryption and secondary encryption on the ciphertext data to obtain secondary encrypted ciphertext data;

[0011] The secondary encrypted ciphertext data is sent to the server device so that the server device decrypts it to obtain decrypted data, and the decrypted data is compared with the information data. When the decrypted data is consistent with the information data, a control signal is input to the LED display screen so that the LED display screen outputs display content according to the information data; when the decrypted data is inconsistent with the information data, no control signal is input to the LED display screen so that the LED display screen information is protected.

[0012] Preferably, generating a comprehensive key according to the unique identification information, the micro control unit identification information and the decryption chip identification information includes:

[0013] Combining the unique identification information, the micro control unit identification information and the decryption chip identification information into a character string to obtain comprehensive identification information;

[0014] Randomly generate a random key, and use the random key and the comprehensive identification information to perform CEC16 verification to generate a verification code;

[0015] An XOR operation is performed on the check code and the random key to generate a comprehensive key.

[0016] Preferably, the encrypting the information data based on the comprehensive key to obtain ciphertext data includes:

[0017] Expanding the comprehensive key into a preset number of round keys;

[0018] Performing an XOR operation on the information data and the first round key to obtain a first preprocessed ciphertext block;

[0019] Perform byte replacement, row shift, column confusion and round key addition operations on the first preprocessed ciphertext block and the second round key to the second to last round key to obtain a second preprocessed ciphertext block;

[0020] The second preprocessed ciphertext block and the last round key are subjected to byte replacement, row shift and round key addition operations to obtain ciphertext data.

[0021] Preferably, performing primary encryption and secondary encryption on the ciphertext data to obtain secondary encrypted ciphertext data includes:

[0022] Performing a first-level encryption on the ciphertext data based on DES encryption and decryption to obtain first-level encrypted ciphertext data;

[0023] The first-level encrypted ciphertext data is secondarily encrypted based on the RSA encryption formula to obtain second-level encrypted ciphertext data.

[0024] Preferably, the step of performing primary encryption on the ciphertext data based on DES encryption and decryption to obtain primary encrypted ciphertext data includes:

[0025] randomly generating a first key, a second key, and a third key;

[0026] Use the first key to perform DES encryption on the ciphertext data to obtain a first encryption result;

[0027] Using the second key to perform DES decryption on the first encryption result to obtain a second encryption result;

[0028] Perform a second DES encryption on the second encryption result using the third key to obtain first-level encrypted ciphertext data;

[0029] The DES encryption and the DES decryption include initial permutation, extended permutation, S-box operation, P-box permutation, XOR with a round key, and final permutation.

[0030] Preferably, performing secondary encryption on the primary encrypted ciphertext data based on an RSA encryption formula to obtain secondary encrypted ciphertext data includes:

[0031] Get the public key exponent and RSA modulus of the RSA encryption algorithm;

[0032] Divide the first-level encrypted ciphertext data into blocks and convert them into ciphertext integers;

[0033] The secondary encrypted ciphertext data block is calculated based on the RSA encryption formula; wherein the calculation formula of the RSA encryption formula is:

[0034]

[0035] In the formula, For the The secondary encrypted ciphertext data block of the block, For the The ciphertext integer of the block, is the public key exponent, is the RSA modulus, It is the remainder operation;

[0036] The secondary encrypted ciphertext data blocks are combined to obtain secondary encrypted ciphertext data.

[0037] Preferably, sending the secondary encrypted ciphertext data to a server device so that the server device decrypts the data to obtain decrypted data includes:

[0038] The server device performs an inverse operation of the first-level encryption on the second-level encrypted ciphertext data to obtain decrypted intermediate data;

[0039] The server-side device performs a secondary encryption inverse operation on the decrypted intermediate data to obtain decrypted data.

[0040] In a second aspect, the present invention provides an encryption system for an LED display screen, comprising:

[0041] An information acquisition module is used to acquire the unique identification information of the LED display screen, the information data of the LED display screen, the identification information of the micro control unit in the control circuit, and the identification information of the decryption chip in the control circuit;

[0042] A key generation module, used to generate a comprehensive key according to the unique identification information, the micro control unit identification information and the decryption chip identification information;

[0043] A first data encryption module, used for encrypting the information data based on the comprehensive key to obtain ciphertext data;

[0044] A second data encryption module is used to perform primary encryption and secondary encryption on the ciphertext data to obtain secondary encrypted ciphertext data;

[0045] The data decryption module is used to send the secondary encrypted ciphertext data to the server device so that the server device decrypts it to obtain decrypted data, and compares the decrypted data with the information data. When the decrypted data is consistent with the information data, a control signal is input to the LED display screen so that the LED display screen outputs display content according to the information data; when the decrypted data is inconsistent with the information data, no control signal is input to the LED display screen so that the LED display screen information is protected.

[0046] In a third aspect, the present invention further provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned encryption methods for the LED display screen.

[0047] In a fourth aspect, the present invention further provides an LED display screen, wherein the LED display screen includes the encryption system of the LED display screen as described in any one of the above.

[0048] Compared with the prior art, the present invention has the following beneficial effects: the embodiment of the present invention provides an encryption method, system, storage medium and display screen for an LED display screen. The method includes: obtaining unique identification information of an LED display screen, information data of an LED display screen, identification information of a microcontroller unit in a control circuit and identification information of a decryption chip in a control circuit; generating a comprehensive key according to the unique identification information, identification information of the microcontroller unit and identification information of the decryption chip; encrypting the information data based on the comprehensive key to obtain ciphertext data; performing primary encryption and secondary encryption on the ciphertext data to obtain secondary encrypted ciphertext data; sending the secondary encrypted ciphertext data to a server device so that the server device decrypts the data to obtain decrypted data, and comparing the decrypted data with the information data, when the decrypted data is consistent with the information data, inputting a control signal to the LED display screen so that the LED display screen outputs display content according to the information data; when the decrypted data is inconsistent with the information data, not inputting a control signal to the LED display screen so that the information of the LED display screen is protected.

[0049] In the present invention, the method can generate a comprehensive key by acquiring the unique identification information of the LED display screen, the identification information of the microcontroller unit in the control circuit, and the identification information of the decryption chip, encrypt the display data based on the comprehensive key, perform multi-level encryption processing on the ciphertext data, and finally send it to the server for decryption and verification, thereby ensuring that the display data is safe and reliable during transmission and display. The method significantly improves the security and anti-tampering capability of the data information transmission of the LED display screen, and avoids information leakage or display abnormality caused by the interception or cracking of the key. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 It is a schematic diagram of the flow of the encryption method of the LED display screen provided by the first embodiment of the present invention;

[0051] Figure 2 It is a schematic diagram of the structure of the encryption system of the LED display screen provided by the second embodiment of the present invention. DETAILED DESCRIPTION

[0052] 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.

[0053] Reference Figure 1The first embodiment of the present invention provides an encryption method for an LED display screen, comprising the following steps:

[0054] S11, obtaining unique identification information of the LED display screen, information data of the LED display screen, identification information of the micro control unit in the control circuit, and identification information of the decryption chip in the control circuit.

[0055] S12, generating a comprehensive key according to the unique identification information, the micro control unit identification information and the decryption chip identification information.

[0056] S13, encrypting the information data based on the comprehensive key to obtain ciphertext data.

[0057] S14, performing primary encryption and secondary encryption on the ciphertext data to obtain secondary encrypted ciphertext data.

[0058] S15, sending the secondary encrypted ciphertext data to the server device so that the server device decrypts it to obtain decrypted data, and compares the decrypted data with the information data. When the decrypted data is consistent with the information data, inputting a control signal to the LED display screen so that the LED display screen outputs display content according to the information data; when the decrypted data is inconsistent with the information data, not inputting a control signal to the LED display screen so that the LED display screen information is protected.

[0059] It is worth mentioning that the LED (Light Emitting Diode) display screen is a solid-state semiconductor device that can directly convert electrical energy into light energy. The heart of the LED is a semiconductor chip, one end of which is attached to a bracket, one end is the negative pole, and the other end is connected to the positive pole of the power supply, so that the entire chip is encapsulated by epoxy resin. When current passes through, the chip will emit light. In the three colors of red, green and blue, three LEDs with different voltages are arranged together, and a layer with printed text is added to form a display screen with multiple colors and complete brightness.

[0060] In order to facilitate the understanding of the present invention, some preferred embodiments of the present invention are further described below.

[0061] In step S11, the unique identification information of the LED display screen, the information data of the LED display screen, the identification information of the micro control unit in the control circuit, and the identification information of the decryption chip in the control circuit are obtained.

[0062] Specifically, the unique identification information of the LED display is a unique identifier for each LED display, which can usually be a serial number, hardware ID or other information that can uniquely identify the device. This type of identification information is used to ensure that the encryption operation is targeted at a specific display and prevent other displays from using the same encrypted data, thereby improving the security of the device. The information data of the LED display is the specific content to be displayed on the display, including text, images, videos, etc. This data is the core part to be protected during the encryption process to prevent the data from being tampered with or intercepted during transmission. The microcontroller unit (MCU) is part of the display controller and is responsible for managing and performing operations such as encryption and decryption. The identification information of the microcontroller unit helps to determine the specific hardware environment during the encryption process and prevent the misuse of encrypted data between different hardware platforms. The decryption chip is used to perform decryption operations in the control circuit to ensure that only devices with the correct chip identification can decrypt the encrypted data. The identification information participates in the generation of the key during the encryption process to ensure security and uniqueness.

[0063] It is worth noting that the unique identification information of the LED display is usually solidified in the device when the LED display leaves the factory, and can be obtained through the device's control system or through a software call interface. For example, by reading the device's hardware ID, serial number, MAC address or other unique identifier. The information data of the LED display is the actual displayed data, which can be obtained through the interface of the control system or the display. Usually, the external control system transmits the content to be displayed to the LED display, and this information is extracted by the display controller before encryption. The identification information of the microcontroller unit is generally obtained by reading the unique hardware ID of the controller chip or the serial number burned into the control unit. This information can usually be obtained through the interface of the control system or the debugging interface of the MCU. The identification information of the decryption chip is similar to the identification information of the microcontroller unit, and it also needs to be obtained by reading the chip's hardware ID or the relevant identification information stored in the device configuration. Usually, the identification of the decryption chip is accessed through the interface or driver provided by the chip manufacturer.

[0064] In step S12, a comprehensive key is generated according to the unique identification information, the micro control unit identification information and the decryption chip identification information.

[0065] Preferably, generating a comprehensive key based on the unique identification information, the micro control unit identification information and the decryption chip identification information includes: combining the unique identification information, the micro control unit identification information and the decryption chip identification information into a character string to obtain comprehensive identification information; randomly generating a random key, and using the random key and the comprehensive identification information to perform CEC16 verification to generate a verification code; performing an XOR operation on the verification code and the random key to generate a comprehensive key.

[0066] Specifically, the process of combining into a string usually refers to splicing the unique identification information, the microcontroller unit identification information and the decryption chip identification information together in a certain order and rule to form a complete string. In the encryption system, such a combination can be done in many ways. The most direct way is to arrange the three identification information directly in a predetermined order. For example, the unique identification information of the LED display is LED123456, the MCU identification information is MCU987654, and the decryption chip identification information is Chip001234. Then the string formed after the combination is LED123456MCU987654Chip001234. Alternatively, other methods are used for splicing, including: splicing with delimiters, using some special characters (such as commas, spaces, colons, etc.) as delimiters to distinguish each part, which can not only clearly identify the boundaries of each information, but also reduce the parsing errors that may occur during the decryption process; splicing after encoding, in order to ensure the standardization of the string or avoid parsing problems caused by some special characters, each identification information can be encoded first (such as Base64 encoding, hexadecimal encoding, etc.), and then spliced. After being combined into a character string, the character string is used as comprehensive identification information.

[0067] It is worth noting that the random key is a temporary key generated by the system, usually generated by a hardware or software generator, to enhance the randomness and security of the key. The purpose of the random key is to avoid using a fixed key, which can prevent the reuse of the same encryption key and improve system security.

[0068] It is worth noting that CEC16 is a common verification algorithm, the full name of which is 16-bit Cyclic Redundancy Check (CRC-16). It is an algorithm for data verification, usually used to detect errors in data transmission. CRC-16 is widely used in communication systems, storage devices and other occasions where data integrity is required. In the encryption method of the present invention, CEC16 is used to verify the integrity of the combined unique identification information, microcontroller unit identification information and decryption chip identification information. By using the CEC16 algorithm to generate the verification code, it can be ensured that these identification information has not been tampered with when generating the comprehensive key, and the generation process of the verification code can improve the reliability and security of the overall encryption scheme.

[0069] Subsequently, the randomly generated key is combined with the previously generated comprehensive identification information to perform CEC16 verification. CEC16 is a common verification algorithm used to detect the integrity and accuracy of data. The algorithm generates a check code by performing specific operations on the data to ensure that the data will not be tampered with during transmission. Specifically, the CEC16 verification performs a series of verification calculations on the input data (i.e., the comprehensive identification information and the random key) and outputs a check code of a fixed length. This check code corresponds one-to-one with the input data.

[0070] It is worth mentioning that the exclusive OR operation (XOR) is a logical operation that is very commonly used in computer science and cryptography. The characteristic of the exclusive OR operation is that if the two inputs are the same, the output is 0; if the two inputs are different, the output is 1. In this step, the checksum is XORed with the random key. The characteristic of the exclusive OR operation is that if the binary values ​​of the two are the same, the result is 0; if they are different, the result is 1. Through this operation, the complexity and unpredictability of the key can be further enhanced. The final result of the exclusive OR operation is the generated comprehensive key, which will be used for subsequent data encryption and decryption operations. The comprehensive key generated in this way has high security and uniqueness, ensuring that only specific hardware devices can correctly encrypt and decrypt data to prevent data from being intercepted or tampered with.

[0071] In step S13, the information data is encrypted based on the comprehensive key to obtain ciphertext data.

[0072] Preferably, the encrypting the information data based on the comprehensive key to obtain ciphertext data includes: expanding the comprehensive key into a preset number of round keys; performing an XOR operation on the information data and the first round key to obtain a first preprocessed ciphertext block; performing byte replacement, row shift, column confusion and round key addition operations on the first preprocessed ciphertext block and the second round keys to the second to last round keys to obtain a second preprocessed ciphertext block; performing byte replacement, row shift and round key addition operations on the second preprocessed ciphertext block and the last round key to obtain ciphertext data.

[0073] Specifically, in the AES encryption algorithm, the key usually needs to be generated through a key expansion algorithm to generate multiple subkeys, also known as round keys. Each round of encryption operation uses a different subkey, which can increase the complexity and security of encryption. The step of expanding the key involves using some mathematical functions or transformations to expand the original key into multiple round keys, and each round of encryption operation uses a new key. The number of round keys here is determined by the specific design of the encryption algorithm and may be related to the length of the encrypted data or the key length.

[0074] First, the information data is XORed with the first round key bit by bit. XOR is a common encryption operation that is simple, fast, and difficult to crack. Through XOR, the original data is "mixed" with the first round key to obtain an encrypted intermediate result, called the first pre-processed ciphertext block.

[0075] Secondly, the first preprocessed ciphertext block and the second round key to the second to last round key are subjected to byte replacement, row shift, column confusion and round key addition operations to obtain the second preprocessed ciphertext block. Specifically, in this step, the first preprocessed ciphertext block continues to be processed through a series of more complex encryption steps, mainly including: byte replacement, which is similar to the S-box operation in the AES encryption algorithm. Byte replacement is a nonlinear transformation that replaces each byte of the input with a new byte value according to a specific lookup table (such as an S-box), thereby disrupting the structure of the input data and increasing the complexity of encryption; row shift, row shift is to shift certain parts of the encrypted data (usually rows of data) by a specific offset. This shift operation breaks the original data arrangement order, making the encrypted data more difficult to analyze; column confusion, column confusion is an operation similar to matrix operations, usually mixing data in columns through matrix multiplication in linear algebra. The purpose of this is to make the value of each byte interact with other bytes, so that each output byte is not only related to the input byte, but also to the values ​​of other bytes, increasing the complexity and unpredictability of the data; round key addition, at the end of each round of encryption, the result will be XORed with the key of the current round. This is the so-called round key addition operation. This operation ensures that the encryption result is re-"mixed" with the key after each round, further improving security.

[0076] Finally, the second pre-processed ciphertext block is subjected to byte replacement, row shift and round key addition operations with the last round key to obtain the ciphertext data. Specifically, the processing of the last round of encryption is slightly simplified, and only requires the following operations: byte replacement, using the S-box or a similar byte replacement mechanism to replace the data again; row shift, continuing to shift the rows of the data to disrupt their original order; round key addition, performing an XOR operation on the encryption result of the previous step and the last round key to obtain the final encryption result, i.e., the ciphertext data.

[0077] In step S14, the ciphertext data is first-level encrypted and second-level encrypted to obtain second-level encrypted ciphertext data.

[0078] Optionally, performing primary encryption and secondary encryption on the ciphertext data to obtain secondary encrypted ciphertext data includes: performing primary encryption on the ciphertext data based on DES encryption and decryption to obtain primary encrypted ciphertext data; performing secondary encryption on the primary encrypted ciphertext data based on an RSA encryption formula to obtain secondary encrypted ciphertext data.

[0079] Optionally, the DES-based encryption and decryption performs a first-level encryption on the ciphertext data to obtain first-level encrypted ciphertext data, including: randomly generating a first key, a second key and a third key; using the first key to perform DES encryption on the ciphertext data to obtain a first encryption result; using the second key to perform DES decryption on the first encryption result to obtain a second encryption result; using the third key to perform a second DES encryption on the second encryption result to obtain first-level encrypted ciphertext data; wherein the DES encryption and the DES decryption include initial permutation, extended permutation, S-box operation, P-box permutation, XOR with round keys and final permutation.

[0080] Optionally, performing secondary encryption on the primary encrypted ciphertext data based on an RSA encryption formula to obtain secondary encrypted ciphertext data includes: obtaining a public key exponent and an RSA modulus of an RSA encryption algorithm; dividing the primary encrypted ciphertext data into blocks and converting them into ciphertext integers; and calculating secondary encrypted ciphertext data blocks based on an RSA encryption formula; wherein the calculation formula of the RSA encryption formula is:

[0081]

[0082] In the formula, For the The secondary encrypted ciphertext data block of the block, For the The ciphertext integer of the block, is the public key exponent, is the RSA modulus, It is a remainder operation; the secondary encrypted ciphertext data blocks are combined to obtain secondary encrypted ciphertext data.

[0083] Specifically, the specific method of performing primary encryption on ciphertext data involves using three sets of keys (first key, second key, and third key) to perform triple data encryption standard (DES) operations, and finally generate primary encrypted ciphertext data. In this step, the system will randomly generate three different sets of keys, namely the first key, the second key, and the third key. These keys will be used for subsequent DES encryption and decryption operations. The random generation of keys is to ensure the security of encryption. Using different keys for each encryption can prevent attackers from cracking through known ciphertext or frequently repeated keys.

[0084] It is worth noting that DES (Data Encryption Standard) is a symmetric encryption algorithm that uses a 64-bit plaintext block and a 56-bit key for encryption. Its core idea is to gradually encrypt plaintext data into ciphertext data through initial permutation, 16 rounds of encryption transformation and final permutation. In the present invention, the system uses a first key to perform a DES encryption operation on the ciphertext data to be encrypted to obtain a first encryption result. Through this encryption, the original ciphertext data will be encrypted into a new intermediate data.

[0085] Next, the system uses the second key to perform a DES decryption operation on the first encryption result just generated. This is a reverse operation, that is, using the decryption algorithm to restore the encrypted data to a certain form. It is worth noting that the decryption operation here is not to restore the original ciphertext data, but to process the first encryption result to generate a new intermediate result, called the second encryption result.

[0086] Finally, the system uses the third key to perform DES encryption on the second encryption result again. This is the third encryption operation. After this round of encryption, the first-level encrypted ciphertext data is finally generated, which is the final result of the first-level encryption. This encryption process uses three different sets of keys, and through the three operations of encryption-decryption-re-encryption (the so-called triple DES encryption (Triple DES, 3DES)), the encryption process is more complex and secure.

[0087] It is worth mentioning that in each DES encryption or decryption, the specific operations include: initial permutation, before starting encryption, a fixed permutation operation is performed on the plaintext data block. This step is to increase the nonlinearity of encryption; extended permutation, an expansion operation is performed on part of the data to increase the redundancy of the data so that it can be better combined with the key in subsequent operations; S-box operation, which is the core step of DES. The S-box is used for nonlinear transformation to convert the data block into another form, thereby increasing the obfuscation of the data; P-box permutation, this step permutes the data output by the S-box again to further disrupt the order of the data; XOR with the round key, each round of encryption is XORed with the current round key, so that the key and data are closely combined to ensure the uniqueness and security of the encryption; final permutation, after 16 rounds of encryption operations are completed, a fixed permutation operation is finally performed to obtain the final encryption result, that is, the first-level encrypted ciphertext data.

[0088] It is worth mentioning that the RSA encryption algorithm is an asymmetric encryption algorithm that uses a pair of keys: a public key and a private key. The public key is used for encryption, and the private key is used for decryption. First, you need to obtain two key parameters of the RSA encryption algorithm: the public key exponent (e), which is part of the RSA public key and is a small integer. Common values ​​are 3, 17, or 65537. These numbers are usually used together with the modulus for encryption operations; the RSA modulus (n), which is the result of multiplying two large prime numbers and is used for core calculations in the RSA encryption and decryption process. The larger the modulus, the higher the strength of the key, usually 1024 bits, 2048 bits or higher. These two parameters (public key exponent and modulus) are the public key part of the RSA encryption algorithm and are used to encrypt the data after the first level of encryption.

[0089] First, the first-level encrypted ciphertext data is divided into blocks and converted into ciphertext integers. The RSA encryption algorithm requires that the encrypted data block size cannot exceed the size of the modulus, so the first-level encrypted ciphertext data must be divided into several blocks, and the length of each data block is less than or equal to the number of bits in the modulus minus some padding bits. This ensures that each encrypted data block can be operated with the modulus. In the RSA encryption process, the encrypted data is usually processed in the form of integers. The divided data needs to be converted into integers. The specific approach is to treat each data block as a large integer, which will be used as the input of the encryption operation.

[0090] Secondly, the secondary encrypted ciphertext data block is calculated based on the RSA encryption formula. It is worth noting that each plaintext block to be encrypted (i.e. the primary encrypted ciphertext data block) is encrypted using this formula to generate the corresponding ciphertext block. Since RSA is based on exponential operations, its encryption strength is very high and is particularly suitable for encrypting smaller keys or data blocks.

[0091] After being encrypted by the RSA formula, each block of data generates a corresponding secondary encrypted ciphertext block. The last step is to combine these ciphertext blocks together to form the final secondary encrypted ciphertext data. The secondary encrypted ciphertext data is data that has been protected by two layers of encryption, first DES triple encryption (primary encryption), and then RSA asymmetric encryption (secondary encryption). This makes the entire encryption process extremely secure, especially in high-risk scenarios, and can effectively prevent data leakage or cracking.

[0092] In step S15, the secondary encrypted ciphertext data is sent to the server device so that the server device decrypts it to obtain decrypted data, and compares the decrypted data with the information data. When the decrypted data is consistent with the information data, a control signal is input to the LED display screen so that the LED display screen outputs display content according to the information data; when the decrypted data is inconsistent with the information data, no control signal is input to the LED display screen so that the LED display screen information is protected.

[0093] Preferably, the sending of the secondary encrypted ciphertext data to the server device so that the server device decrypts and obtains decrypted data includes: performing a primary encryption inverse operation on the secondary encrypted ciphertext data to obtain decrypted intermediate data; performing a secondary encryption inverse operation on the decrypted intermediate data to obtain decrypted data.

[0094] Specifically, the decryption process of the secondary encrypted ciphertext data includes two steps: the inverse operation of the primary encryption and the inverse operation of the secondary encryption, and finally the decrypted data is obtained. The secondary encrypted data first performs the inverse operation of the primary encryption. The secondary encrypted data is generated by RSA encryption, so the RSA private key is required for decryption operation. The secondary encrypted ciphertext data is decrypted block by block through the RSA private key to obtain the primary encrypted ciphertext data, which is the so-called "decrypted intermediate data".

[0095] It is worth noting that the decryption process of RSA is similar to the encryption process, and the formula is:

[0096]

[0097] In the formula, is the decrypted plaintext block, is the encrypted ciphertext block, is the RSA private key exponent, is the RSA modulus. This operation restores the first-level encrypted ciphertext data before encryption.

[0098] In the above steps, the data is initially encrypted based on the comprehensive key, followed by primary encryption using three-level DES (3DES), and finally secondary encryption using RSA. The decryption process performs these steps in reverse, decrypting each encryption layer layer by layer to restore the original plaintext data. The secondary encryption in the encryption process is completed using the RSA algorithm, and the decryption of this layer also first performs RSA decryption. The above decryption formula is the inverse operation of the encryption formula. Through this operation, the recovered M is the primary encrypted ciphertext data in the encryption process, that is, the data encrypted by 3DES.

[0099] Specifically, after obtaining the decrypted intermediate data (i.e., the first-level encrypted ciphertext data), it is necessary to perform the inverse operation of the second-level encryption on it. This process is the decryption of the DES triple encryption. The decryption steps of the DES triple encryption are symmetrical with the encryption steps, and the decryption order is as follows: Use the third key to perform a DES decryption. Use the second key to perform DES encryption (the second step in the decryption process is the opposite of encryption, and is actually encryption). Use the first key to perform DES decryption, and finally obtain the original plaintext data. Through these three decryption operations, the system finally recovers the initial unencrypted data, that is, the decrypted data.

[0100] Next, the decrypted data is compared with the message data. After decryption, the server compares the decrypted data with the original message data to ensure that they are completely consistent. The purpose of the comparison is to ensure that the data has not been tampered with during the encryption and transmission process. By comparing the decrypted data with the original message data, the system can verify that there were no errors or attacks during the encryption, decryption and transmission process.

[0101] If the decrypted data is the same as the original information data, it means that the data transmission and decryption are successful and the data has not been tampered with or damaged. In this case, the system will send a control signal to allow the LED display to display the content according to the correct data obtained by decryption. If the comparison result finds that the decrypted data is inconsistent with the original information data, it means that the data may have been tampered with or attacked during transmission. In order to ensure that the display does not display wrong or maliciously tampered data, the system will block the sending of control signals and the LED display will not display this data. This is to protect the system and users and prevent the display of wrong information.

[0102] The following describes the working process of the present invention by taking a relatively common scenario as an example. The working process is as follows:

[0103] In this scenario, the controller of the LED display first obtains the unique identification information of the display, such as the hardware serial number, ID, etc.; it also needs to obtain the identification information of the microcontroller unit (MCU) in the control circuit and the chip identification information used for decryption.

[0104] Based on the above identification information, the system generates a comprehensive key. This key is based on the unique information of the display and controller and the random key randomly generated by the system. Through the XOR operation and the generation of the CEC16 check code, the uniqueness and security of the encryption key are ensured.

[0105] The advertising company needs to upload an advertising video to the display screen. The video file is first input into the system as information data. The system uses the generated comprehensive key to encrypt the advertising content. The encryption process includes multiple operations such as byte replacement, row shift, and column confusion to ensure that the encrypted data is highly chaotic and difficult to crack.

[0106] The system performs primary encryption (DES triple encryption) and secondary encryption (RSA encryption) on the encrypted advertising data. Through multi-level encryption, it ensures that even if one layer of encryption is cracked, the attacker still cannot obtain the complete plaintext data.

[0107] The encrypted data is transmitted to the display screen's server device for decryption. The server first decrypts the secondary encrypted data using the RSA private key to obtain the primary encrypted data, and then uses DES triple decryption to restore the original advertising data.

[0108] The server device compares the decrypted data with the original uploaded advertising data to verify the integrity of the data during transmission and encryption. If the decrypted data is consistent with the original data, the system will send a control signal to allow the LED display to play the advertising content. If the comparison results are inconsistent, the system will block the control signal from being sent to ensure that the LED display will not display any tampered or incorrectly transmitted data. This process prevents illegal tampering and protects advertisers' content from being maliciously tampered with or destroyed.

[0109] In summary, the present invention provides an encryption method for an LED display screen, comprising: obtaining unique identification information of the LED display screen, information data of the LED display screen, identification information of a microcontroller unit in a control circuit, and identification information of a decryption chip in a control circuit; generating a comprehensive key according to the unique identification information, the identification information of the microcontroller unit, and the identification information of the decryption chip; encrypting the information data based on the comprehensive key to obtain ciphertext data; performing primary encryption and secondary encryption on the ciphertext data to obtain secondary encrypted ciphertext data; sending the secondary encrypted ciphertext data to a server device so that the server device decrypts it to obtain decrypted data, and comparing the decrypted data with the information data, and when the decrypted data is consistent with the information data, inputting a control signal to the LED display screen so that the LED display screen outputs display content according to the information data; when the decrypted data is inconsistent with the information data, not inputting a control signal to the LED display screen so that the information of the LED display screen is protected.

[0110] In the present invention, the method can generate a comprehensive key by acquiring the unique identification information of the LED display screen, the identification information of the microcontroller unit in the control circuit, and the identification information of the decryption chip, encrypt the display data based on the comprehensive key, perform multi-level encryption processing on the ciphertext data, and finally send it to the server for decryption and verification, thereby ensuring that the display data is safe and reliable during transmission and display. The method significantly improves the security and anti-tampering capability of the data information transmission of the LED display screen, and avoids information leakage or display abnormality caused by the interception or cracking of the key.

[0111] Reference Figure 2 The second embodiment of the present invention provides an encryption system for an LED display screen, comprising:

[0112] An information acquisition module is used to acquire the unique identification information of the LED display screen, the information data of the LED display screen, the identification information of the micro control unit in the control circuit, and the identification information of the decryption chip in the control circuit;

[0113] A key generation module, used to generate a comprehensive key according to the unique identification information, the micro control unit identification information and the decryption chip identification information;

[0114] A first data encryption module, used for encrypting the information data based on the comprehensive key to obtain ciphertext data;

[0115] A second data encryption module is used to perform primary encryption and secondary encryption on the ciphertext data to obtain secondary encrypted ciphertext data;

[0116] The data decryption module is used to send the secondary encrypted ciphertext data to the server device so that the server device decrypts it to obtain decrypted data, and compares the decrypted data with the information data. When the decrypted data is consistent with the information data, a control signal is input to the LED display screen so that the LED display screen outputs display content according to the information data; when the decrypted data is inconsistent with the information data, no control signal is input to the LED display screen so that the LED display screen information is protected.

[0117] In an optional implementation, the key generation module is specifically used to:

[0118] Combining the unique identification information, the micro control unit identification information and the decryption chip identification information into a character string to obtain comprehensive identification information;

[0119] Randomly generate a random key, and use the random key and the comprehensive identification information to perform CEC16 verification to generate a verification code;

[0120] An XOR operation is performed on the check code and the random key to generate a comprehensive key.

[0121] In an optional implementation, the first data encryption module is specifically used to:

[0122] Expanding the comprehensive key into a preset number of round keys;

[0123] Performing an XOR operation on the information data and the first round key to obtain a first preprocessed ciphertext block;

[0124] Perform byte replacement, row shift, column confusion and round key addition operations on the first preprocessed ciphertext block and the second round key to the second to last round key to obtain a second preprocessed ciphertext block;

[0125] The second preprocessed ciphertext block and the last round key are subjected to byte replacement, row shift and round key addition operations to obtain ciphertext data.

[0126] In an optional implementation, the second data encryption module is specifically used to:

[0127] Performing a first-level encryption on the ciphertext data based on DES encryption and decryption to obtain first-level encrypted ciphertext data;

[0128] The first-level encrypted ciphertext data is secondarily encrypted based on the RSA encryption formula to obtain second-level encrypted ciphertext data.

[0129] In an optional implementation, the second data encryption module is specifically used to:

[0130] randomly generating a first key, a second key, and a third key;

[0131] Use the first key to perform DES encryption on the ciphertext data to obtain a first encryption result;

[0132] Using the second key to perform DES decryption on the first encryption result to obtain a second encryption result;

[0133] The second encryption result is encrypted for the second time using the third key to obtain primary encrypted ciphertext data.

[0134] In an optional implementation, the second data encryption module is specifically used to:

[0135] Get the public key exponent and RSA modulus of the RSA encryption algorithm;

[0136] Divide the first-level encrypted ciphertext data into blocks and convert them into ciphertext integers;

[0137] The secondary encrypted ciphertext data block is calculated based on the RSA encryption formula; wherein the calculation formula of the RSA encryption formula is:

[0138]

[0139] In the formula, For the The secondary encrypted ciphertext data block of the block, For the The ciphertext integer of the block, is the public key exponent, is the RSA modulus, It is the remainder operation;

[0140] The secondary encrypted ciphertext data blocks are combined to obtain secondary encrypted ciphertext data.

[0141] In an optional implementation, the data decryption module is specifically used for:

[0142] The server device performs an inverse operation of the first-level encryption on the second-level encrypted ciphertext data to obtain decrypted intermediate data;

[0143] The server-side device performs a secondary encryption inverse operation on the decrypted intermediate data to obtain decrypted data.

[0144] It should be noted that the encryption system of an LED display screen provided in an embodiment of the present invention is used to execute all the process steps of the encryption method of an LED display screen in the above embodiment, and the working principles and beneficial effects of the two correspond one to one, so they will not be repeated.

[0145] An embodiment of the present invention further provides an LED display screen, wherein the LED display screen includes the encryption system of the LED display screen as described in any one of the above.

[0146] The embodiment of the present invention further provides an electronic device. The electronic device includes: a processor, a memory, and a computer program stored in the memory and executable on the processor, such as an encryption method program for an LED display screen. When the processor executes the computer program, the steps in the above-mentioned encryption method embodiments for LED display screens are implemented, such as Figure 1 Alternatively, when the processor executes the computer program, the functions of the modules / units in the above-mentioned system embodiments are realized, such as the data decryption module.

[0147] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the electronic device.

[0148] The electronic device may be a computing device such as a desktop computer, a notebook, a PDA, and a smart tablet. The electronic device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the above components are merely examples of electronic devices and do not constitute a limitation on the electronic device. The electronic device may include more or fewer components than the above components, or may combine certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.

[0149] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device.

[0150] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the electronic device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0151] Wherein, if the module / unit integrated in the electronic device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or system capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0152] It should be noted that the system embodiment described above is merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the system embodiment provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.

[0153] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. An encryption method for an LED display screen, characterized in that: Executed by the LED display controller, including: Obtaining unique identification information of the LED display screen, information data of the LED display screen, identification information of the microcontroller unit in the control circuit, and identification information of the decryption chip in the control circuit; Generate a comprehensive key according to the unique identification information, the micro control unit identification information and the decryption chip identification information; Encrypting the information data based on the comprehensive key to obtain ciphertext data; Performing primary encryption and secondary encryption on the ciphertext data to obtain secondary encrypted ciphertext data; The secondary encrypted ciphertext data is sent to the server device so that the server device decrypts it to obtain decrypted data, and the decrypted data is compared with the information data. When the decrypted data is consistent with the information data, a control signal is input to the LED display screen so that the LED display screen outputs display content according to the information data; when the decrypted data is inconsistent with the information data, no control signal is input to the LED display screen so that the LED display screen information is protected.

2. The encryption method of the LED display screen according to claim 1, characterized in that: The generating of a comprehensive key according to the unique identification information, the micro control unit identification information and the decryption chip identification information comprises: Combining the unique identification information, the micro control unit identification information and the decryption chip identification information into a character string to obtain comprehensive identification information; Randomly generate a random key, and use the random key and the comprehensive identification information to perform CEC16 verification to generate a verification code; An XOR operation is performed on the check code and the random key to generate a comprehensive key.

3. The encryption method of the LED display screen according to claim 1, characterized in that: The step of encrypting the information data based on the comprehensive key to obtain ciphertext data includes: Expanding the comprehensive key into a preset number of round keys; Performing an XOR operation on the information data and the first round key to obtain a first preprocessed ciphertext block; Perform byte replacement, row shift, column confusion and round key addition operations on the first preprocessed ciphertext block and the second round key to the second to last round key to obtain a second preprocessed ciphertext block; The second preprocessed ciphertext block and the last round key are subjected to byte replacement, row shift and round key addition operations to obtain ciphertext data.

4. The encryption method of the LED display screen according to claim 1, characterized in that: The step of performing primary encryption and secondary encryption on the ciphertext data to obtain secondary encrypted ciphertext data includes: Performing a first-level encryption on the ciphertext data based on DES encryption and decryption to obtain first-level encrypted ciphertext data; The first-level encrypted ciphertext data is secondarily encrypted based on the RSA encryption formula to obtain second-level encrypted ciphertext data.

5. The encryption method of the LED display screen according to claim 4, characterized in that: The method of performing a first-level encryption on the ciphertext data based on DES encryption and decryption to obtain first-level encrypted ciphertext data includes: randomly generating a first key, a second key, and a third key; Use the first key to perform DES encryption on the ciphertext data to obtain a first encryption result; Using the second key to perform DES decryption on the first encryption result to obtain a second encryption result; Perform a second DES encryption on the second encryption result using the third key to obtain first-level encrypted ciphertext data; The DES encryption and the DES decryption include initial permutation, extended permutation, S-box operation, P-box permutation, XOR with a round key, and final permutation.

6. The LED display screen encryption method according to claim 4, characterized in that: The performing secondary encryption on the primary encrypted ciphertext data based on the RSA encryption formula to obtain secondary encrypted ciphertext data includes: Get the public key exponent and RSA modulus of the RSA encryption algorithm; Divide the first-level encrypted ciphertext data into blocks and convert them into ciphertext integers; The secondary encrypted ciphertext data block is calculated based on the RSA encryption formula; wherein the calculation formula of the RSA encryption formula is: In the formula, For the The secondary encrypted ciphertext data block of the block, For the The ciphertext integer of the block, is the public key exponent, is the RSA modulus, It is the remainder operation; The secondary encrypted ciphertext data blocks are combined to obtain secondary encrypted ciphertext data.

7. The LED display screen encryption method according to claim 1, characterized in that: The step of sending the secondary encrypted ciphertext data to a server device so that the server device decrypts the data to obtain decrypted data includes: The server device performs an inverse operation of the first-level encryption on the second-level encrypted ciphertext data to obtain decrypted intermediate data; The server-side device performs a secondary encryption inverse operation on the decrypted intermediate data to obtain decrypted data.

8. An encryption system for an LED display screen, characterized in that: include: An information acquisition module is used to acquire the unique identification information of the LED display screen, the information data of the LED display screen, the identification information of the micro control unit in the control circuit, and the identification information of the decryption chip in the control circuit; A key generation module, used to generate a comprehensive key according to the unique identification information, the micro control unit identification information and the decryption chip identification information; A first data encryption module, used for encrypting the information data based on the comprehensive key to obtain ciphertext data; A second data encryption module is used to perform primary encryption and secondary encryption on the ciphertext data to obtain secondary encrypted ciphertext data; A data decryption module, used for sending the secondary encrypted ciphertext data to a server device so that the server device decrypts the data to obtain decrypted data, and compares the decrypted data with the information data. When the decrypted data is consistent with the information data, a control signal is input to the LED display screen so that the LED display screen outputs display content according to the information data; When the decrypted data is inconsistent with the information data, no control signal is input to the LED display screen, so that the LED display screen information is protected.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the encryption method for the LED display screen according to any one of claims 1 to 7.

10. An LED display screen, characterized in that: The LED display screen includes the encryption system of the LED display screen as claimed in claim 8.

Citation Information

Patent Citations

  • Video / audio monitoring equipment, security authentication method thereof and video / audio display equipment

    CN106131008A

  • Data transmission management method, data processing method and device

    CN115567263A