CN114979786A - Media resource processing method and system, storage medium and electronic equipment - Google Patents

Media resource processing method and system, storage medium and electronic equipment Download PDF

Info

Publication number
CN114979786A
CN114979786A CN202210527754.7A CN202210527754A CN114979786A CN 114979786 A CN114979786 A CN 114979786A CN 202210527754 A CN202210527754 A CN 202210527754A CN 114979786 A CN114979786 A CN 114979786A
Authority
CN
China
Prior art keywords
media asset
media
request
client
resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210527754.7A
Other languages
Chinese (zh)
Inventor
易桂
彭一
刘欢春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Original Assignee
Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan Happly Sunshine Interactive Entertainment Media Co Ltd filed Critical Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Priority to CN202210527754.7A priority Critical patent/CN114979786A/en
Publication of CN114979786A publication Critical patent/CN114979786A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0869Generation of secret information including derivation or calculation of cryptographic keys or passwords involving random numbers or seeds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • H04L9/3239Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/482End-user interface for program selection
    • H04N21/4826End-user interface for program selection using recommendation lists, e.g. of programs or channels sorted out according to their score
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Storage Device Security (AREA)

Abstract

The invention provides a media resource processing method and system, a storage medium and electronic equipment, wherein the method comprises the following steps: performing signature verification on the media asset playing request generated by the client, and judging whether a media asset encryption identifier in the media asset playing request is legal or not when the signature verification is passed; when the media asset is legal, determining a media asset request identifier; and judging whether a media resource request identifier exists in a media resource list of the client, if so, feeding back a resource address to the client, so that the client displays the media resource corresponding to the resource address. When the media asset playing request passes signature verification, the media asset encryption identifier in the media asset playing request is legal, and the media asset request identifier exists in a media asset channel list of the client, the resource address is fed back to the client, the client can obtain the corresponding media asset through the resource address, and the whole process passes a series of verification, so that the condition of maliciously requesting the media asset can be effectively avoided, and the safety of outputting the media asset is improved.

Description

Media resource processing method and system, storage medium and electronic equipment
Technical Field
The present invention relates to the field of media asset processing technologies, and in particular, to a media asset processing method and system, a storage medium, and an electronic device.
Background
With the development of the mobile internet, in order to guarantee the increase of the traffic, a media asset merchant usually cooperates with a third-party company to output media assets to the third-party company, so that the media assets are provided for users of the third-party company, audience groups of the media assets are expanded, and the use traffic of the media assets is improved.
At present, when a media asset merchant provides media assets for a third-party company, corresponding media asset resources are provided for the third-party company according to a request after the request sent by a user of the third-party company is received, security verification is not carried out in the process that the media asset merchant provides the media asset resources for the third party, and whether the request is legal or not is difficult to identify, so that the situation that the media asset resources are requested maliciously occurs.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and a system for processing media resources, a storage medium, and an electronic device, so as to ensure validity of requesting media resources, improve security of an application environment of the media resources, and avoid a situation of malicious request of the media resources.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
the first aspect of the invention discloses a media resource processing method, which comprises the following steps:
acquiring a media asset playing request generated by a client;
performing signature verification on the media asset playing request;
when the media asset playing request passes the signature verification, judging whether a media asset encryption identifier in the media asset playing request is legal or not;
when the media asset encryption identifier is determined to be legal, determining a media asset request identifier;
judging whether the media resource request identification exists in a media resource list of a media resource channel of the client;
and if the media resource exists, feeding back a resource address corresponding to the media resource request identifier to the client, so that the client displays the media resource corresponding to the resource address.
Optionally, the signature verification of the media asset playing request includes:
analyzing the media asset playing request, acquiring each signature verification parameter, a first signature value and determining a signature mode applied by the client;
processing each signature verification parameter by using the signature mode to obtain a second signature value;
and when the first signature value and the second signature value are the same, determining that the media asset playing request passes signature verification.
Optionally, the method for determining whether the media asset encryption identifier in the media asset playing request is legal includes:
analyzing the media asset encryption identification to obtain a first encryption character string and a second encryption character string;
decrypting the first encrypted character string to obtain each legal verification factor;
encrypting each legal verification factor and a channel encryption factor of a media asset channel of the client to obtain a third encryption character string;
and when the third encryption character string is consistent with the second encryption character string, determining that the media asset encryption identifier in the media asset playing request is legal.
Optionally, the determining whether the media resource request identifier exists in the media resource list of the media resource channel of the client includes:
traversing the media resource request identifier to each preset media resource identifier in the media resource list;
and when a preset media asset identifier consistent with the media asset request identifier exists in each preset media asset identifier, determining that the media asset request identifier exists in a media asset list of a media asset channel of the client.
The method, optionally, includes a process of generating a media asset playing request by a client, where the process includes:
acquiring the media asset information of each media asset resource of the media asset channel of the client;
generating a media asset display page based on each piece of media asset information;
displaying the media asset display page to a user;
and acquiring a media asset selection instruction input by the user, and generating a media asset playing request based on the media asset selection instruction.
The second aspect of the present invention discloses a media resource processing system, which is characterized by comprising:
a playing server and an operation management background;
the playing server is used for acquiring a media asset playing request generated by a client and carrying out signature verification on the media asset playing request; when the media asset playing request passes signature verification, sending the media asset playing request to the operation management background;
the operation management background is used for receiving a media asset playing request sent by the playing server and judging whether a media asset encryption identifier in the media asset playing request is legal or not; when the media asset encryption identifier is determined to be legal, determining a media asset request identifier; judging whether the media resource request identification exists in a media resource list of a media resource channel of the client; and if the media resource request identifier exists, feeding back the media resource request identifier to the playing service end, so that the playing service end determines a resource address corresponding to the media resource request identifier and sends the resource address to the client.
Optionally, in the system, when the playing service performs signature verification on the media asset playing request, the playing service is specifically configured to:
analyzing the media asset playing request to acquire each signature verification parameter, a signature value generated by the client and a signature algorithm applied by the client;
processing each signature verification parameter by using the signature algorithm to obtain a signature verification value;
and when the signature verification value is the same as the signature value, determining that the media asset playing request passes signature verification.
Optionally, in the system, when determining whether the media asset encryption identifier in the media asset playing request is legal, the operation management background is specifically configured to:
analyzing the media asset encryption identification to obtain a first encryption character string and a second encryption character string;
decrypting the first encrypted character string to obtain each legal verification factor;
encrypting each legal verification factor and a channel encryption factor of a media asset channel of the client to obtain a third encryption character string;
and when the third encryption character string is consistent with the second encryption character string, determining that the media asset encryption identifier in the media asset playing request is legal.
Optionally, in the system, when determining whether the media resource request identifier exists in the media resource list of the media resource channel of the client, the operation management background is specifically configured to:
traversing the media asset request identifier through each preset media asset identifier in the media asset list;
and when a preset media asset identifier consistent with the media asset request identifier exists in each preset media asset identifier, determining that the media asset request identifier exists in a media asset list of a media asset channel of the client.
Optionally, the above system includes a process of generating a media asset playing request by the client, where the process includes:
acquiring the media asset information of each media asset resource of the media asset channel of the client;
generating a media asset display page based on each piece of media asset information;
displaying the media asset display page to a user;
and acquiring a media asset selection instruction input by the user, and generating a media asset playing request based on the media asset selection instruction.
The third aspect of the present invention discloses a storage medium, where the storage medium includes stored instructions, and when the instructions are executed, the storage medium controls a device on which the storage medium is located to execute the above-mentioned media asset processing method.
In a fourth aspect, the present invention discloses an electronic device, comprising a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by the one or more processors to perform the method for processing media resources as described above.
Compared with the prior art, the invention has the following advantages:
the invention provides a media resource processing method and system, a storage medium and electronic equipment, wherein the method comprises the following steps: the method comprises the steps of obtaining a media asset playing request generated by a client, carrying out signature verification on the media asset playing request, and judging whether a media asset encryption identifier in the media asset playing request is legal or not when the media asset playing request passes the signature verification; when the media asset encryption identifier is legal, determining a media asset request identifier; and judging whether a media resource request identifier exists in a media resource list of a media resource channel of the client, if so, feeding back a resource address corresponding to the media resource request identifier to the client, so that the client displays media resource corresponding to the resource address. After a media asset playing request generated by a client is acquired, a resource address is fed back to the client only when the media asset playing request passes signature verification, a media asset encryption identifier in the media asset playing request is legal, and a media asset request identifier exists in a media asset channel list of the client, so that the client can acquire a corresponding media asset through the resource address.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for processing media resources according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for signature verification of a media asset playing request according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for determining whether a media asset encryption identifier in a media asset playing request is legal according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a media asset processing system according to an embodiment of the present invention;
fig. 5 is an example of an application scenario of a media asset processing system according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In this application, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
It can be known from the background art that, when a media resource merchant provides resources to a user or a partner merchant at present, there is no flow for checking a request, the media resource is provided indiscriminately, a malicious request for the media resource is very easy to occur, and the mode security of the media resource provided by the media resource merchant to the user or the partner merchant is very low. The media resource processing method provided by the invention can effectively solve the problems.
The invention is operational with numerous general purpose or special purpose computing device environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multi-processor apparatus, distributed computing environments that include any of the above devices or equipment, and the like. The execution subject of the invention can be a resource processing system or a processor applying the method.
Referring to fig. 1, a flowchart of a method for processing media resources according to an embodiment of the present invention is specifically described as follows:
s101: and acquiring a media asset playing request generated by the client.
The method comprises the steps that a media asset processing system receives a media asset playing request sent by a client, wherein the media asset playing request is sent by the client; further, a playing service end in the media asset processing system receives a media asset playing request generated by a client.
A process of generating a media asset playing request by a client is explained, and the specific process is as follows:
acquiring media asset information of each media asset resource of a media asset channel of a client;
generating a media asset display page based on each piece of media asset information;
displaying the media asset display page to a user;
and acquiring a media asset selection instruction input by a user, and generating a media asset playing request based on the media asset selection instruction.
It should be noted that, the client sends a media asset display request to the media asset processing system, the media asset processing system determines a media asset channel of the client and determines a media asset list corresponding to the media asset channel, the media asset list includes a plurality of pieces of media asset information of media asset authorized to the media asset channel, and the media asset information includes media asset encryption identification, media asset name, media asset basic information and the like of the media asset resource; the media asset processing system feeds back the media asset information of each media asset resource to the client, the client generates a media asset display page based on each media asset information, and the media asset display page comprises the information of each media asset resource; a user inputs a media asset selection instruction by clicking a media asset display page, wherein the media asset selection instruction comprises media asset encryption identification, selection time and other contents of media asset resources selected by the user; when the media asset playing request is generated, the client uses a preset signature encryption mode to process the channel identifier, the media asset encryption identifier, the generated random number and the timestamp to obtain a first signature value, and generates the media asset playing request including but not limited to the first signature value, the channel identifier, the media asset encryption identifier, the generated random number and the timestamp, wherein the timestamp can be the time when the user selects the media asset.
S102: performing signature verification on the media asset playing request, and determining whether the media asset playing request passes the signature verification; when the media asset playing request passes the signature verification, executing S103; when the media asset playing request is not verified by the signature, S107 is performed.
Referring to fig. 2, a flowchart of a method for signature verification of a media asset playing request according to an embodiment of the present invention is specifically described as follows:
s201: and analyzing the media asset playing request, acquiring each signature verification parameter, a first signature value and determining a signature mode applied by the client.
In the method provided by the embodiment of the present invention, each signature verification parameter includes, but is not limited to, parameters such as a channel identifier, a asset encryption identifier, a random number, and a timestamp, and further, the random number is a random number generated by a client, the random numbers generated by different clients, different devices, and different times are different, and the timestamp is a timestamp of the client; the signature method applied by the client may be signature using md5 or sha256, and further, the signature method in the present invention is not limited to signature using md5 or sha256, and may also be signature using other signature methods, which are not illustrated herein.
Further, the channel identifier is pre-allocated to the client by the media asset processing system, the channel identifier is the unique identifier of the media asset channel of the client, and different media asset channels exist in different clients. The media asset encryption identifier is obtained by encrypting the media asset identifier of the authorized media asset resource when the media asset processing system authorizes the media asset resource for the media asset channel of the client.
The media asset identification is the only plaintext identification of the media asset resource, and the media asset encryption identification is the only encryption identification of the media asset resource.
S202: and processing each signature verification parameter by using a signature mode to obtain a second signature value.
It should be noted that, when the media asset processing system processes each signature verification parameter in a signature manner, each signature verification parameter includes, but is not limited to, a channel identifier, a media asset encryption identifier, a random number, a timestamp, and a channel factor; further, the channel factor may be obtained from the media asset playing request, and the media asset processing system may also obtain the channel factor corresponding to the channel identifier from the database.
S203: judging whether the first signature value and the second signature value are the same; when the first signature value and the second signature value are the same, performing S204; when the first signature value and the second signature value are not identical, S205 is performed.
And comparing the first signature value with the second signature value to judge whether the first signature value and the second signature value are the same.
S204: and determining that the media asset playing request passes the signature verification.
S205: and determining that the media asset playing request is not verified by the signature.
In the method provided by the embodiment of the invention, the signature verification is carried out on the media asset playing request, whether the client side of the sent media asset playing request is a legal client side or not can be determined, the media asset processing system can screen the received media asset playing request, the resource address of the media asset is not fed back to the media asset playing request which does not pass the signature verification, the condition of maliciously requesting the media asset can be avoided, and the output safety of the media asset is improved.
S103: judging whether the media asset encryption identification in the media asset playing request is legal or not; when the media asset encryption identifier is determined to be legal, executing S104; when it is determined that the asset encryption flag is not legitimate, S107 is performed.
Referring to fig. 3, a flowchart of a method for determining whether a media asset encryption identifier in a media asset playing request is legal according to an embodiment of the present invention is specifically described as follows:
s301: and analyzing the media asset encryption identifier to obtain a first encryption character string and a second encryption character string.
S302: and carrying out decryption processing on the first encrypted character string to obtain each legal verification factor.
When the first encrypted character string is decrypted, the media asset processing system decrypts the first encrypted character string by using a preset decryption method, so that legal verification factors are obtained, and each legal verification factor is a channel identifier and a media asset identifier.
Furthermore, the first encryption character string is obtained by encrypting the channel identifier, the channel encryption factor and the medium resource identifier by using a symmetric encryption algorithm, so that when the first encryption character string is decrypted, the decryption operation can be realized by processing the first encryption character string by using an inverse algorithm of the symmetric encryption algorithm; preferably, the symmetric encryption algorithm includes, but is not limited to, DES algorithm, 3DES algorithm, TDEA algorithm, Blowfish algorithm, RC5 algorithm, IDEA algorithm, and the like.
S303: and encrypting each legal verification factor and the channel encryption factor of the media asset channel of the client to obtain a third encryption character string.
The client has a unique corresponding media resource channel, channel information of the media resource channel is pre-stored in a media resource processing system, and the channel information includes but is not limited to a channel identifier, a channel description, a channel name, a channel factor and a channel encryption factor of the media resource channel; further, the channel identification and the channel factor of the media resource channel are stored in the client.
The media resource processing system uses a preset data processing algorithm to encrypt each legal verification factor and each channel encryption factor to obtain a third encryption character string, wherein the data processing algorithm can be a Hash algorithm or other asymmetric encryption algorithms.
S304: judging whether the third encrypted character string is consistent with the second encrypted character string, if so, executing S305; if the third encrypted string is identical to the second encrypted string, S306 is executed.
And comparing the third encrypted character string with the second encrypted character string, and further judging whether the third encrypted character string is consistent with the second encrypted character string.
S305: and determining that the media asset encryption identifier in the media asset playing request is legal.
S306: and determining that the media asset encryption identifier in the media asset playing request is illegal.
In the method provided by the embodiment of the invention, whether the media asset encryption identifier in the media asset playing request is legal or not is judged, the validity of the media asset playing request sent by the client can be further checked, the security of the process of providing the media asset resources for the client is ensured, and the condition of maliciously requesting the media asset resources is effectively avoided.
S104: and determining a media resource request identifier.
In the method provided by the embodiment of the invention, after the media asset encryption identifier is determined to be legal, the media asset identifier obtained in the process of judging the media asset encryption identifier can be determined as the media asset request identifier, in other words, the media asset request identifier is the media asset identifier of the plaintext.
S105: judging whether a media resource request identifier exists in a media resource list of a media resource channel of a client; if the media resource list of the media resource channel of the client side has the media resource request identification, executing S106; if the media resource request identifier does not exist in the media resource list of the media resource channel of the client, S107 is executed.
Traversing each preset media asset identifier in the media asset list by the media asset request identifier, and further judging whether the preset media asset identifier consistent with the media asset request identifier exists in each preset media asset identifier; when the preset media asset identification consistent with the media asset request identification exists in each preset media asset identification, determining that the media asset request identification exists in a media asset list of a media asset channel of the client; and when the preset media asset identification consistent with the media asset request identification does not exist in each preset media asset identification, determining that the media asset request identification does not exist in a media asset list of a media asset channel of the client.
Judging whether the media asset request identifier exists in the media asset list of the media asset channel of the client is substantially to determine whether the client has the authority for acquiring the media asset corresponding to the media asset request identifier, further, when the media asset request identifier does not exist in the media asset list, determining that the client does not have the authority for acquiring the media asset corresponding to the media asset request identifier, and when the media asset request identifier exists in the media asset list, determining that the client has the authority for acquiring the media asset corresponding to the media asset request identifier.
Each media resource channel has a corresponding media resource list, a plurality of preset media resource identifiers are stored in the media resource list, the preset media resource identifiers are identifiers authorized to the media resource of the media resource channel by a media resource processing system, and the preset media resource identifiers are plaintext identifiers.
The media resource list is stored in the media resource processing system, whether the media resource request identifier exists in the media resource list resource is judged, whether the client has the authority of acquiring the media resource corresponding to the media resource request identifier can be further determined, and whether the corresponding media resource is fed back to the client is further determined. The media resource processing system authorizes the media resources through the media resource channel, provides the authorized media resources for the client, manages the media resources, and effectively prevents confidential media resources from being acquired by the client.
S106: and feeding back the resource address corresponding to the media resource request identifier to the client, so that the client displays the media resource corresponding to the resource address.
And the media resource processing system determines a resource address corresponding to the media resource request identifier, and feeds the resource address back to the client, so that the client acquires the corresponding media resource through the resource address and displays the acquired media resource. Different media resources correspond to different resource addresses, and the media resources can be multimedia contents such as videos, pictures or articles.
S107: and sending preset request failure information to the client.
The request failure information contains request illegal information, and the request failure information is used for prompting that a user using the client does not have the authority of acquiring the corresponding media resource.
In the method provided by the embodiment of the invention, a media asset playing request generated by a client is obtained, signature verification is carried out on the media asset playing request, and when the media asset playing request passes the signature verification, whether a media asset encryption identifier in the media asset playing request is legal is judged; when the media asset encryption identifier is legal, determining a media asset request identifier; and judging whether a media resource request identifier exists in a media resource list of a media resource channel of the client, if so, feeding back a resource address corresponding to the media resource request identifier to the client, so that the client displays media resource corresponding to the resource address. After a media asset playing request generated by a client is acquired, a resource address is fed back to the client only when the media asset playing request passes signature verification, a media asset encryption identifier in the media asset playing request is legal, and a media asset request identifier exists in a media asset channel list of the client, so that the client can acquire a corresponding media asset through the resource address.
In order to support the implementation of the method shown in fig. 1 in real life, an embodiment of the present invention provides a media resource processing system, and refer to fig. 4, which is a schematic structural diagram of the system, and the following is specifically described:
the system consists of a playing server 401 and an operation management background 402.
The playing server 401 is configured to obtain a media asset playing request generated by a client, and perform signature verification on the media asset playing request; when the media asset playing request passes signature verification, sending the media asset playing request to the operation management background;
the operation management background 402 is configured to receive a media asset playing request sent by the playing server, and determine whether a media asset encryption identifier in the media asset playing request is legal; when the media asset encryption identifier is determined to be legal, determining a media asset request identifier; judging whether the media resource request identification exists in a media resource list of a media resource channel of the client; and if the media resource request identifier exists, feeding back the media resource request identifier to the playing service end, so that the playing service end determines a resource address corresponding to the media resource request identifier and sends the resource address to the client.
In the system provided by the embodiment of the invention, the playing server acquires the media asset playing request generated by the client, sends the media asset playing request to the operation management background, performs signature verification on the media asset playing request, and sends the media asset playing request to the operation management background when the media asset playing request passes the signature verification; the operation management background judges whether the media asset encryption identification in the media asset playing request is legal or not; when the medium resource encryption identifier is legal, determining a medium resource request identifier; judging whether a media resource request identifier exists in a media resource list of a media resource channel of the client, if so, feeding back a resource address corresponding to the media resource request identifier to the playing server, and enabling the playing server to send the resource address to the client. In the system provided by the invention, the operation management background carries out a series of verifications on the media asset playing request sent by the playing server, and only when the media asset playing request passes signature verification, the media asset encryption identification in the media asset playing request is legal, and the media asset request identification exists in the media asset list of the media asset channel of the client, the resource address is sent to the playing server, so that the media asset resource is provided for the client, and the malicious request can be effectively filtered through signature verification and other processing in the whole process, so that the output security of the media asset resource is improved.
The invention further provides an application scenario example of a specific media asset processing system, which is described with reference to fig. 5, and the specific content is as follows:
the figure includes a client 501 and a media resource processing system 502, wherein the media resource processing system 502 includes a channel server 601, an operation management background 602 and a playing server 603; further, the client 501 includes a channel client and a channel SDK; the channel client and the channel server are in one-to-one correspondence.
The channel client is used for acquiring the media asset information output by the channel server in the media asset processing system, generating a corresponding media asset display page based on the media asset information and displaying the media asset display page to a user; it should be noted that, when the user inputs the media asset selection information through the media asset display page, the media asset selection information is sent to the channel SDK; further, the media information output by the channel service end includes information of each media resource authorized by the media resource processing system for the media resource channel of the client, such as media resource encryption identification, media resource name, media resource information, and the like of the media resource;
the channel SDK is used for generating a media asset playing request based on the media asset selection information and sending the media asset playing request to a playing server in the media asset processing system; it should be noted that the channel SDK includes channel information of a media asset channel created by the media asset processing system for the client, specifically, channel identification, channel description, channel name, and channel factor; further, the information set by the media resource processing system when the media asset channel is created for the client includes but is not limited to a channel identifier, a channel description, a channel name, a channel factor and a channel encryption factor;
the playing server is used for carrying out signature verification on the media asset playing request after receiving the media asset playing request; when the media asset playing request passes the signature verification, the media asset playing request is sent to the operation management background;
the operation management background comprises a media asset encryption and decryption module and an authentication module, and when receiving a media asset playing request sent by the playing service terminal, the operation management background calls the media asset encryption and decryption module to decrypt a media asset encryption identifier in the media asset playing request so as to judge whether the media asset encryption identifier is legal or not; after the media asset encryption identification is determined to be legal, a media asset request identification is determined, an authentication module is used for judging whether a media asset request identification exists in a media asset list of a media asset channel of a client side or not, authentication processing is further performed on the media asset request identification, when the media asset request identification exists in the media asset list, authentication success information and the media asset request identification are fed back to a playing service side, the playing service side determines a resource address corresponding to the media asset request identification and feeds back the resource address to the client side, and the client side obtains media asset resources through the resource address and displays the media asset resources.
Illustratively, a media asset channel created by an operator of a media asset merchant for a client a through a media asset processing system is a channel a, and channel information stored in the channel a in the media asset processing system is shown in table 1:
channel parameter name Details of parameters
Channel identification XX
Channel description XX on demand channel
Channel name XX channel
Channel factor hwg97gjh*+
Channel encryption factor XX-vod
TABLE 1
Further, the media resource processing pre-programs the content of the channel identifier, the channel factor and the like in table 1 into the channel SDK in the client a.
After a channel A is created for a client A, authorizing media resource resources for the channel A, and when the media resource resources are authorized for the channel A, a media resource processing system uses a media resource encryption and decryption module in an operation management background to carry out encryption processing to obtain a media resource encryption identifier; the specific process is as follows: encrypting the channel identifier and the media asset identifier by using a preset symmetric encryption algorithm to obtain a first encryption character string, wherein the first encryption character string is represented by aaa; processing the channel identifier, the media asset identifier and the channel encryption factor by using a Hash algorithm to obtain a second encryption character string, wherein the second encryption character string is represented by xxxxxx; media asset encryption identifier aaa.xxxxx; it should be noted that "-" is used as a separator between the first encrypted string and the second encrypted string, and further, the separator may also be "/", which is not limited herein.
After authorizing the media asset resources for the channel a, sending information of the authorized media asset resources to the client a through a media list interface of the channel server, so that the client a can display the related media asset resource information to the user.
After the client a displays information of the asset resources to the user, the user selects the asset resources, at this time, the client a needs to generate an asset playing request, the asset playing request may also be referred to as a playing string getting request, and the channel SDK requests to play an http request of the server, specifically, the asset playing request includes a channel identifier, an asset encryption identifier, a random number, a client timestamp, a signature mode, and a first signature value, and further, when the client generates the first signature value, the channel identifier, the asset encryption identifier, the random number, the client timestamp, and a channel factor are processed in a signature mode, so as to obtain the first signature value, preferably, the signature mode is sha 256.
After receiving the media asset playing request, the playing request end performs signature verification on the media asset playing request, and specifically includes: analyzing the media asset playing request to obtain a channel identifier, a media asset encryption identifier, a random number, a client timestamp, a signature mode and a first signature value in the media asset playing request; the channel factor can be obtained based on the channel identifier, and the channel identifier, the asset encryption identifier, the random number, the client timestamp and the channel factor are processed in a signature mode, so that a second signature value is obtained, wherein the signature mode is the same as the signature mode used by the client A. And when the first signature value is the same as the second signature value, determining that the media asset playing request passes signature verification, and sending the channel identifier and the media asset encryption identifier to an operation management background.
The operation management background uses the media asset encryption and decryption module to decrypt the media asset encryption identifier, which specifically includes: decrypting the first encryption character string in the media asset encryption identifier by using a preset inverse algorithm of a symmetric encryption algorithm to obtain a channel identifier and a media asset identifier; determining a corresponding channel encryption factor based on the obtained channel identifier, processing the obtained channel identifier, the media asset identifier and the channel encryption factor by using a Hash algorithm to obtain a third encryption character string, determining the obtained media asset identifier as a media asset request identifier when the third encryption character string is the same as a second encryption character string in the media asset encryption identifier, and performing authentication processing on the media asset request identifier by using an authentication module, wherein the specific process comprises the following steps: judging whether the media asset request identification exists in a media asset list of a media asset channel of the client A, and sending the media asset request identification to a playing server when the media asset request identification exists in the media asset list; and when determining that the media asset request does not exist in the media asset list, sending a request failure identifier to the playing service terminal.
After receiving a media resource request identifier fed back by an operation management background, a playing server determines a resource address corresponding to the media resource request identifier and sends the resource address to a client A, so that the client A acquires media resource through the resource address and displays the acquired media resource; when receiving the request failure identifier, the playing server feeds back preset request failure information to the client A, so that the client A displays the request failure information to the user.
The invention develops the media asset channel for the client, when the user requests the media asset resources, the signature verification is carried out on the media asset playing request, the malicious request is effectively filtered, the use environment of the media asset resources is improved, the safety of outputting the media asset resources is further improved after the validity verification is passed, finally the authentication verification is carried out, the management of each media asset resource can be carried out, the media asset resources are output to the user in a controlled manner, and the media asset channel of the client can be repeatedly utilized, thereby improving the working efficiency of the management of the media asset resources and the working efficiency of the watching development.
The embodiment of the invention also provides a storage medium, which comprises a stored instruction, wherein when the instruction runs, the device where the storage medium is located is controlled to execute the media resource processing method.
An electronic device is provided in an embodiment of the present invention, and its structural diagram is shown in fig. 6, which specifically includes a memory 701 and one or more instructions 702, where the one or more instructions 702 are stored in the memory 701, and are configured to be executed by one or more processors 703 to execute the one or more instructions 702 to perform the above-mentioned medium resource processing method.
The specific implementation procedures and derivatives thereof of the above embodiments are within the scope of the present invention.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A media resource processing method is characterized by comprising the following steps:
acquiring a media asset playing request generated by a client;
performing signature verification on the media asset playing request;
when the media asset playing request passes the signature verification, judging whether a media asset encryption identifier in the media asset playing request is legal or not;
when the media asset encryption identifier is determined to be legal, determining a media asset request identifier;
judging whether the media resource request identification exists in a media resource list of a media resource channel of the client;
and if the media resource exists, feeding back a resource address corresponding to the media resource request identifier to the client, so that the client displays the media resource corresponding to the resource address.
2. The method of claim 1, wherein the signature verification of the media asset play request comprises:
analyzing the media asset playing request, acquiring each signature verification parameter, a first signature value and determining a signature mode applied by the client;
processing each signature verification parameter by using the signature mode to obtain a second signature value;
and when the first signature value and the second signature value are the same, determining that the media asset playing request passes signature verification.
3. The method of claim 1, wherein the determining whether the asset encryption identifier in the asset play request is legal comprises:
analyzing the media asset encryption identification to obtain a first encryption character string and a second encryption character string;
decrypting the first encrypted character string to obtain each legal verification factor;
encrypting each legal verification factor and a channel encryption factor of a media asset channel of the client to obtain a third encryption character string;
and when the third encryption character string is consistent with the second encryption character string, determining that the media asset encryption identifier in the media asset playing request is legal.
4. The method of claim 1, wherein the determining whether the asset request identifier exists in an asset list of an asset channel of the client comprises:
traversing the media resource request identifier to each preset media resource identifier in the media resource list;
and when a preset media asset identifier consistent with the media asset request identifier exists in each preset media asset identifier, determining that the media asset request identifier exists in a media asset list of a media asset channel of the client.
5. The method of claim 1, wherein the client-generated procedure for playing the media asset comprises:
acquiring the media asset information of each media asset resource of the media asset channel of the client;
generating a media asset display page based on each piece of media asset information;
displaying the media asset display page to a user;
and acquiring a media asset selection instruction input by the user, and generating a media asset playing request based on the media asset selection instruction.
6. A media asset resource processing system, comprising:
a playing server and an operation management background;
the playing server is used for acquiring a media asset playing request generated by a client and performing signature verification on the media asset playing request; when the media asset playing request passes signature verification, sending the media asset playing request to the operation management background;
the operation management background is used for receiving a media asset playing request sent by the playing server and judging whether a media asset encryption identifier in the media asset playing request is legal or not; when the media asset encryption identifier is determined to be legal, determining a media asset request identifier; judging whether the media resource request identifier exists in a media resource list of a media resource channel of the client; and if the media resource request identifier exists, feeding back the media resource request identifier to the playing service end, so that the playing service end determines a resource address corresponding to the media resource request identifier and sends the resource address to the client.
7. The system of claim 6, wherein when the playing service performs signature verification on the media asset playing request, the playing service is specifically configured to:
analyzing the media asset playing request to acquire each signature verification parameter, a signature value generated by the client and a signature algorithm applied by the client;
processing each signature verification parameter by using the signature algorithm to obtain a signature verification value;
and when the signature verification value is the same as the signature value, determining that the media asset playing request passes signature verification.
8. The system of claim 6, wherein the operation management background, when determining whether the asset encryption identifier in the asset playing request is legal, is specifically configured to:
analyzing the media asset encryption identification to obtain a first encryption character string and a second encryption character string;
decrypting the first encrypted character string to obtain each legal verification factor;
encrypting each legal verification factor and a channel encryption factor of a media asset channel of the client to obtain a third encryption character string;
and when the third encryption character string is consistent with the second encryption character string, determining that the media asset encryption identifier in the media asset playing request is legal.
9. A storage medium, characterized in that the storage medium comprises stored instructions, wherein when the instructions are executed, a device on which the storage medium is located is controlled to execute the media asset resource processing method according to any one of claims 1 to 5.
10. An electronic device comprising a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by the one or more processors to perform the method of processing media assets according to any one of claims 1-5.
CN202210527754.7A 2022-05-16 2022-05-16 Media resource processing method and system, storage medium and electronic equipment Pending CN114979786A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210527754.7A CN114979786A (en) 2022-05-16 2022-05-16 Media resource processing method and system, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210527754.7A CN114979786A (en) 2022-05-16 2022-05-16 Media resource processing method and system, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN114979786A true CN114979786A (en) 2022-08-30

Family

ID=82983515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210527754.7A Pending CN114979786A (en) 2022-05-16 2022-05-16 Media resource processing method and system, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114979786A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080033992A1 (en) * 2006-08-03 2008-02-07 Microsoft Corporation Related Media Content Assets
CN107517179A (en) * 2016-06-15 2017-12-26 阿里巴巴集团控股有限公司 A kind of method for authenticating, device and system
CN111031061A (en) * 2019-12-24 2020-04-17 北京深思数盾科技股份有限公司 Verification method and gateway equipment
CN111314794A (en) * 2020-03-18 2020-06-19 浩云科技股份有限公司 Method for generating streaming media playing address
CN112039674A (en) * 2020-08-06 2020-12-04 珠海格力电器股份有限公司 Central control system access and signature identification generation method and device and storage medium
CN113329242A (en) * 2021-05-27 2021-08-31 北京沃东天骏信息技术有限公司 Resource management method and device
CN113489700A (en) * 2021-06-28 2021-10-08 聚好看科技股份有限公司 Method, server and terminal equipment for acquiring media asset data

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080033992A1 (en) * 2006-08-03 2008-02-07 Microsoft Corporation Related Media Content Assets
CN107517179A (en) * 2016-06-15 2017-12-26 阿里巴巴集团控股有限公司 A kind of method for authenticating, device and system
CN111031061A (en) * 2019-12-24 2020-04-17 北京深思数盾科技股份有限公司 Verification method and gateway equipment
CN111314794A (en) * 2020-03-18 2020-06-19 浩云科技股份有限公司 Method for generating streaming media playing address
CN112039674A (en) * 2020-08-06 2020-12-04 珠海格力电器股份有限公司 Central control system access and signature identification generation method and device and storage medium
CN113329242A (en) * 2021-05-27 2021-08-31 北京沃东天骏信息技术有限公司 Resource management method and device
CN113489700A (en) * 2021-06-28 2021-10-08 聚好看科技股份有限公司 Method, server and terminal equipment for acquiring media asset data

Similar Documents

Publication Publication Date Title
CN109858262B (en) Process approval method, device and system based on block chain system and storage medium
CN101860540B (en) Method and device for identifying legality of website service
CN106487765B (en) Authorized access method and device using the same
CN108111497B (en) Mutual authentication method and device for camera and server
WO2021184755A1 (en) Application access method and apparatus, and electronic device and storage medium
CN114900338B (en) Encryption and decryption method, device, equipment and medium
CN110519268B (en) Voting method, device, equipment, system and storage medium based on block chain
CN110933484A (en) Management method and device of wireless screen projection equipment
CN115242379A (en) System and method for distributed verification of online identity
CN108449357B (en) Authorized login method and device, intelligent device and storage medium
CN107918731A (en) Method and apparatus for controlling the authority to access to open interface
CN112261012A (en) Browser, server and webpage access method
CN114338247B (en) Data transmission method and apparatus, electronic device, storage medium, and program product
CN105447715A (en) Method and apparatus for anti-theft electronic coupon sweeping by cooperating with third party
CN104378379A (en) Encryption transmission method, equipment and system for digital content
CN105871805A (en) Anti-stealing-link method and device
CN113204772A (en) Data processing method, device, system, terminal, server and storage medium
CN106789008B (en) Method, device and system for decrypting sharable encrypted data
JP2013008140A (en) Single sign-on system, single sign-on method and authentication server cooperation program
CN108235067B (en) Authentication method and device for video stream address
CN110807210B (en) Information processing method, platform, system and computer storage medium
CN108429621B (en) Identity verification method and device
CN106850592A (en) A kind of information processing method, server and terminal
CN107241341B (en) Access control method and device
CN114979786A (en) Media resource processing method and system, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination