Media Data Decryption Method, Device, Computer Equipment and Storage Medium

By using position out-of-order index data in the media data decryption method to encrypt the media data in the random order and configuring a programmable logic circuit, the problem that media data decryption method in the prior art is easily cracked is solved, and efficient and secure decryption of media data is achieved.

CN114337988BActive Publication Date: 2025-05-30UNILUMIN GRP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111510831.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-10
Publication Date
2025-05-30
Estimated Expiration
2041-12-10

AI Technical Summary

Technical Problem

The existing media data decryption methods are at risk of being cracked, and after the underlying operating system of the broadcast control device of the LED display is illegally invaded, media data can still be projected, which cannot effectively ensure information security.

Method used

By acquiring the media data encryption packet, using the position out of order index data corresponding to the display screen structure parameters, the original media data is encrypted in pixels, and the programmable logic circuit at the media data playback end is configured, and the decryption of the decrypted media data is decrypted based on this circuit.

Benefits of technology

It realizes the real-time decryption capability of relying on the playback hardware during the decryption process and the correspondence between programmable logic circuits and LED screen structure, enhances the information security of media data and reduces the possibility of attackers to crack.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114337988B_ABST
    Figure CN114337988B_ABST
Patent Text Reader

Abstract

The present application relates to a method, apparatus, computer device, and storage medium for decrypting media data. The method includes: obtaining a media data encryption packet, decrypting the media data encryption packet to obtain position-disordered index data and media data to be decrypted, configuring a programmable logic circuit of a control system of a display screen in a media data playback end according to the position-disordered index data, and decrypting the media data to be decrypted based on the configured programmable logic circuit. Among them, the media data encryption packet is obtained by performing pixel disorder encryption on the original media data according to position index data, and the position index data corresponds to the structural parameters of the display screen. In the above solution, decryption requires relying on both the real-time decryption ability of the playback end hardware and the correspondence between the programmable logic circuit and the LED screen structure, and there are very many possibilities for the media data encrypted according to the position index data. Therefore, it is absolutely impossible for an attacker to crack it, fully ensuring the information security of the media data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data decryption, and particularly to a method, device, computer device, storage medium, and computer program product for decrypting media data. Background Art

[0002] With the booming development of the LED (Light Emitting Diode) display industry, its application fields are becoming increasingly wide. As an important way of the media carrier, LED displays are increasingly recognized by the market. With the in-depth development of the construction of smart cities, LED displays are also becoming more intelligent and convenient. As long as there is a network, remote control can be realized. While the development of technology brings convenience to the large-screen management personnel, it also leaves "opportunities" for lawbreakers.

[0003] Currently, the existing media data decryption methods basically decrypt media information by using common software-level decryption algorithms (such as AES / DES / RSA / RC2 / RC4), and the risk of being cracked is relatively high. At the same time, different authentication methods are used for broadcast control. The display subsystem still maintains the original point-by-point mapping mode. After the underlying operating system of its broadcast control device is illegally invaded or controlled, whether the media is authorized or not, it can still be projected onto the LED display body through the hardware mapping mode.

[0004] Therefore, it is necessary to provide a solution that can ensure the information security of media data. Summary of the Invention

[0005] Based on this, in view of the above technical problems, it is necessary to provide a method, device, computer device, computer-readable storage medium, and computer program product for decrypting media data that can ensure the information security of media data.

[0006] In a first aspect, the present application provides a method for decrypting media data, which is applied to a media data playback end. The method includes:

[0007] Obtain a media data encryption packet, which is obtained by pixel scrambling and encrypting the original media data according to position index data, and the position index data corresponds to the structural parameters of the display screen;

[0008] Decrypt the media data encryption packet to obtain position scrambled index data and media data to be decrypted;

[0009] Configure the programmable logic circuit of the control system of the display screen in the media data playback end according to the position scrambled index data;

[0010] Based on the configured programmable logic circuit, decrypt the media data to be decrypted to obtain decrypted media data.

[0011] In one embodiment, the structural parameters of the display screen include the module dot matrix scale, the cabinet dot matrix scale, and the screen dot matrix scale of the display screen. The position index data is obtained through the structural parameters of the display screen and represents the mapping relationship between the logical and physical positions of the display pixels of the display screen. The position scrambling index data includes module-level position scrambling index data, cabinet-level position scrambling index data, and screen-level position scrambling index data;

[0012] According to the position scrambling index data, the programmable logic circuit for configuring the control system of the display screen in the media data playback end includes:

[0013] Fill the module-level position scrambling index data, cabinet-level position scrambling index data, and screen-level position scrambling index data into the corresponding buffer areas in the control system of the display screen respectively, so as to configure the programmable logic circuit for the control system of the display screen in the media data playback end.

[0014] In one embodiment, based on the configured programmable logic circuit, decrypting the media data to be decrypted includes:

[0015] Based on the configured programmable logic circuit, call the MFC media decoder to decrypt the media data to be decrypted.

[0016] In one embodiment, before decrypting the media data encryption packet, it further includes:

[0017] Perform a legality check on the media data encryption packet;

[0018] Decrypting the media data encryption packet includes:

[0019] When the media data encryption packet passes the legality check, decrypt the media data encryption packet.

[0020] In one embodiment, the media data encryption packet carries a first check code;

[0021] Performing a legality check on the media data encryption packet includes:

[0022] Perform a hash operation on the media data encryption packet to generate a second check code;

[0023] Judge whether the second check code matches the first check code to perform a legality check on the media data encryption packet.

[0024] In one embodiment, both the first check code and the second check code are MD5 codes.

[0025] In a second aspect, the present application also provides a media data decryption device, which is applied to the media data playback end. The device includes:

[0026] A data acquisition module, configured to acquire an encrypted media data packet, where the encrypted media data packet is obtained by performing pixel scrambling encryption on the original media data according to position index data, and the position index data corresponds to the structural parameters of the display screen;

[0027] A first data decryption module, configured to decrypt the encrypted media data packet to obtain position scrambled index data and media data to be decrypted;

[0028] A circuit configuration module, configured to configure a programmable logic circuit of a control system of a display screen in a media data playback end according to the position scrambled index data;

[0029] A second data decryption module, configured to decrypt the media data to be decrypted based on the configured programmable logic circuit to obtain decrypted media data.

[0030] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0031] Acquire an encrypted media data packet, where the encrypted media data packet is obtained by performing pixel scrambling encryption on the original media data according to position index data, and the position index data corresponds to the structural parameters of the display screen;

[0032] Decrypt the encrypted media data packet to obtain position scrambled index data and media data to be decrypted;

[0033] Configure a programmable logic circuit of a control system of a display screen in a media data playback end according to the position scrambled index data;

[0034] Based on the configured programmable logic circuit, decrypt the media data to be decrypted to obtain decrypted media data.

[0035] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0036] Acquire an encrypted media data packet, where the encrypted media data packet is obtained by performing pixel scrambling encryption on the original media data according to position index data, and the position index data corresponds to the structural parameters of the display screen;

[0037] Decrypt the encrypted media data packet to obtain position scrambled index data and media data to be decrypted;

[0038] Configure a programmable logic circuit of a control system of a display screen in a media data playback end according to the position scrambled index data;

[0039] Decrypt the media data to be decrypted based on the configured programmable logic circuit to obtain the decrypted media data.

[0040] In a fifth aspect, the present application also provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0041] Obtain a media data encryption package, which is obtained by pixel scrambling and encrypting the original media data according to position index data, and the position index data corresponds to the structural parameters of the display screen;

[0042] Decrypt the media data encryption package to obtain position scrambled index data and the media data to be decrypted;

[0043] Configure the programmable logic circuit of the control system of the display screen in the media data playback end according to the position scrambled index data;

[0044] Decrypt the media data to be decrypted based on the configured programmable logic circuit to obtain the decrypted media data.

[0045] In the above media data decryption method, device, computer device, storage medium and computer program product, according to the position scrambled index data corresponding to the structural parameters of the display screen, the programmable logic circuit of the control system of the display screen in the media data playback end is configured, so that the configured programmable logic circuit corresponds to the structure of the LED screen. Thus, in the decryption process, it is necessary to rely on both the real-time decryption ability of the playback end hardware and the correspondence between the programmable logic circuit and the LED screen structure to perform decryption. And because there are a very large number of possibilities for the encryption result of the media data scrambled and encrypted according to the position index data, therefore, it makes it impossible for attackers to crack, fully ensuring the information security of the media data. Description of the Drawings

[0046] Figure 1 It is a schematic flowchart of the media data decryption method in an embodiment;

[0047] Figure 2 It is a schematic diagram of the step of obtaining the position scrambled index data in an embodiment;

[0048] Figure 3 It is a detailed schematic flowchart of the media data decryption method in an embodiment;

[0049] Figure 4 It is a detailed schematic flowchart of the media data decryption method in another embodiment;

[0050] Figure 5 It is a structural block diagram of the media data decryption device in an embodiment;

[0051] Figure 6 is the structural block diagram of the media data decryption device in another embodiment;

[0052] Figure 7 is the internal structure diagram of a computer device in one embodiment. Detailed implementation manners

[0053] In order to make the objectives, technical solutions and advantages of the present application clearer and more understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0054] In one embodiment, as Figure 1 shown, a media data decryption method is provided. In this embodiment, it is exemplified that the method is applied to a media data playback terminal. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0055] Step 202, obtain a media data encryption packet, which is obtained by performing pixel scrambling encryption on the original media data according to position index data, and the position index data corresponds to the structural parameters of the display screen.

[0056] In practical applications, a display screen for displaying media data is installed on the media data playback end. Taking the LED display screen as an example, the screen body of the LED display screen is composed of boxes, and the boxes are composed of modules. Therefore, the structural parameters of the display screen in this embodiment include the LED module dot matrix scale, the LED box dot matrix scale, and the LED screen body dot matrix scale. The media data encryption packet is obtained by encrypting at the data encryption end. The specific encryption process can be as follows: Obtain the media data to be encrypted and the structural parameters of the display screen on the media data playback end. The structural parameters of the display screen include the module dot matrix scale, the box dot matrix scale, and the screen body dot matrix scale. According to the module dot matrix scale, construct a module data arrangement table (which can also be called a module model) corresponding to the module dot matrix scale. According to the box dot matrix scale, construct a box data arrangement table (which can also be called a box model) corresponding to the box dot matrix scale. According to the screen body dot matrix scale, construct a screen body data arrangement table (which can also be called a screen body model) corresponding to the screen body dot matrix scale. Perform a scrambling operation on the module data arrangement table, the box data arrangement table, and the screen body data arrangement table respectively to obtain module-level position scrambling index data, box-level position scrambling index data, and screen body-level position scrambling index data. Among them, the position scrambling index data represents the mapping relationship between the logical and physical positions of the display screen pixels. Divide each frame of the image of the media data to be encrypted into image blocks whose size is proportional to the module dot matrix scale of the display screen. According to the module-level position scrambling index data, perform a pixel scrambling operation on each image block to obtain a module-level pixel scrambling encryption result. According to the box-level position scrambling index data, perform a pixel permutation and combination on the module-level pixel scrambling encryption result to obtain a box-level pixel scrambling encryption result. According to the screen body-level position scrambling index data, perform a pixel permutation and combination on the box-level pixel scrambling encryption result to obtain a screen body-level pixel scrambling encryption result. Aggregate the screen body-level pixel scrambling encryption results corresponding to each frame of the image in the media data to be encrypted to obtain the encrypted media data. Specifically, the module model, box model, and screen body model in the LED display system can be obtained through a pixel dotting table, a box data arrangement table, and a box connection diagram. Specifically, the pixel dotting table includes the logical relationship between the LED display pixels and the drive circuit. The box data arrangement table contains the relative relationship between the output data of each module and the receiving card. The box connection diagram includes the connection relationship between each box and the display screen.

[0057] The following describes the process of obtaining the media data encryption packet by encrypting the media data to be transmitted at the data encryption end with reference to an embodiment. Taking the LED display screen as an example, which is composed of 96*96 dot boxes formed by 32*32 dot matrix modules and installed in a horizontal 4*height 3 LED screen, and taking the position scrambling index data as an example of a position scrambling index table, the process of obtaining the media data encryption packet can be as follows:

[0058] The staff imports the video data to be encrypted and the structural parameters of the LED display screen at the video playback end at the data encryption end, including 32*32 dot matrix module, 3*3 dot matrix cabinet and 4*3 dot matrix screen, and then sends the data encryption instruction. The processor at the data encryption end responds to the data encryption instruction and constructs a 32*32 module model (32*32 matrix), a 3*3 cabinet model (4*3 matrix) and a 4*3 screen model (4*3 matrix) according to the 32*32 dot matrix module, 3*3 dot matrix cabinet and 4*3 dot matrix screen. Then, according to the shuffling algorithm, the 32*32 module model, the 3*3 cabinet model and the 4*3 screen model are shuffled to obtain the shuffled module model, cabinet model and screen model. Then, the module model, cabinet model and screen model before and after the shuffle are analyzed to obtain the module-level position shuffle index table, the cabinet-level position shuffle index table and the screen-level position shuffle index table. Then, the 32*32 module-level position disordered index table is used to cut each frame of the video data into 32*32 point-sized image blocks in order (from top to bottom, from left to right), and multiple image blocks are obtained. Then, the pixel disorder operation is performed on each image block to generate a new disordered image block, and the module-level encryption result is obtained. Further, the module-level position disordered index table can be encrypted and saved; then, the module-level encryption result is arranged and combined according to the 3*3 box-level position disordered index data to obtain the box-level encryption result. Similarly, the box-level position disordered index table is encrypted and saved. Finally, the box-level encryption result is arranged and combined according to the 4*3 screen-level position disordered index table to obtain the screen-level encryption result. Similarly, the screen-level position disordered index table is encrypted and saved, and encrypted and saved. At this point, the encryption result obtained by single-frame image processing is obtained. According to the above processing, the encryption processing of the entire video data is completed frame by frame, and the screen-level pixel disordered encryption results corresponding to each frame of the image are collected to obtain the encrypted video data, and then the encryption result is stored as a data file. Further, the encrypted video data is subjected to MD5 operation to generate an MD5 checksum, and then the module-level position random index data, the cabinet-level position random index data, the screen-level position random index data, the encrypted video data and the MD5 checksum are packaged together to obtain a media data encrypted package. The media data encrypted package may be sent to the media data playback terminal via a content distribution network or a file transfer protocol.

[0059] Step 204: decrypt the encrypted media data package to obtain the position random index data and the media data to be decrypted.

[0060] When obtaining the media data encryption package, the first layer of decryption can be performed on the data media encryption package using a decryption algorithm to obtain the position disordered index data and the video data to be decrypted. In specific implementation, if the media data encryption package is a file, the position disordered index file and the video file can be split according to the file name. If the media data encryption package is a split file containing the position disordered index file and the video file, the position disordered index file and the media file to be decrypted can be directly decrypted. The position disordered index data is obtained by performing a disorder operation on the data arrangement table. Taking the position disordered index table as an example, the cell value in the table is the storage position of the element in the original table after disordering in the disordered data arrangement table. As Figure 2 shown, if a 4*4 pixel arrangement table (different colors of the table represent different pixel information) is randomly disordered to obtain a disordered pixel arrangement table, by comparing the pixel arrangement tables before and after disordering, a 4*4 pixel position disordered index table can be obtained. It can be understood that when performing a disorder operation on the original 4*4 data arrangement table in positive order, there are (4*4)! - 1 permutation methods (excluding the case of positive order arrangement), and correspondingly, (4*4)! - 1 position disordered index tables can be obtained. In this embodiment, according to the position disordered index table, the disordered data arrangement table can be restored to the original data arrangement table in positive order. Thus, in the subsequent image encryption process, the disordered image can also be restored to the image in positive order based on this position disordered index table.

[0061] Continuing with the above embodiment, at this time, the decrypted position disordered index data should include the module-level position disordered index table, the cabinet-level position disordered index table, and the screen-level position disordered index table.

[0062] Step 206, configure the programmable logic circuit of the control system of the display screen in the media data playback end according to the position disordered index data.

[0063] In this embodiment, the control system of the display screen takes the control system of a stand-alone LED display screen as an example. The control system of the LED display screen is a system that controls the correct display of the LED large screen according to user requirements. The control system of the stand-alone LED display screen is also called the LED display screen controller or the LED display screen control card. It is the core component of the LED display screen and is mainly responsible for converting the external video input signal or the on-board multimedia file into a digital signal easily recognizable by the LED large screen, so as to light up the LED large screen. It is similar to the graphics card in a home PC. Configuring the programmable logic circuit of the control system of the display screen in the media data playback end is to configure the programmable logic circuit in the control system of the LED display screen. The specific configuration process can be: convert the obtained position disordered index table into a machine-readable language such as hexadecimal ASCII code, and then configure the programmable logic circuit in the control system of the LED display screen.

[0064] Step 208: Decrypt the media data to be decrypted based on the configured programmable logic circuit to obtain the decrypted media data.

[0065] After the configuration of the programmable logic circuit in the control system of the LED display screen is completed, since the pixel dotting table, the box data arrangement table, and the box connection format data respectively form inverse function relationships with the module model, the box model, and the screen model, the encrypted and disordered pixel information will be initialized into the box connection format data, the box data arrangement table, and the pixel dotting table in the receiving card memory in sequence, and then reverse hardware real-time mapping decoding will be performed one by one to complete the real-time decryption process of the media data and restore the disordered video data to the ordered video data. Specifically, since the LED information display system can support the logical-physical position remapping of the LED display pixels through the position disorder index table, the purpose of restoring the disordered image information to the ordered image information can be achieved by creating a lookup table to complete the logical implementation of the image information decryption process. Based on the created lookup table, according to the pixel position table encoding format, a unique pixel disorder index table corresponding to the encoded video data can be generated, and then the disordered image information can be restored to the ordered image information using this pixel disorder index table.

[0066] In the above media data decryption method, the programmable logic circuit of the control system of the display screen in the media data playback end is configured according to the position disorder index data corresponding to the structural parameters of the display screen, so that the configured programmable logic circuit corresponds to the structure of the LED screen. Thus, in the decryption process, it is necessary to rely on both the real-time decryption ability of the playback end hardware and the correspondence between the programmable logic circuit and the LED screen structure to perform decryption. And since there are a very large number of possibilities for the encryption results of the media data encrypted by disordering according to the position disorder index data, it is impossible for an attacker to crack it, fully ensuring the information security of the media data.

[0067] As Figure 3 shown, in one of the embodiments, the structural parameters of the display screen include the module dot matrix scale, the box dot matrix scale, and the screen dot matrix scale of the display screen. The position index data is obtained through the structural parameters of the display screen and represents the mapping relationship between the logic and physical positions of the display pixels of the display screen. The position disorder index data includes module-level position disorder index data, box-level position disorder index data, and screen-level position disorder index data;

[0068] Step 204 includes: Step 224, decrypting the media data encryption package to obtain position-disordered index data including module-level position-disordered index data, cabinet-level position-disordered index data, and screen-level position-disordered index data, and media data to be decrypted; Step 206 includes: Step 226, filling the module-level position-disordered index data, cabinet-level position-disordered index data, and screen-level position-disordered index data into corresponding buffer areas in the control system of the display screen respectively, so as to configure the programmable logic circuit of the control system of the display screen in the media data playback end.

[0069] During specific implementation, the obtained position-disordered index data after decryption includes module-level position-disordered index data, cabinet-level position-disordered index data, and screen-level position-disordered index data. And in the receiving card memory of the control system of the LED display screen, there are three areas preset for storing the module-level position-disordered index data, cabinet-level position-disordered index data, and screen-level position-disordered index data respectively. The configuration of the programmable logic circuit can be: filling the module-level position-disordered index data, cabinet-level position-disordered index data, and screen-level position-disordered index data into the corresponding areas (i.e., the memory RAM of the receiving card) in the receiving card memory of the control system of the LED display screen respectively, and then performing data initialization to complete the configuration of the programmable logic circuit. Further, since the RAM has the characteristic of losing data when powered off, in order to correctly initialize the programmable logic on the receiving card, the MCU unit on the receiving card will check these configuration data and then transfer and store them in the non-volatile FLASH memory on the card for backup. In this embodiment, the above configuration method can realize the orderly decryption of the encrypted and disordered video data.

[0070] As Figure 3 shown, in one embodiment, Step 208 includes: Step 228, based on the configured programmable logic circuit, calling the MFC media decoder to decrypt the media data to be decrypted.

[0071] During specific implementation, it can be based on the configured programmable logic circuit to call the MFC media decoder to efficiently decode the video data to be decrypted. It can be understood that in other embodiments, other types of media decoders can also be used for decoding, which can be determined specifically according to the format of the media data to be decrypted, and are not limited here.

[0072] As Figure 4As shown, in one embodiment, before decrypting the media data encryption packet, it further includes: Step 201, performing a legality check on the media data encryption packet; Step 224 includes: Step 244, when the media data encryption packet passes the legality check, decrypt the media data encryption packet to obtain position disordered index data including module-level position disordered index data, box-level position disordered index data, and screen-level position disordered index data and the media data to be decrypted.

[0073] To prevent the media data encryption packet from being intercepted and tampered with by an attacker during transmission, a legality check can be performed on the media data encryption packet. If the legality check passes, it proves the data integrity and correctness of the media data encryption packet and that it has not been tampered with. At this time, the decryption of the media data encryption packet can begin. In this embodiment, performing a legality check before decrypting the media data encryption packet can further ensure the correct and secure playback of the media data.

[0074] In one embodiment, the media data encryption packet carries a first check code; performing a legality check on the media data encryption packet includes: performing a hash operation on the media data encryption packet to generate a second check code, and determining whether the second check code matches the first check code to perform a legality check on the media data encryption packet.

[0075] In this embodiment, the check code is taken as an MD5 check code as an example. The media data encryption packet carries a first MD5 check code. After obtaining the media data encryption packet, an MD5 operation can be performed on the media data encryption packet to obtain a second MD5 check code, and then compare whether the first MD5 check code and the second MD5 check code match. If they match, it proves that the media data encryption packet has not been tampered with; otherwise, it indicates that the media data encryption packet has been tampered with. In this embodiment, by matching the check codes, the legality check of the media data encryption packet can be simply and effectively performed.

[0076] It should be understood that although the steps in the flowcharts involved in the above-described embodiments are shown in sequence according to the arrows, these steps do not necessarily have to be executed in the order indicated by the arrows. Unless there is a clear indication in this article, the execution of these steps does not have a strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-described embodiments may include multiple steps or multiple stages. These steps or stages do not necessarily have to be executed at the same time, but can be executed at different times. The execution order of these steps or stages does not necessarily have to be sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.

[0077] Based on the same inventive concept, an embodiment of the present application further provides a media data decryption device for implementing the above-mentioned media data decryption method. The solution provided by this device for solving problems is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the multimedia data decryption device provided below can refer to the limitations on the media data decryption method in the above text, and will not be elaborated here.

[0078] In one embodiment, as Figure 5 shown, a media data decryption device is provided, including: a data acquisition module 510, a first data decryption module 520, a circuit configuration module 530, and a second data decryption module 540, where:

[0079] The data acquisition module 510 is configured to acquire a media data encryption packet, which is obtained by pixel scrambling and encrypting the original media data according to position index data, and the position index data corresponds to the structural parameters of the display screen;

[0080] The first data decryption module 520 is configured to decrypt the media data encryption packet to obtain position scrambling index data and media data to be decrypted;

[0081] The circuit configuration module 530 is configured to configure the programmable logic circuit of the control system of the display screen in the media data playback end according to the position scrambling index data;

[0082] The second data decryption module 540 is configured to decrypt the media data to be decrypted based on the configured programmable logic circuit to obtain decrypted media data.

[0083] The above-mentioned media data decryption device configures the programmable logic circuit of the control system of the display screen in the media data playback end according to the position scrambling index data corresponding to the structural parameters of the display screen, so that the configured programmable logic circuit corresponds to the structure of the LED screen. Thus, in the decryption process, it is necessary to rely on both the real-time decryption ability of the playback end hardware and the correspondence between the programmable logic circuit and the LED screen structure to perform decryption. And because there are a very large number of possibilities for the encryption results of the media data scrambled and encrypted according to the position index data, therefore, it makes it impossible for attackers to crack, fully ensuring the information security of the media data.

[0084] In one of the embodiments, the structural parameters of the display screen include the module dot matrix scale, the cabinet dot matrix scale, and the screen dot matrix scale of the display screen. The position index data is obtained through the structural parameters of the display screen and represents the mapping relationship between the logical and physical positions of the display pixels of the display screen. The position scrambling index data includes module-level position scrambling index data, cabinet-level position scrambling index data, and screen-level position scrambling index data;

[0085] The circuit configuration module 530 is further configured to fill the module-level position scrambling index data, the cabinet-level position scrambling index data, and the screen-level position scrambling index data into corresponding buffer areas in the control system of the display screen respectively, so as to configure the programmable logic circuit in the control system of the display screen in the media data playback end.

[0086] In one embodiment, the second data decryption module 540 is further configured to call the MFC media decoder based on the configured programmable logic circuit to decrypt the media data to be decrypted.

[0087] As Figure 6 shown, in one embodiment, the apparatus further includes a data legality verification module 550 for verifying the legality of the media data encryption packet; the first data decryption module 520 is further configured to decrypt the media data encryption packet when the media data encryption packet passes the legality verification.

[0088] In one embodiment, the media data encryption packet carries a first check code;

[0089] The data legality verification module 550 is further configured to perform a hash operation on the media data encryption packet to generate a second check code, and determine whether the second check code matches the first check code, so as to verify the legality of the media data encryption packet.

[0090] Each module in the above media data decryption apparatus can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor in the computer device in hardware form or independent of it, or stored in the memory in the computer device in software form, so that the processor can call and execute the operations corresponding to the above modules.

[0091] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as Figure 7As shown in the figure. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a media data decryption method. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, a trackball, or a touchpad provided on the computer device housing, or an external keyboard, touchpad, or mouse, etc.

[0092] Those skilled in the art can understand that Figure 7 the structure shown in the figure is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0093] In one embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, it implements the steps in the above-mentioned media data decryption method.

[0094] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by the processor, it implements the steps in the above-mentioned media data decryption method.

[0095] In one embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by the processor, it implements the steps in the above-mentioned media data decryption method.

[0096] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processors, graphics processors, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.

[0097] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.

[0098] The above-described embodiments merely represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.

Claims

1. A method for decrypting media data, characterized in that, the method includes: Obtain a media data encryption package, which is obtained by pixel scrambling and encrypting the original media data according to position scrambling index data. The position scrambling index data is obtained from the structural parameters of the display screen of the media data playback end and represents the mapping relationship between the logical and physical positions of the display pixels of the display screen; Decrypt the media data encryption package to obtain position scrambling index data and media data to be decrypted; Configure the programmable logic circuit of the control system of the display screen according to the position scrambling index data; Based on the configured programmable logic circuit, decrypt the media data to be decrypted to obtain decrypted media data.

2. The method for decrypting media data according to claim 1, characterized in that, the structural parameters of the display screen include the module dot matrix scale, the cabinet dot matrix scale and the screen dot matrix scale of the display screen, and the position scrambling index data includes module-level position scrambling index data, cabinet-level position scrambling index data and screen-level position scrambling index data; The configuring the programmable logic circuit of the control system of the display screen in the media data playback end according to the position scrambling index data includes: Filling the module-level position scrambling index data, the cabinet-level position scrambling index data and the screen-level position scrambling index data into corresponding buffer areas in the control system of the display screen respectively, so as to configure the programmable logic circuit of the control system of the display screen in the media data playback end.

3. The method for decrypting media data according to claim 1, characterized in that, the decrypting the media data to be decrypted based on the configured programmable logic circuit includes: Based on the configured programmable logic circuit, call the MFC media decoder to decrypt the media data to be decrypted.

4. The method for decrypting media data according to claim 1, characterized in that, before decrypting the media data encryption package, it further includes: Performing a legality check on the media data encryption package; The decrypting the media data encryption package includes: When the media data encryption package passes the legality check, decrypt the media data encryption package.

5. The method for decrypting media data according to claim 4, characterized in that, the media data encryption package carries a first check code; The performing a legality check on the media data encryption package includes: Performing a hash operation on the media data encryption package to generate a second check code; Judging whether the second check code matches the first check code to perform a legality check on the media data encryption package.

6. The method for decrypting media data according to claim 5, characterized in that, both the first check code and the second check code are MD5 codes.

7. A media data decryption device, characterized in that, applied to a media data playback end, the device includes: A data acquisition module, configured to acquire an encrypted media data packet, where the encrypted media data packet is obtained by performing pixel scrambling encryption on original media data according to position scrambling index data, and the position scrambling index data is obtained through structure parameters of a display screen of a media data playback end and represents a mapping relationship between logical and physical positions of display pixels of the display screen; A first data decryption module, configured to decrypt the encrypted media data packet to obtain position scrambling index data and media data to be decrypted; A circuit configuration module, configured to configure a programmable logic circuit of a control system of the display screen in the media data playback end according to the position scrambling index data; A second data decryption module, configured to decrypt the media data to be decrypted based on the configured programmable logic circuit to obtain decrypted media data.

8. A computer device, comprising a memory and a processor, where the memory stores a computer program, characterized in that, when the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium, on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that, when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Image display control method and system and storage medium

    CN110806845A

  • Image encryption storage method and device

    CN111832035A