Media data decryption method and device, computer device, and storage medium
A media data decryption method includes: obtaining a media data encryption package, wherein the media data encryption package is obtained by performing pixel rearrangement encryption on original media data based on position index data, and the position index data correspond to one or more structural parameters of a display screen; decrypting the media data encryption package to obtain the position rearrangement index data and media data to be decrypted; configuring a programmable logic circuit of a control system of the display screen in a media data play terminal based on the position rearrangement index data; and decrypting the media data to be decrypted based on the configured programmable logic circuit to obtain decrypted media data.
1 . A media data decryption method, comprising:
obtaining a media data encryption package, wherein the media data encryption package is obtained by performing pixel rearrangement encryption on original media data based on position index data, and the position index data correspond to one or more structural parameters of a display screen in a media data play terminal;
decrypting the media data encryption package to obtain position rearrangement index data and media data to be decrypted;
configuring a programmable logic circuit of a control system of the display screen in the media data play terminal based on the position rearrangement index data; and
decrypting the media data to be decrypted based on the configured programmable logic circuit to obtain decrypted media data.
2 . The media data decryption method according to claim 1 , wherein the one or more structural parameters of the display screen comprise a module dot matrix scale, a cabinet dot matrix scale, and a screen dot matrix scale of the display screen,
the position index data is obtained through the one or more structural parameters of the display screen and represents a mapping relationship between a logical position and a physical position of a display pixel of the display screen,
the position rearrangement index data comprises module-level position rearrangement index data, cabinet-level position rearrangement index data, and screen-level position rearrangement index data, and
the configuring of the programmable logic circuit of the control system of the display screen in the media data play terminal based on the position rearrangement index data comprises:
filling the module-level position rearrangement index data, the cabinet-level position rearrangement index data, and the screen-level position rearrangement index data into corresponding cache areas in the control system of the display screen, respectively, to configure the programmable logic circuit of the control system of the display screen in the media data play terminal.
3 . The media data decryption method according to claim 1 , wherein the decrypting of the media data to be decrypted based on the configured programmable logic circuit comprises:
calling a Multi Format Codec (MFC) media decoder based on the configured programmable logic circuit to decrypt the media data to be decrypted.
4 . The media data decryption method according to claim 1 , wherein before decrypting the media data encryption package, the method further comprises:
performing validity verification on the media data encryption package;
the decrypting of the media data encryption package comprises:
when the media data encryption package passes the validity verification, decrypting the media data encryption package.
5 . The media data decryption method according to claim 4 , wherein the media data encryption package carries a first verification code, and
the performing of the validity verification on the media data encryption package comprises:
performing a hash operation on the media data encryption package to generate a second verification code; and
when the second verification code matches the first verification code, determining that the media data encryption package passes the validity verification.
6 . The media data decryption method according to claim 5 , wherein the first verification code and the second verification code are both message-digest algorithm 5 (MD5) codes.
7 . A computer device comprising a memory and one or more processors, wherein the memory stores computer readable instructions, which when executed by the one or more processors, causes the one or more processors to perform following operations:
obtaining a media data encryption package, wherein the media data encryption package is obtained by performing pixel rearrangement encryption on original media data based on position index data, and the position index data correspond to one or more structural parameters of a display screen in a media data play terminal;
decrypting the media data encryption package to obtain position rearrangement index data and media data to be decrypted;
configuring a programmable logic circuit of a control system of the display screen in the media data play terminal based on the position rearrangement index data; and
decrypting the media data to be decrypted based on the configured programmable logic circuit to obtain decrypted media data.
8 . The computer device according to claim 7 , wherein the one or more structural parameters of the display screen comprise a module dot matrix scale, a cabinet dot matrix scale, and a screen dot matrix scale of the display screen,
the position index data is obtained through the one or more structural parameters of the display screen and represents a mapping relationship between a logical position and a physical position of a display pixel of the display screen,
the position rearrangement index data comprises module-level position rearrangement index data, cabinet-level position rearrangement index data, and screen-level position rearrangement index data, and
when executing the computer readable instructions, the processors further perform the following operations:
filling the module-level position rearrangement index data, the cabinet-level position rearrangement index data, and the screen-level position rearrangement index data into corresponding cache areas in the control system of the display screen, respectively, to configure the programmable logic circuit of the control system of the display screen in the media data play terminal.
9 . The computer device according to claim 7 , wherein when executing the computer readable instructions, the processors further perform the following operations:
calling a Multi Format Codec (MFC) media decoder based on the configured programmable logic circuit to decrypt the media data to be decrypted.
10 . The computer device according to claim 7 , wherein when executing the computer readable instructions, the processors further perform the following operations:
performing validity verification on the media data encryption package; and
when the media data encryption package passes the validity verification, decrypting the media data encryption package.
11 . The computer device according to claim 10 , wherein the media data encryption package carries a first verification code, and
when executing the computer readable instructions, the processors further perform the following operations:
performing a hash operation on the media data encryption package to generate a second verification code; and
when the second verification code matches the first verification code, determining that the media data encryption package passes the validity verification.
12 . The computer device according to claim 10 , wherein the media data encryption package carries a first message-digest algorithm 5 (MD5) code, and
when executing the computer readable instructions, the processors further perform the following operations:
performing a hash operation on the media data encryption package to generate a second MD5 code; and
when the second MD5 code matches the first MD5 code, determining that the media data encryption package passes the validity verification.