CN111756767A - Streaming media data transmission method and device, electronic equipment and computer storage medium - Google Patents

Streaming media data transmission method and device, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN111756767A
CN111756767A CN202010639444.5A CN202010639444A CN111756767A CN 111756767 A CN111756767 A CN 111756767A CN 202010639444 A CN202010639444 A CN 202010639444A CN 111756767 A CN111756767 A CN 111756767A
Authority
CN
China
Prior art keywords
data
streaming media
media data
scrambled
encrypted
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
CN202010639444.5A
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.)
Chengdu Westone Information Industry Inc
Original Assignee
Chengdu Westone Information Industry Inc
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 Chengdu Westone Information Industry Inc filed Critical Chengdu Westone Information Industry Inc
Priority to CN202010639444.5A priority Critical patent/CN111756767A/en
Publication of CN111756767A publication Critical patent/CN111756767A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • H04L65/762Media network packet handling at the source 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • H04L65/764Media network packet handling at the destination 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/2347Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving video stream encryption
    • H04N21/23476Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving video stream encryption by partially encrypting, e.g. encrypting the ending portion of a movie
    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4405Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving video stream decryption
    • H04N21/44055Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving video stream decryption by partially decrypting, e.g. decrypting a video stream that has been partially encrypted

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a streaming media data transmission method, a streaming media data transmission device, electronic equipment and a computer readable storage medium, which are applied to a sending end and used for coding initial streaming media data to obtain coded streaming media data; selectively encrypting and scrambling the coded streaming media data to obtain target streaming media data; and transmitting the target streaming media data to the receiving end so that the receiving end obtains initial streaming media data based on the target streaming media data. In the disclosure, the selective encryption processing and the scrambling processing are performed on the encoded streaming media data only after the transmitting end obtains the encoded streaming media data, and as the selective encryption processing is performed, all encoded streaming media data do not need to be encrypted, so that the encryption efficiency is improved.

Description

Streaming media data transmission method and device, electronic equipment and computer storage medium
Technical Field
The present disclosure relates to the field of data transmission technologies, and in particular, to a streaming media data transmission method, apparatus, electronic device, and computer storage medium.
Background
Streaming Media (Streaming Media) technology is a technology that compresses a series of Media data and transmits the compressed Media data in a Streaming manner in a network in segments to realize real-time transmission of video and audio on the network for viewing. Streaming media data refers to data transmitted by applying streaming media technology, and the types thereof include video data, audio data, and the like. In the transmission process of streaming media data, in order to ensure the security of the streaming media data, the streaming media data needs to be encrypted, for example, a selective encryption method is used for encryption, and selective encryption refers to encrypting only key parameters, information, and the like of the streaming media data.
However, when the selective encryption method is applied to encrypt the streaming media data, the encoder needs to be modified, which is costly, and an unencrypted portion in the streaming media data exists in a plaintext form, which causes information leakage of the streaming media data and affects security of the streaming media data.
In summary, how to improve the transmission security of streaming media data is a problem to be solved by those skilled in the art.
Disclosure of Invention
The present disclosure is directed to a streaming media data transmission method, which can solve the technical problem of how to improve the transmission security of streaming media data to a certain extent. The disclosure also provides a streaming media data transmission device, an electronic device and a computer readable storage medium.
According to a first aspect of the embodiments of the present disclosure, a streaming media data transmission method is provided, which is applied to a sending end, and includes:
encoding the initial streaming media data to obtain encoded streaming media data;
selectively encrypting and scrambling the coded streaming media data to obtain target streaming media data;
and transmitting the target streaming media data to a receiving end so that the receiving end obtains the initial streaming media data based on the target streaming media data.
Preferably, the performing selective encryption processing and scrambling processing on the encoded streaming media data to obtain target streaming media data includes:
taking data after the first byte length in the coded streaming media data as first data to be grouped;
grouping the first to-be-grouped data according to a preset byte length to obtain first grouped data;
selecting the first packet data according to a preset rule, and taking the selected first packet data as data to be encrypted;
taking data except the data to be encrypted in the coded streaming media data as data to be scrambled;
encrypting the data to be encrypted to obtain encrypted data;
the scrambling processing is carried out on the data to be scrambled to obtain scrambled data;
and combining the encrypted data and the scrambled data into the target streaming media data.
Preferably, the scrambling processing on the data to be scrambled to obtain scrambled data includes:
acquiring a random number agreed with the receiving terminal in advance;
converting the random number into a scrambling random number with the same length as the data to be scrambled;
and carrying out XOR operation on the scrambling random number and the data to be scrambled to obtain the scrambled data.
Preferably, the combining the encrypted data and the scrambled data into the target streaming media data includes:
replacing each bit data of the data to be encrypted in the coded streaming media data based on each bit data of the encrypted data;
replacing each bit data of the data to be scrambled in the coded streaming media data based on each bit data of the scrambled data;
and taking the replaced coded streaming media data as the target streaming media data.
According to a second aspect of the embodiments of the present disclosure, there is provided a streaming media data transmission method applied to a receiving end, including:
receiving target streaming media data transmitted by a sending end, wherein the target streaming media data comprises data obtained by selectively encrypting and scrambling encoded streaming media data by the sending end, and the encoded streaming media data comprises data obtained by encoding initial streaming media data by the sending end;
selectively decrypting and descrambling the target streaming media data to obtain the coded streaming media data;
decoding the encoded streaming media data to obtain the initial streaming media data;
wherein the selective encryption process matches the selective decryption process, and the descrambling process matches the scrambling process.
Preferably, the selectively decrypting and descrambling the target streaming media data to obtain the encoded streaming media data includes:
taking the data after the first byte length in the target streaming media data as second data to be grouped;
grouping the second data to be grouped according to a preset byte length to obtain second grouped data;
selecting the second packet data according to a preset rule, and taking the selected second packet data as encrypted data;
taking data except the encrypted data in the target streaming media data as scrambled data;
decrypting the encrypted data to obtain data to be encrypted;
performing descrambling processing on the scrambled data to obtain data to be scrambled;
and combining the data to be encrypted and the data to be scrambled into the coded streaming media data.
Preferably, the descrambling the scrambled data to obtain the data to be scrambled includes:
acquiring a random number agreed with the transmitting terminal in advance;
converting the random number into a descrambling random number with the same length as the scrambling data;
and carrying out XOR operation on the descrambling random number and the scrambling data to obtain the data to be scrambled.
Preferably, the combining the data to be encrypted and the data to be scrambled into the encoded streaming media data includes:
replacing each bit data of the encrypted data in the target streaming media data based on each bit data of the data to be encrypted;
replacing each bit data of the scrambled data in the target streaming media data based on each bit data of the data to be scrambled;
and taking the replaced target streaming media data as the coding streaming media data.
According to a third aspect of the embodiments of the present disclosure, there is provided a streaming media data transmission apparatus, applied to a sending end, including:
the first coding module is used for coding the initial streaming media data to obtain coded streaming media data;
the first processing module is used for carrying out selective encryption processing and scrambling processing on the coded streaming media data to obtain target streaming media data;
and the first transmission module is used for transmitting the target streaming media data to a receiving end so that the receiving end obtains the initial streaming media data based on the target streaming media data.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a streaming media data transmission apparatus, applied to a receiving end, including:
a first receiving module, configured to receive target streaming media data transmitted by a sending end, where the target streaming media data includes data obtained by the sending end selectively encrypting and scrambling encoded streaming media data, and the encoded streaming media data includes data obtained by the sending end encoding initial streaming media data;
the second processing module is used for selectively decrypting and descrambling the target streaming media data to obtain the coded streaming media data;
a first decoding module, configured to decode the encoded streaming media data to obtain the initial streaming media data;
wherein the selective encryption process matches the selective decryption process, and the descrambling process matches the scrambling process.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a memory for storing a computer program;
a processor for executing the computer program in the memory to implement the steps of any of the methods described above.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of any of the methods described above.
The disclosed streaming media data transmission method is applied to a sending end, and used for coding initial streaming media data to obtain coded streaming media data; selectively encrypting and scrambling the coded streaming media data to obtain target streaming media data; and transmitting the target streaming media data to the receiving end so that the receiving end obtains initial streaming media data based on the target streaming media data. In the disclosure, the selective encryption processing and the scrambling processing are performed on the encoded streaming media data only after the transmitting end obtains the encoded streaming media data, and as the selective encryption processing is performed, all encoded streaming media data do not need to be encrypted, so that the encryption efficiency is improved. The streaming media data transmission device, the electronic equipment and the computer readable storage medium provided by the disclosure also solve the corresponding technical problems.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure 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 disclosure, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a first flowchart illustrating a streaming media data transmission method according to an exemplary embodiment;
FIG. 2 is a flow diagram illustrating obtaining target streaming media data according to an example embodiment;
fig. 3 is a second flowchart illustrating a streaming media data transmission method according to an exemplary embodiment;
fig. 4 is a first structural diagram of a streaming media data transmission device according to an exemplary embodiment;
fig. 5 is a second structural diagram of a streaming media data transmission apparatus according to an exemplary embodiment;
fig. 6 is a block diagram illustrating an electronic device 600 according to an example embodiment.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
Referring to fig. 1, fig. 1 is a first flowchart illustrating a streaming media data transmission method according to an exemplary embodiment.
The streaming media data transmission method related to the present disclosure is applied to a sending end, and may include the following steps:
step S101: and coding the initial streaming media data to obtain coded streaming media data.
It can be understood that the initial streaming media data refers to original, unprocessed streaming media data transmitted by the transmitting end to the receiving end; the encoded streaming media data refers to streaming media data obtained after encoding initial streaming media data, and the process of obtaining the encoded streaming media data is known from the disclosure.
Step S102: and carrying out selective encryption processing and scrambling processing on the coded streaming media data to obtain target streaming media data.
It can be understood that after the encoded streaming media data is obtained, if the encoded streaming media data is directly decoded, the initial streaming media data can be obtained, so that if the encoded streaming media data is directly transmitted to a receiving end, an attacker is easy to intercept the encoded streaming media data to obtain the initial streaming media data, and in order to enhance the difficulty of obtaining the initial streaming media data by the attacker, the encoded streaming media data can be encrypted, so that the attacker is difficult to obtain the encoded streaming media data; in addition, in view of the fact that all encoded streaming media data are encrypted, the encryption cost is high, the encryption efficiency is low, and in order to avoid the problem, selective encryption processing and scrambling processing are performed on the encoded streaming media data in the disclosure to obtain target streaming media data, and both the encryption mode and the scrambling mode can be determined according to actual needs.
Step S103: and transmitting the target streaming media data to the receiving end so that the receiving end obtains initial streaming media data based on the target streaming media data.
It can be understood that, after the sending end obtains the target streaming media data, the sending end can transmit the target streaming media data to the receiving end, so that the receiving end can obtain the initial streaming media data based on the target streaming media data.
It should be noted that the process of obtaining the initial streaming media data based on the target streaming media data by the receiving end is opposite to the process of obtaining the target streaming media data based on the initial streaming media data by the sending end, for example, after the receiving end receives the target streaming media data transmitted by the sending end, the receiving end selectively decrypts and descrambles the target streaming media data to obtain encoded streaming media data, and decodes the encoded streaming media data to obtain the initial streaming media data; the selective encryption processing is matched with the selective decryption processing, and the descrambling processing is matched with the scrambling processing.
The disclosed streaming media data transmission method is applied to a sending end, and used for coding initial streaming media data to obtain coded streaming media data; selectively encrypting and scrambling the coded streaming media data to obtain target streaming media data; and transmitting the target streaming media data to the receiving end so that the receiving end obtains initial streaming media data based on the target streaming media data. In the disclosure, the selective encryption processing and the scrambling processing are performed on the encoded streaming media data only after the transmitting end obtains the encoded streaming media data, and as the selective encryption processing is performed, all encoded streaming media data do not need to be encrypted, so that the encryption efficiency is improved.
Referring to fig. 2, fig. 2 is a flowchart illustrating obtaining target streaming media data according to an exemplary embodiment.
The streaming media data transmission method related by the present disclosure, a sending end performs selective encryption processing and scrambling processing on encoded streaming media data, and in the process of obtaining target streaming media data, the following steps may be executed:
step S201: and taking data after the first byte length in the coded streaming media data as first data to be grouped.
Step S202: and grouping the first to-be-grouped data according to a preset byte length to obtain first grouped data.
Step S203: and selecting the first packet data according to a preset rule, and taking the selected first packet data as the data to be encrypted.
It can be understood that most of the front part data in the encoded streaming media data is fixed information, and the privacy is low, so that the data after the first byte length in the encoded streaming media data can be used as first to-be-grouped data, the first to-be-grouped data is grouped according to the preset byte length to obtain first grouped data, that is, the length of the first grouped data is the preset byte length, and finally, the first grouped data is selected according to the preset rule, and the first grouped data obtained by selection is used as the data to be encrypted. It should be noted that, since the first byte length, the preset byte length, and the preset rule determine the content of the data to be encrypted, the first byte length, the preset byte length, and the specific content of the preset rule may be set according to the encryption requirement of the user on the initial streaming media data, for example, after the user specifies that the specific data of the initial streaming media data is the data to be encrypted, the first byte length, the preset byte length, and the specific content of the preset rule may be reversely pushed according to the corresponding position of the specific data in the encoded streaming media data and the determination process of the data to be encrypted.
Step S204: and taking the data except the data to be encrypted in the coded streaming media data as the data to be scrambled.
Step S205: and encrypting the data to be encrypted to obtain encrypted data.
Step S206: and scrambling the data to be scrambled to obtain scrambled data.
Step S207: the encrypted data and the scrambled data are combined into target streaming media data.
It can be understood that after the data to be encrypted is determined, other data in the encoded streaming media data except the data to be encrypted is non-encrypted data, and in order to ensure the security of the encoded streaming media data, the data in the encoded streaming media data except the data to be encrypted may be used as the data to be scrambled, that is, the data of the first byte length in the encoded streaming media data is also the data to be scrambled, then the data to be encrypted is encrypted to obtain the encrypted data, the data to be scrambled is scrambled to obtain the scrambled data, and finally the encrypted data and the scrambled data are combined into the target streaming media data to obtain the target streaming media data without exposing the encoded streaming media data. Correspondingly, in the process of obtaining the coded streaming media data, the receiving end selectively decrypts and descrambles the target streaming media data, and can use data after the first byte length in the target streaming media data as second grouped data, group the second grouped data according to the preset byte length to obtain second grouped data, select the second grouped data according to a preset rule, use the selected second grouped data as encrypted data, use data except the encrypted data in the target streaming media data as scrambled data, decrypt the encrypted data to obtain the data to be encrypted, descramble the scrambled data to obtain the data to be scrambled, and combine the data to be encrypted and the data to be scrambled into the coded streaming media data.
It can be understood that, in the process of obtaining the scrambled data by scrambling the data to be scrambled, the receiving end may scramble the data to be scrambled by using the random number, that is, the sending end may obtain the random number agreed with the receiving end in advance, convert the random number into the scrambled random number having the same length as the data to be scrambled, and perform the xor operation on the scrambled random number and the data to be scrambled to obtain the scrambled data. Correspondingly, the receiving end descrambles the scrambled data to obtain a random number agreed with the transmitting end in advance in the process of obtaining the data to be scrambled; converting the random number into a descrambling random number with the same length as the scrambling data; and carrying out XOR operation on the descrambling random number and the scrambling data to obtain the data to be scrambled.
It can be understood that, since the encrypted data corresponds to the data to be encrypted, the scrambled data corresponds to the data to be scrambled, and the positions of the data to be encrypted and the data to be scrambled in the encoded stream media data are known, the position of the encrypted data in the target stream media data can be determined according to the position of the data to be encrypted in the encoded stream media data, and the position of the scrambled data in the target stream media data can be determined according to the position of the data to be scrambled in the encoded stream media data, that is, in the process of combining the encrypted data and the scrambled data into the target stream media data by the sending end, each bit data of the data to be encrypted in the encoded stream media data can be replaced based on each bit data of the encrypted data; replacing each bit data of the data to be scrambled in the coded streaming media data based on each bit data of the scrambled data; and taking the replaced coded streaming media data as target streaming media data. Correspondingly, in the process that the receiving end combines the data to be encrypted and the data to be scrambled into the coded streaming media data, the receiving end can replace each bit data of the encrypted data in the target streaming media data for each bit data based on the data to be encrypted; replacing each bit data of the scrambling data in the target streaming media data based on each bit data of the data to be scrambled; and taking the replaced target streaming media data as the coded streaming media data.
Referring to fig. 3, fig. 3 is a second flowchart illustrating a streaming media data transmission method according to an exemplary embodiment.
The streaming media data transmission method related to the present disclosure is applied to a receiving end, and may include the following steps:
step S301: and receiving target streaming media data transmitted by a sending end, wherein the target streaming media data comprises data obtained by selectively encrypting and scrambling encoded streaming media data by the sending end, and the encoded streaming media data comprises data obtained by encoding initial streaming media data by the sending end.
Step S302: and selectively decrypting and descrambling the target streaming media data to obtain the encoded streaming media data.
Step S303: decoding the encoded streaming media data to obtain initial streaming media data; the selective encryption processing is matched with the selective decryption processing, and the descrambling processing is matched with the scrambling processing.
It can be understood that, in the process of selectively decrypting and descrambling the target streaming media data by the receiving end to obtain the encoded streaming media data, the following steps may be performed:
taking data after the first byte length in the target streaming media data as second data to be grouped;
grouping the second data to be grouped according to the preset byte length to obtain second grouped data;
selecting the second grouped data according to a preset rule, and taking the selected second grouped data as encrypted data;
taking data except the encrypted data in the target streaming media data as scrambled data;
carrying out decryption processing on the encrypted data to obtain data to be encrypted;
descrambling the scrambled data to obtain data to be scrambled;
and combining the data to be encrypted and the data to be scrambled into coded streaming media data.
It can be understood that, in the process of descrambling the scrambled data by the receiving end to obtain the data to be scrambled, the receiving end may:
acquiring a random number agreed with a sending end in advance;
converting the random number into a descrambling random number with the same length as the scrambling data;
and carrying out XOR operation on the descrambling random number and the scrambling data to obtain the data to be scrambled.
It can be understood that, in the process of combining the data to be encrypted and the data to be scrambled into the encoded streaming media data by the receiving end, the following steps may be performed:
replacing each bit data of the encrypted data in the target streaming media data based on each bit data of the data to be encrypted;
replacing each bit data of the scrambling data in the target streaming media data based on each bit data of the data to be scrambled;
and taking the replaced target streaming media data as the coded streaming media data.
Referring to fig. 4, fig. 4 is a schematic diagram illustrating a first structure of a streaming media data transmission apparatus according to an exemplary embodiment.
The streaming media data transmission apparatus 400 according to the present disclosure is applied to a sending end, and may include:
a first encoding module 410, configured to encode the initial streaming media data to obtain encoded streaming media data;
a first processing module 420, configured to perform selective encryption processing and scrambling processing on encoded streaming media data to obtain target streaming media data;
the first transmission module 430 is configured to transmit the target streaming media data to the receiving end, so that the receiving end obtains the initial streaming media data based on the target streaming media data.
The streaming media data transmission device related to the present disclosure is applied to a sending end, and the first processing module may include:
the first setting submodule is used for taking data after the first byte length in the coded streaming media data as first data to be grouped;
the first grouping submodule is used for grouping the first to-be-grouped data according to the preset byte length to obtain first grouped data;
the first selection submodule is used for selecting the first packet data according to a preset rule and taking the selected first packet data as data to be encrypted;
the second setting submodule is used for taking data except the data to be encrypted in the coded streaming media data as data to be scrambled;
the first encryption submodule is used for encrypting data to be encrypted to obtain encrypted data;
the first scrambling submodule is used for scrambling data to be scrambled to obtain scrambled data;
and the first combination sub-module is used for combining the encrypted data and the scrambled data into target streaming media data.
The streaming media data transmission device related to the present disclosure is applied to a sending end, and the first scrambling submodule may include:
a first obtaining unit, configured to obtain a random number agreed in advance with a receiving end;
the first transformation unit is used for transforming the random number into a scrambling random number with the same length as the data to be scrambled;
and the first XOR unit is used for carrying out XOR operation on the scrambling random number and the data to be scrambled to obtain the scrambled data.
The present disclosure relates to a streaming media data transmission apparatus, which is applied to a sending end, and a first combining sub-module may include:
the first replacing unit is used for replacing each bit data of data to be encrypted in the coded streaming media data based on each bit data of the encrypted data;
a second replacing unit, configured to replace, based on each bit data of the scrambled data, each bit data of the data to be scrambled in the encoded streaming media data;
and the first setting unit is used for taking the replaced coded streaming media data as target streaming media data.
Referring to fig. 5, fig. 5 is a second structural diagram of a streaming media data transmission device according to an exemplary embodiment.
The streaming media data transmission apparatus 500 according to the present disclosure is applied to a receiving end, and may include:
a first receiving module 510, configured to receive target streaming media data transmitted by a sending end, where the target streaming media data includes data obtained by selectively encrypting and scrambling encoded streaming media data by the sending end, and the encoded streaming media data includes data obtained by encoding initial streaming media data by the sending end;
the second processing module 520 is configured to selectively decrypt and descramble the target streaming media data to obtain encoded streaming media data;
a first decoding module 530, configured to decode the encoded streaming media data to obtain initial streaming media data; the selective encryption processing is matched with the selective decryption processing, and the descrambling processing is matched with the scrambling processing.
The streaming media data transmission device related to the present disclosure is applied to a receiving end, and the second processing module may include:
the third setting submodule is used for taking data after the first byte length in the target streaming media data as second data to be grouped;
the second grouping submodule is used for grouping second data to be grouped according to the preset byte length to obtain second grouping data;
the second selection submodule is used for selecting the second grouped data according to a preset rule and taking the selected second grouped data as encrypted data;
the fourth setting submodule is used for taking the data except the encrypted data in the target streaming media data as the scrambled data;
the first decryption submodule is used for decrypting the encrypted data to obtain data to be encrypted;
the first descrambling submodule is used for descrambling the scrambled data to obtain the data to be scrambled;
and the second combination sub-module is used for combining the data to be encrypted and the data to be scrambled into coded streaming media data.
The streaming media data transmission device related to the present disclosure is applied to a receiving end, and the first descrambling submodule may include:
a second obtaining unit, configured to obtain a random number agreed in advance with the sending end;
a second conversion unit for converting the random number into a descrambled random number having a length equal to the scrambled data;
and the second exclusive-OR unit is used for carrying out exclusive-OR operation on the descrambling random number and the scrambled data to obtain the data to be scrambled.
The streaming media data transmission device related to the present disclosure is applied to a receiving end, and the second combining sub-module may include:
a third replacing unit for replacing each bit data of the encrypted data in the target streaming media data based on each bit data of the data to be encrypted;
a fourth replacing unit, configured to replace each bit data of the scrambling data in the target streaming media data based on each bit data of the data to be scrambled;
and the second setting unit is used for taking the replaced target streaming media data as the coded streaming media data.
Fig. 6 is a block diagram illustrating an electronic device 600 according to an example embodiment. As shown in fig. 6, the electronic device 600 may include: a processor 601 and a memory 602. The electronic device 600 may also include one or more of a multimedia component 603, an input/output (I/O) interface 604, and a communications component 605.
The processor 601 is configured to control the overall operation of the electronic device 600, so as to complete all or part of the steps in the streaming media data transmission method. The memory 602 is used to store various types of data to support operation at the electronic device 600, such as instructions for any application or method operating on the electronic device 600 and application-related data, such as contact data, transmitted and received messages, pictures, audio, video, and so forth. The Memory 602 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia components 603 may include a screen and audio components. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 602 or transmitted through the communication component 605. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 604 provides an interface between the processor 601 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 605 is used for wired or wireless communication between the electronic device 600 and other devices. Wireless communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding communication component 605 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the electronic Device 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components, for performing the streaming media data transmission method described above.
In another exemplary embodiment, a computer readable storage medium including program instructions, which when executed by a processor, implement the steps of the streaming media data transmission method described above, is also provided. For example, the computer readable storage medium may be the memory 602 including the program instructions, which are executable by the processor 601 of the electronic device 600 to perform the streaming media data transmission method described above.
For a description of a related part in a streaming media data transmission device, an electronic device, and a computer readable storage medium provided in the embodiments of the present disclosure, reference is made to the detailed description of the corresponding part in a streaming media data transmission method provided in the embodiments of the present disclosure, and details are not repeated here. In addition, parts of the above technical solutions provided in the embodiments of the present disclosure that are consistent with the implementation principle of the corresponding technical solutions in the prior art are not described in detail, so as to avoid redundant description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present disclosure. 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 disclosure. Thus, the present disclosure 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 (12)

1. A streaming media data transmission method is applied to a sending end and comprises the following steps:
encoding the initial streaming media data to obtain encoded streaming media data;
selectively encrypting and scrambling the coded streaming media data to obtain target streaming media data;
and transmitting the target streaming media data to a receiving end so that the receiving end obtains the initial streaming media data based on the target streaming media data.
2. The method according to claim 1, wherein the selectively encrypting and scrambling the encoded streaming media data to obtain target streaming media data comprises:
taking data after the first byte length in the coded streaming media data as first data to be grouped;
grouping the first to-be-grouped data according to a preset byte length to obtain first grouped data;
selecting the first packet data according to a preset rule, and taking the selected first packet data as data to be encrypted;
taking data except the data to be encrypted in the coded streaming media data as data to be scrambled;
encrypting the data to be encrypted to obtain encrypted data;
the scrambling processing is carried out on the data to be scrambled to obtain scrambled data;
and combining the encrypted data and the scrambled data into the target streaming media data.
3. The method according to claim 2, wherein the scrambling the data to be scrambled to obtain scrambled data includes:
acquiring a random number agreed with the receiving terminal in advance;
converting the random number into a scrambling random number with the same length as the data to be scrambled;
and carrying out XOR operation on the scrambling random number and the data to be scrambled to obtain the scrambled data.
4. The method of claim 2, wherein combining the encrypted data and the scrambled data into the target streaming media data comprises:
replacing each bit data of the data to be encrypted in the coded streaming media data based on each bit data of the encrypted data;
replacing each bit data of the data to be scrambled in the coded streaming media data based on each bit data of the scrambled data;
and taking the replaced coded streaming media data as the target streaming media data.
5. A streaming media data transmission method is applied to a receiving end and comprises the following steps:
receiving target streaming media data transmitted by a sending end, wherein the target streaming media data comprises data obtained by selectively encrypting and scrambling encoded streaming media data by the sending end, and the encoded streaming media data comprises data obtained by encoding initial streaming media data by the sending end;
selectively decrypting and descrambling the target streaming media data to obtain the coded streaming media data;
decoding the encoded streaming media data to obtain the initial streaming media data;
wherein the selective encryption process matches the selective decryption process, and the descrambling process matches the scrambling process.
6. The method according to claim 5, wherein said selectively decrypting and descrambling the target streaming media data to obtain the encoded streaming media data comprises:
taking the data after the first byte length in the target streaming media data as second data to be grouped;
grouping the second data to be grouped according to a preset byte length to obtain second grouped data;
selecting the second packet data according to a preset rule, and taking the selected second packet data as encrypted data;
taking data except the encrypted data in the target streaming media data as scrambled data;
decrypting the encrypted data to obtain data to be encrypted;
performing descrambling processing on the scrambled data to obtain data to be scrambled;
and combining the data to be encrypted and the data to be scrambled into the coded streaming media data.
7. The method of claim 6, wherein the descrambling the scrambled data to obtain the data to be scrambled comprises:
acquiring a random number agreed with the transmitting terminal in advance;
converting the random number into a descrambling random number with the same length as the scrambling data;
and carrying out XOR operation on the descrambling random number and the scrambling data to obtain the data to be scrambled.
8. The method according to claim 6, wherein the combining the data to be encrypted and the data to be scrambled into the encoded streaming media data comprises:
replacing each bit data of the encrypted data in the target streaming media data based on each bit data of the data to be encrypted;
replacing each bit data of the scrambled data in the target streaming media data based on each bit data of the data to be scrambled;
and taking the replaced target streaming media data as the coding streaming media data.
9. A streaming media data transmission device is applied to a sending end, and comprises:
the first coding module is used for coding the initial streaming media data to obtain coded streaming media data;
the first processing module is used for carrying out selective encryption processing and scrambling processing on the coded streaming media data to obtain target streaming media data;
and the first transmission module is used for transmitting the target streaming media data to a receiving end so that the receiving end obtains the initial streaming media data based on the target streaming media data.
10. A streaming media data transmission apparatus, applied to a receiving end, comprising:
a first receiving module, configured to receive target streaming media data transmitted by a sending end, where the target streaming media data includes data obtained by the sending end selectively encrypting and scrambling encoded streaming media data, and the encoded streaming media data includes data obtained by the sending end encoding initial streaming media data;
the second processing module is used for selectively decrypting and descrambling the target streaming media data to obtain the coded streaming media data;
a first decoding module, configured to decode the encoded streaming media data to obtain the initial streaming media data;
wherein the selective encryption process matches the selective decryption process, and the descrambling process matches the scrambling process.
11. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program in the memory to carry out the steps of the method of any one of claims 1 to 8.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
CN202010639444.5A 2020-07-06 2020-07-06 Streaming media data transmission method and device, electronic equipment and computer storage medium Pending CN111756767A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010639444.5A CN111756767A (en) 2020-07-06 2020-07-06 Streaming media data transmission method and device, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010639444.5A CN111756767A (en) 2020-07-06 2020-07-06 Streaming media data transmission method and device, electronic equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN111756767A true CN111756767A (en) 2020-10-09

Family

ID=72679365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010639444.5A Pending CN111756767A (en) 2020-07-06 2020-07-06 Streaming media data transmission method and device, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN111756767A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070098000A1 (en) * 2004-07-26 2007-05-03 Wajs Andrew A Method of partially scrambling a data stream
CN101034972A (en) * 2006-02-15 2007-09-12 耶德托存取公司 Method and system providing scrambled content
CN101552666A (en) * 2009-05-07 2009-10-07 杭州威威网络科技有限公司 Real time media stream encryption transmission method
US20130064368A1 (en) * 2011-09-12 2013-03-14 Frédéric Lefebvre Methods and devices for selective format-preserving data encryption
CN105656655A (en) * 2014-11-14 2016-06-08 华为技术有限公司 Method, device and system for network security management
CN105847233A (en) * 2016-03-10 2016-08-10 浪潮集团有限公司 Switch which carries out encrypted transmission according to fields
JP2016213537A (en) * 2015-04-30 2016-12-15 日本放送協会 Encryption device and program thereof, decryption device and program thereof
CN106664197A (en) * 2014-09-05 2017-05-10 三星电子株式会社 Method and device for data encrypting
CN108023724A (en) * 2016-11-04 2018-05-11 北京展讯高科通信技术有限公司 Data transmission method and device
CN111093097A (en) * 2019-12-20 2020-05-01 北京云享智胜科技有限公司 Stream media data encryption and decryption method and device, electronic equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070098000A1 (en) * 2004-07-26 2007-05-03 Wajs Andrew A Method of partially scrambling a data stream
CN101034972A (en) * 2006-02-15 2007-09-12 耶德托存取公司 Method and system providing scrambled content
CN101552666A (en) * 2009-05-07 2009-10-07 杭州威威网络科技有限公司 Real time media stream encryption transmission method
US20130064368A1 (en) * 2011-09-12 2013-03-14 Frédéric Lefebvre Methods and devices for selective format-preserving data encryption
CN106664197A (en) * 2014-09-05 2017-05-10 三星电子株式会社 Method and device for data encrypting
CN105656655A (en) * 2014-11-14 2016-06-08 华为技术有限公司 Method, device and system for network security management
JP2016213537A (en) * 2015-04-30 2016-12-15 日本放送協会 Encryption device and program thereof, decryption device and program thereof
CN105847233A (en) * 2016-03-10 2016-08-10 浪潮集团有限公司 Switch which carries out encrypted transmission according to fields
CN108023724A (en) * 2016-11-04 2018-05-11 北京展讯高科通信技术有限公司 Data transmission method and device
CN111093097A (en) * 2019-12-20 2020-05-01 北京云享智胜科技有限公司 Stream media data encryption and decryption method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN1992589B (en) Methods of scrambling and descrambling units of data
JP2016513825A (en) Safety communication method and apparatus
CN109981648B (en) Encryption transmission method, decryption method, device, terminal and storage medium
JP2013047822A (en) Encryption method for message authentication
CN101518073A (en) Method for generating the counter block value
KR20020016620A (en) Method for encrypting information and device for realization of the method
CN1341310A (en) Protecting information in system
Novelan et al. Sms security system on mobile devices using tiny encryption algorithm
CN111431716B (en) Data transmission method and device, computer equipment and storage medium
CN104378198A (en) Voice encryption method based on block cipher system
CN109714368B (en) Message encryption and decryption method and device, electronic equipment and computer readable storage medium
US20080317243A1 (en) Low complexity encryption method for content that is coded by a rateless code
US8130949B2 (en) Partially reversible key obfuscation
CN100521771C (en) A conditional reception system merging Internet and cable television network environments
KR20150064042A (en) Method and device for digital data blocks encryption and decryption
KR101924047B1 (en) Encryption method and apparatus using the same, decryption method and appratus using the same
Li et al. A secure and efficient entropy coding based on arithmetic coding
CN104077541A (en) Selective encryption method and device based on multimedia data
KR20040038777A (en) Data encryption method
TWI376136B (en) Method for transmitting messages between an emitter and at least one receiver and system for implementing said method
CN111756767A (en) Streaming media data transmission method and device, electronic equipment and computer storage medium
CN103392312B (en) The dynamic Crypto Period of cascade is used to carry out the system and method for encryption and decryption transmission stream
KR100259836B1 (en) A n-round round output feedback block cipher/decipher method
KR20230095750A (en) Whitebox cryptographic method and device based on block cipher mode of operation using one-way function
KR101566416B1 (en) Method and device of data encription with increased security

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201009