Streaming media data encryption transmission method, decryption method, transmitter, receiver

By using dynamic passwords to encrypt and decrypt data in streaming data transmission, the problem of the lack of anti-theft mechanism of the streaming protocol is solved, the security of streaming data transmission is achieved, and the computing burden of the encryption and decryption process is reduced.

CN113079149BActive Publication Date: 2024-11-05SHENZHEN QIANHAI MAOJIA SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110323392.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-25
Publication Date
2024-11-05
Estimated Expiration
2041-03-25

AI Technical Summary

Technical Problem

The existing streaming protocol lacks an anti-theft mechanism when transmitting streaming data, resulting in third parties being able to intercept and read streaming data, which cannot guarantee the security of data transmission.

Method used

By obtaining the dynamic password of the streaming media data, encrypting the data according to the frame sequence to generate the target streaming media data, and decrypting it at the receiving end to ensure the security during the data transmission process.

Benefits of technology

Effectively prevent third parties from intercepting streaming media data, ensuring security during data transmission, and the encryption and decryption process does not require high CPU requirements, reducing GPU function loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113079149B_ABST
    Figure CN113079149B_ABST
Patent Text Reader

Abstract

The present application discloses a streaming media data encryption transmission method, a decryption method, a sending end, and a receiving end. The streaming media data encryption transmission method comprises: obtaining streaming media data to be sent, and obtaining a dynamic password of the streaming media data, wherein the dynamic password is determined according to the frame sequence of the streaming media data; performing an encryption operation on the streaming media data according to the dynamic password to generate target streaming media data; and sending the target streaming media data to the receiving end. The technical problem that the streaming media data is easily read and causes information leakage when it is intercepted by a third party during the transmission process is solved, and the security of streaming media data transmission is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data transmission, and in particular to a streaming media data encryption transmission method, a decryption method, a sending end, and a receiving end. Background Art

[0002] In recent years, streaming media technology has been widely used in industries such as live video, short video, and interactive live broadcast. In streaming media technology, streaming media data can be transmitted on the Internet based on streaming media protocols, wherein the streaming media data includes audio and video data.

[0003] In the prior art, when streaming media data is transmitted based on a streaming media protocol, the streaming media data is usually transmitted from a sending end to a receiving end in a data packet format defined by the streaming media protocol. However, since the streaming media protocol only defines the data packet format during streaming media transmission, there is no anti-theft mechanism to prevent a third party from obtaining the streaming media data, and thus the security of streaming media data transmission cannot be guaranteed. Summary of the invention

[0004] The embodiment of the present application provides a streaming media data encryption transmission method, aiming to solve the problem of data information leakage caused by the streaming media data being intercepted by a third party during the transmission process in the prior art.

[0005] To achieve the above objectives, the present application provides a method for encrypting and transmitting streaming media data, comprising:

[0006] Acquire streaming media data to be sent, and acquire a dynamic password of the streaming media data, wherein the dynamic password is determined according to a frame sequence of the streaming media data;

[0007] Performing encryption operation on the streaming media data according to the dynamic password to generate target streaming media data;

[0008] The target streaming media data is sent to a receiving end.

[0009] Optionally, the streaming media data is generated by sequentially sorting the sub-data in the streaming media data, and the step of performing an encryption operation on the streaming media data according to the dynamic password to generate the target streaming media data includes:

[0010] Determine the sorting position corresponding to each of the sub-data in the streaming media data according to the dynamic password;

[0011] According to the sorting positions respectively corresponding to the sub-data in the streaming media data, the sub-data in the streaming media data are sorted to obtain the target streaming media data.

[0012] Optionally, the step of determining, according to the dynamic password, the sorting position corresponding to each of the sub-data in the streaming media data, respectively, includes:

[0013] Determine the number of moving bits and the moving direction of each sub-data in the streaming media data according to the dynamic password;

[0014] The sorting positions corresponding to each of the sub-data in the streaming media data are determined according to the number of shifted bits and the shifting direction.

[0015] Optionally, the step of determining the number of moving bits and the moving direction of each sub-data in the streaming media data according to the dynamic password includes:

[0016] Using the data of preset digits in the dynamic password as the first target data, and using the data in the dynamic password other than the first target data as the second target data;

[0017] Determine the number of shifted bits of each of the sub-data in the streaming media data according to the first target data;

[0018] Acquiring configuration data, where the configuration data is determined according to the dynamic password;

[0019] The second target data and the configuration data are ANDed to obtain the moving direction of each sub-data in the streaming media data.

[0020] Optionally, the step of performing an AND operation on the second target data and the configuration data to obtain the moving direction of each sub-data in the streaming media data includes:

[0021] When the result of the AND operation between the second target data and the configuration data is true, determining that the moving direction of each of the sub-data in the streaming media data is the first direction;

[0022] When the result of the AND operation between the second target data and the configuration data is false, the moving direction of each sub-data in the streaming media data is determined to be the second direction, and the first direction and the second direction are opposite directions to each other.

[0023] Optionally, the step of obtaining the dynamic password of the streaming media data includes:

[0024] Determining whether the frame sequence of the streaming media data is the first frame of streaming media data sent to the receiving end;

[0025] If yes, obtaining the dynamic password through the receiving end;

[0026] If not, the dynamic password of the streaming media data is determined by using the dynamic password of the previous frame of streaming media data.

[0027] Optionally, the step of determining the dynamic password of the streaming media data by using the dynamic password of the previous frame of streaming media data includes:

[0028] Obtaining a dynamic password for the previous frame of streaming media data;

[0029] The dynamic password of the streaming media data to be sent is obtained after the first preset data in the dynamic password is moved to the second preset data in the dynamic password.

[0030] Optionally, the step of obtaining the password through the receiving end includes:

[0031] Scanning the identification code displayed by the receiving end for establishing a connection with the receiving end, after establishing a connection with the receiving end, receiving information sent from the receiving end to obtain the dynamic password; or,

[0032] Establishing a connection with the receiving end based on the received target information;

[0033] Output prompt information for obtaining the dynamic password from the receiving end, so as to prompt the user to input the dynamic password displayed by the receiving end to obtain the dynamic password.

[0034] In addition, the present application also provides a target streaming media data decryption method, the streaming media data decryption method comprising:

[0035] Receive target streaming media data;

[0036] Obtaining a dynamic password for the target streaming media data according to a frame sequence of the target streaming media data;

[0037] The target streaming media data is decrypted according to the dynamic password to obtain the streaming media data.

[0038] Optionally, the target streaming media data is generated by sequentially arranging the sub-data in the target streaming media data, and the step of performing a decryption operation on the target streaming media data according to the dynamic password to obtain the streaming media data includes:

[0039] Determine the sorting position corresponding to each of the sub-data in the streaming media data according to the dynamic password;

[0040] According to the sorting positions respectively corresponding to the sub-data in the streaming media data, the sub-data in the streaming media data are sorted to obtain the target streaming media data.

[0041] Optionally, the step of determining, according to the dynamic password, the sorting position corresponding to each of the sub-data in the streaming media data, respectively, includes:

[0042] Determine the number of moving bits and the moving direction of each sub-data in the streaming media data according to the dynamic password;

[0043] The sorting positions corresponding to each of the sub-data in the streaming media data are determined according to the number of shifted bits and the shifting direction.

[0044] Optionally, the step of determining the number of moving bits and the moving direction of each sub-data in the streaming media data according to the dynamic password includes:

[0045] Using the data of preset digits in the dynamic password as the first target data, and using the data in the dynamic password other than the first target data as the second target data;

[0046] Determine the number of shifted bits of each of the sub-data in the streaming media data according to the first target data;

[0047] Acquiring configuration data, where the configuration data is determined according to the dynamic password;

[0048] The second target data and the configuration data are ANDed to obtain the moving direction of each sub-data in the streaming media data.

[0049] Optionally, the step of performing an AND operation on the second target data and the configuration data to obtain the moving direction of each sub-data in the streaming media data includes:

[0050] When the result of the AND operation between the second target data and the configuration data is true, determining that the moving direction of each sub-data in the streaming media data is the second direction;

[0051] When the result of the AND operation between the second target data and the configuration data is false, it is determined that the moving direction of each sub-data in the streaming media data is a first direction, and the first direction and the second direction are opposite directions to each other.

[0052] In addition, the present application also provides a sending end, which includes a processor, a memory, and a streaming media data encryption transmission program stored on the memory and runable on the processor, and when the streaming media data encryption transmission program is executed by the processor, the steps of any of the above streaming media data encryption transmission methods are implemented.

[0053] In addition, the present application also provides a receiving end, on which a streaming media data decryption program is stored, and when the streaming media data decryption program is executed by a processor, the steps of any of the above streaming media data decryption methods are implemented.

[0054] In this embodiment, the receiving end obtains the streaming media data and the dynamic password of the streaming media data, encrypts the streaming media data according to the dynamic password to generate target streaming media data, and then sends the target streaming media data to the receiving end. The dynamic password is determined according to the frame sequence of each frame of the streaming media data. When a third party intercepts the streaming media data, it is impossible to know the dynamic password used by the sending end for encryption and the dynamic password used by the receiving end for decryption, thereby ensuring the security of the streaming media data transmission process. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 A schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present application;

[0056] Figure 2 This is a flow chart of an embodiment of a method for encrypting and transmitting streaming media data of the present application;

[0057] Figure 3 This is a flow chart of another embodiment of the method for encrypting and transmitting streaming media data of the present application;

[0058] Figure 4 This is a flow chart of another embodiment of the method for encrypting and transmitting streaming media data of the present application;

[0059] Figure 5 This is a flow chart of an embodiment of a method for decrypting target streaming media data of the present application.

[0060] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0061] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0062] The main solution of the embodiment of the present application is: obtaining the streaming media data to be sent, and obtaining the dynamic password of the streaming media data, wherein the dynamic password is determined according to the frame sequence in the streaming media data; performing encryption operation on the streaming media data according to the dynamic password to generate target streaming media data; and sending the target streaming media data to the receiving end.

[0063] In existing streaming media transmission technology, streaming media data is usually transmitted from the sender to the receiver in the data packet format defined by the streaming media protocol. However, since the streaming media protocol only defines the data packet format during streaming media transmission, there is no anti-theft mechanism to prevent third parties from obtaining streaming media data. As a result, third parties can directly read the streaming media data after intercepting it, thereby failing to guarantee the security of streaming media data transmission.

[0064] like Figure 1 As shown, Figure 1 This is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present application.

[0065] like Figure 1 As shown, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0066] Optionally, the terminal may also include a camera, an RF (Radio Frequency) circuit, a sensor, a remote controller, an audio circuit, a WiFi module, a detector, etc. Of course, the terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a temperature sensor, etc., which will not be described in detail here.

[0067] Those skilled in the art will understand that Figure 1 The terminal structure shown in the figure does not constitute a limitation on the terminal device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0068] like Figure 1 As shown, the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a streaming media data encryption transmission program.

[0069] exist Figure 1In the terminal shown, the network interface 1004 is mainly used to connect to the backend server and perform data communication with the backend server; the user interface 1003 is mainly used to connect to the client (user end) and perform data communication with the client; and the processor 1001 can be used to call the streaming media data encryption transmission program stored in the memory 1005 and perform the following operations:

[0070] Acquire streaming media data to be sent, and acquire a dynamic password of the streaming media data, wherein the dynamic password is determined according to a frame sequence in the streaming media data;

[0071] Performing encryption operation on the streaming media data according to the dynamic password to generate target streaming media data;

[0072] The target streaming media data is sent to a receiving end.

[0073] refer to Figure 2 , Figure 2 This is a flow chart of the first embodiment of the streaming media data encryption transmission method of the present application.

[0074] The embodiments of the present application provide an embodiment of a method for encrypting and transmitting streaming media data. It should be noted that although a logical order is shown in the flow chart, in some cases, the steps shown or described may be executed in an order different from that shown here.

[0075] Streaming media data encryption transmission methods include:

[0076] Step S10, obtaining streaming media data to be sent, and obtaining a dynamic password of the streaming media data, wherein the dynamic password is determined according to a frame sequence in the streaming media data;

[0077] In the present application, the sending end sends streaming media data to the receiving end, and the streaming media data to be sent is initial streaming media data, which is original, unprocessed streaming media data.

[0078] In this application, the sending end that sends the streaming media data can be a mobile phone, iPad, mobile computer, desktop computer, etc., and the receiving end that receives the processed streaming media data can be a mobile phone, iPad, TV, etc. Based on the established connection relationship, the sending end sends the streaming media data to the receiving terminal.

[0079] In the present application, the sending end obtains the streaming media data that currently needs to be sent to the receiving end, and obtains the dynamic password for the streaming media data to be sent, and the dynamic password is a password for encrypting the streaming media data, which changes with the change of the frame sequence of the streaming media data. The frame sequence is the order in which the sending end sends the streaming media data to the receiving end after the sending end establishes a connection with the receiving end. For example, when the streaming media data to be sent is the first frame of streaming media data after the sending end establishes a connection with the receiving end, the frame sequence of the streaming media is determined to be the first frame; when the streaming media data to be sent is the second frame of streaming media data after the sending end establishes a connection with the receiving end, the frame sequence of the streaming media is determined to be the second frame.

[0080] The dynamic password is determined according to the frame sequence of the streaming media data. The sending end records the frame sequence of the streaming media data sent to the receiving end, and then adjusts the dynamic password. The receiving end also changes the dynamic password according to the frame sequence of the received streaming media data, so that the dynamic password used by the sending end to encrypt the streaming media data is consistent with the dynamic password used by the receiving end to decrypt the received target streaming media data.

[0081] Step S20, performing encryption operation on the streaming media data according to the dynamic password to generate target streaming media data;

[0082] The target streaming media data is the data that the sending end encrypts and sends to the receiving end.

[0083] In the present application, the dynamic password will change according to the change of the frame sequence of each streaming media data, and the dynamic password is not sent when the sending end sends the streaming media data to the receiving end. For the sending end, the change of the dynamic password is determined by the frame sequence. Similarly, for the receiving end, the change of the dynamic password is also determined by the frame sequence of the received target data. Therefore, the same change mechanism can be preset at the sending end and the receiving end, which can ensure that when the dynamic password of the sending end changes, when the streaming media data to be sent is encrypted according to the changed dynamic password, the receiving end can obtain the dynamic password consistent with the sending end according to the current frame sequence, and then perform a decryption operation on the acquired target streaming media data according to the obtained dynamic password to obtain the original streaming media data. Among them, the change mechanism can be that each bit of the dynamic password is moved to the left by one bit for each increase in the frame sequence. For example, the dynamic password of the first frame of streaming media data is 10010010, and the dynamic password of the second frame of streaming media data is 100100100. In this embodiment, the change method of the dynamic password is not limited.

[0084] Specifically, in this embodiment, the encryption operation performed on the streaming media data according to the dynamic password can be performed without changing the content of the streaming media data, and the streaming media data can be directly packaged using the dynamic password to generate the target streaming media data. When the streaming media data is received at the receiving end, the dynamic password used when the streaming media data is packaged at the sending end can be known according to the frame sequence of the received target streaming media data. The acquired target streaming media data can be decrypted according to the dynamic password to obtain the streaming media data sent from the sending end. Since the dynamic password is directly sent to the sending end by the receiving end when the receiving end and the sending end initially establish a connection, and the dynamic password change mechanism is known to both the receiving end and the sending end, the dynamic password can be changed according to the preset change mechanism, so that when the sending end sends the target streaming media data to the receiving end, the target streaming media data is directly sent without adding the dynamic password therein, thereby ensuring the security of the data.

[0085] Furthermore, in this embodiment, a dynamic password can be used to change the content of streaming media data. Specifically, the transmission content of the dynamic password can be directly added to the streaming media data in a preset manner to generate target streaming media data, which is sent to the receiving end. When the receiving end receives the target streaming media data, the dynamic password can be removed from the target streaming media data to obtain the streaming media data.

[0086] Step S30: sending the target streaming media data to the receiving end.

[0087] After the streaming media data generates the target streaming media data, the target streaming media data is sent to the receiving end, so that the receiving end performs a decryption operation on the target streaming media data after receiving the target streaming media data to obtain the streaming media data.

[0088] In the present application, the streaming media data sent from the transmitting end to the receiving end is sent to the receiving end in the form of a streaming media data packet. Specifically, the streaming media data packet includes a packet header + streaming media data. The packet header part is not encrypted in the present application. After the encryption operation is completed on the streaming media data to generate the target streaming media data, the packet header part and the target streaming media data are sent to the receiving end together. When the receiving end receives the target streaming media data and the packet header, only the target streaming media data is decrypted.

[0089] In this embodiment, the receiving end obtains the streaming media data and the dynamic password of the streaming media data, encrypts the streaming media data according to the dynamic password to generate target streaming media data, and then sends the target streaming media data to the receiving end. The dynamic password is determined according to the frame sequence of each frame of the streaming media data. When a third party intercepts the streaming media data, it is impossible to know the dynamic password used by the sending end for encryption and the dynamic password used by the receiving end for decryption, thereby ensuring the security of the streaming media data transmission process.

[0090] Further, refer to Figure 3 , another embodiment of the streaming media data encryption transmission method of the present application is proposed.

[0091] The difference between the second embodiment of the method for encrypting and transmitting streaming media data and the first embodiment of the method for encrypting and transmitting streaming media data is that the streaming media data is generated by sequentially sorting the sub-data in the streaming media data, and the step of performing an encryption operation on the streaming media data according to the dynamic password to generate target streaming media data includes:

[0092] Step S21, determining the sorting position corresponding to each of the sub-data in the streaming media data according to the dynamic password;

[0093] Step S22, sorting each of the sub-data in the streaming media data according to the sorting position corresponding to each of the sub-data in the streaming media data, to obtain the target streaming media data.

[0094] The sorting position is the position of each sub-data after it changes.

[0095] The streaming media data is generated by sorting the sub-data in sequence. For example, the streaming media data is 123A4DF8323AD (binary is 1001000111010010011011111100000110010001110101101), which confirms that the streaming media data is generated by sorting the binary sub-data such as 1, 0, 0, 1, 0, 0, ... in sequence.

[0096] In this embodiment, the sorting position of each sub-data is determined according to the dynamic password. For example, the first sub-data and the last sub-data in the streaming media data are swapped according to the dynamic password, and the positions of other sub-data remain unchanged. Then, the sorting position of each sub-data in the target streaming media data is obtained, and the sub-data in the streaming media data are re-sorted according to the sorting position to obtain the target streaming media data.

[0097] The step of determining the sorting position corresponding to each of the sub-data in the streaming media data according to the dynamic password comprises:

[0098] Step S211, determining the number of moving bits and the moving direction of each sub-data in the streaming media data according to the dynamic password;

[0099] Step S212: determining the sorting positions corresponding to the sub-data in the streaming media data according to the number of shifted bits and the shifting direction.

[0100] The number of bits to be moved is the number of sub-data that need to be moved in the streaming media data. For example, when the dynamic password is 00000010, the value converted to decimal by the dynamic password is 2, which means that the number of bits of sub-data that need to be moved is 2. The moving direction is the moving direction of each sub-data in the streaming media data when the encryption operation is performed, which includes a first direction and a second direction. In this embodiment, the first direction can be set to the left, and the second direction can be set to the right.

[0101] In this embodiment, when the number of moving bits and the moving direction of each sub-data in the streaming media data can be determined according to the dynamic password, the sorting position of each sub-data in the streaming media data can be changed to generate the target streaming media data, and the third party can be prevented from stealing the target streaming media data during the transmission process, the original streaming media data can be obtained through the target streaming media data, thereby ensuring the security of streaming media data transmission.

[0102] The step of determining the number of moving bits and the moving direction of each sub-data in the streaming media data according to the dynamic password comprises:

[0103] Step S211, using data of a preset number of digits in the dynamic password as first target data, and using data in the dynamic password other than the first target data as second target data;

[0104] Step S212, determining the number of shifted bits of each sub-data in the streaming media data according to the first target data;

[0105] Step S213, obtaining configuration data, wherein the configuration data is determined according to the dynamic password;

[0106] Step S214: performing an AND operation on the second target data and the configuration data to obtain a moving direction of each of the sub-data in the streaming media data.

[0107] The first target data is the data of the preset number of digits in the dynamic password, and the second target data is the other data in the dynamic password excluding the first target data. For example, in this embodiment, the dynamic password is 0001 1010, the first target data is 1010, that is, the preset number of digits is the last four digits of the dynamic password, and the second target data is 0001.

[0108] The configuration data is data that performs an AND operation with the second target data. In this embodiment, the configuration data may be changed according to the change of the dynamic password. For example, each time the dynamic password changes, the original configuration data is incremented by one to obtain new configuration data that performs an AND operation with the dynamic password. The security of the streaming media data during transmission is enhanced by the changed configuration data. It can be understood that the change of the configuration data in this embodiment is the same as that in the previous embodiment, and the same change mechanism is set at the sending end and the receiving end. Therefore, the configuration data of the sending end can be set to be consistent with the configuration data of the receiving end.

[0109] In the present application, the number of moving bits of the streaming media data is determined according to the first target data, and the moving direction of each sub-data in the streaming media data is determined according to the calculation result of the second target data and the configuration data.

[0110] The step of performing an AND operation on the second target data and the configuration data to obtain the moving direction of each sub-data in the streaming media data includes:

[0111] Step S2141, when the result of performing an AND operation on the second target data and the configuration data is true, determining that the moving direction of the streaming media data is a first direction;

[0112] Step S2142: when the result of the AND operation between the second target data and the configuration data is false, determining that the moving direction of the streaming media data is the second direction, and the first direction and the second direction are opposite directions to each other.

[0113] Referring to the above description, when the dynamic password is 0001 1010, the first target data is 1010, and the second target data is 0001. The configuration data of the dynamic password (00011010) is determined to be 0001, and the result of the AND operation of the configuration data and the second target data is 1, which is true, and the moving direction of each sub-data in the streaming media data is determined to be left. In this embodiment, by setting the moving direction and the number of bits of each sub-data in the streaming media data, the streaming media data is generated into target streaming media data, and the target streaming media data is sent to the receiving end. The streaming media data is encrypted to generate the target streaming media data, thereby ensuring the security of the streaming media data. The encryption and decryption are shift operations, which do not require high CPU requirements, and reduce the functional loss of the GPU during the encryption and decryption process.

[0114] Referring to the above description, if the first target data of the dynamic password is 1010, it is determined that the number of bits to be moved for each sub-data in the streaming media data is ten (1010 converted to decimal is 10). By converting the first target data from binary to decimal, it is possible to quickly determine the number of bits to be moved for each sub-data in the streaming media data, providing a basis for encrypting the streaming media data to generate the target streaming media data.

[0115] In this embodiment, the detailed description of encrypting the streaming media data according to the dynamic password to generate the target streaming media data is as follows. Referring to the above embodiment, the dynamic password is 00011010, the configuration data is 0001, the first target data is 1010, and the second target data is 0001. According to the second target data of the dynamic password and the configuration data (0001) of the dynamic password, the movement direction of each sub-data in the streaming media data obtained by performing an AND operation is leftward, and according to the first target data (1010), the number of moving bits of each sub-data in the streaming media data is determined to be 10 bits. The current streaming media data is determined to be 123A4DF8323AD (binary: 1001000111010010011011111100000110010001110101101), which is equivalent to the target streaming media data generated by shifting each sub-data in the streaming media data 123A4DF8323AD to the left by ten bits to be 48E937E0C8EB400 (binary: 1001000111 0100100110 1111110000 0110010001110101010 000000000). The streaming media data is encrypted with a dynamic password to generate the target streaming media data, thereby ensuring the security of the streaming media data during transmission.

[0116] Further, refer to Figure 4 , another embodiment of the streaming media data encryption transmission method of the present application is proposed.

[0117] The step of obtaining the dynamic password of the streaming media data includes:

[0118] Step S11, determining whether the frame sequence of the streaming media data is the first frame of streaming media data sent to the receiving end;

[0119] Step S12: If yes, the dynamic password is obtained through the receiving end;

[0120] Step S13: if not, determine the dynamic password of the streaming media data by using the dynamic password of the previous frame of streaming media data.

[0121] In this embodiment, the dynamic password is determined by the frame sequence of the streaming media data. When the streaming media data is sent by the sender to the receiver for the first time after the connection with the receiver is established, the frame sequence of the current streaming media data is determined to be the first frame.

[0122] When it is determined that the frame sequence of the currently transmitted streaming media data is the first frame, the dynamic password is obtained from the receiving end. When it is determined that the currently transmitted streaming media data is not the first frame of streaming media data, the dynamic password of the current streaming media data is determined according to the dynamic password of the previous streaming media data.

[0123] In this embodiment, the dynamic password of the streaming media data can be determined according to the frame sequence of the streaming media data, so that the dynamic password of the streaming media data can be changed with the change of the frame sequence during data transmission, further enhancing the security of streaming media data transmission.

[0124] The step of determining the dynamic password of the streaming media data by using the dynamic password of the previous frame of streaming media data comprises:

[0125] Step S131, obtaining the dynamic password of the previous frame of streaming media data;

[0126] Step S132: moving the first preset data in the dynamic password to the second preset data in the dynamic password to obtain the dynamic password of the streaming media data to be sent.

[0127] In this embodiment, when it is determined that the current streaming media data is not the first frame of streaming media data, the dynamic password of the previous frame of streaming media data is obtained, and the dynamic password of the current streaming media data is obtained after moving the first preset data of the dynamic password of the previous frame to the second preset data in the dynamic password.

[0128] The first preset position is the first digit of the dynamic password, and the second preset position is the last digit of the dynamic password.

[0129] Specifically, when the dynamic password of the previous frame of streaming media data is 00011010, the dynamic password of the previous frame of streaming media data is shifted, for example, the first digit 0 is moved to the back of the last digit 0 to obtain the dynamic password of the current streaming media data frame as 00110100. In the present application, in the shift operation, the shift data (one or two digits) and the shift direction (left or right) of the dynamic password can be set by the user, and the present application does not limit it.

[0130] It can be understood that in the present application, since the receiving end sends a dynamic password to the sending end when the connection is established between the sending end and the receiving end, which is the initial dynamic password, that is, the dynamic password of the first frame of streaming media data, the receiving end can be set to set the same shift operation as the sending end, and the dynamic password when the target streaming media data is decoded can be obtained. For example, when the initial dynamic password is 00110100, the sending end is set to shift the dynamic password to the left by two digits every time the frame sequence of the streaming media data increases by one (sending the second frame of streaming media data to the receiving end), and the dynamic password of the second frame of streaming media data is 11010000, then the receiving end performs the same shift operation on the initial dynamic password, and obtains the dynamic password (11010000) when the second frame of streaming media data is received, so as to perform the decryption operation when the second frame of streaming media data is received.

[0131] In the present application, the dynamic passwords at the transmitting end and the receiving end are controlled to perform the same shift operation, so that when the receiving end receives the target streaming media data, it completes the decryption operation on the target streaming media data to obtain the streaming media data.

[0132] The step of obtaining the password through the receiving end includes:

[0133] Step S121, scanning the identification code displayed by the receiving end for establishing a connection with the receiving end, after establishing a connection with the receiving end, receiving information sent from the receiving end to obtain the dynamic password; or,

[0134] Step S122, establishing a connection with the receiving end based on the received target information, wherein the target information is login information input by the user;

[0135] Step S123: outputting prompt information for obtaining the dynamic password from the receiving end, so as to prompt the user to input the dynamic password displayed by the receiving end to obtain the dynamic password.

[0136] The identification code is an identification code used to control the receiving end and the sending end to establish a connection.

[0137] In the present application, when the streaming media data sent by the sending end to the receiving end is the first frame of streaming media data, the streaming media data is encrypted according to the dynamic password sent by the receiving end when establishing a connection with the receiving end by scanning the identification code.

[0138] Specifically, when the receiving end and the sending end are connected by scanning a code, the sending end will directly receive the device address information and the initial dynamic password of the receiving end, and then establish a connection with the receiving end according to the device address information, and obtain the initial dynamic password as the password for performing encryption operations on the first frame of streaming media data.

[0139] When the receiving end and the sending end establish a connection by means of a password, after the sending end obtains the target information, the target information is the login information received based on the display interface. The sending end receives the login information input by the user, and establishes a connection with the sending end if the login information is correct. At this time, the initial dynamic password is displayed on the display interface of the sending end, and the user is prompted to enter the dynamic password at the receiving end to obtain the dynamic password of the first frame of streaming media data sent from the receiving end to the sending end.

[0140] In this embodiment, the sending end establishes a connection with the receiving end and obtains a dynamic password by scanning a code, can quickly connect to the receiving end and obtain the dynamic password, and can protect the security of the dynamic password. When the connection is established by password login, even if the way the dynamic passwords of the receiving end and the sending end change and the encryption method of the streaming media data are unknown, a third party cannot obtain the initial streaming media data by intercepting the target streaming media data when knowing the initial dynamic password.

[0141] In addition, reference Figure 5 , a flow chart of an embodiment of a method for decrypting streaming media data of the present application is provided. The method for decrypting streaming media data comprises:

[0142] Step S1, receiving target streaming media data;

[0143] The target streaming media data is the data that the sending end encrypts and sends to the receiving end.

[0144] The receiving end receives the target streaming media data sent by the sending end through the established connection relationship.

[0145] Step S2, obtaining a dynamic password of the target streaming media data according to the frame sequence of the target streaming media data;

[0146] In the present application, when receiving the target streaming media data, the receiving end obtains a dynamic password for the target streaming media data, and the dynamic password is a password for decrypting the target streaming media data, which changes with the change of the frame sequence of the target streaming media data. The frame sequence is the order of the target streaming media data received by the receiving end after the sending end and the receiving end establish a connection relationship. For example, when the receiving end receives the first frame of the target streaming media data sent from the sending end after the connection is established with the sending end, the frame sequence of the target streaming media is determined to be the first frame; when the second frame of the target streaming media data is received, the frame sequence of the received target streaming media is determined to be the second frame.

[0147] The dynamic password is determined according to the frame sequence of the target streaming media data. The receiving end records the frame sequence of the received target streaming media data and then adjusts the dynamic password so that the dynamic password used by the receiving end to decrypt the received target streaming media data is consistent with the dynamic password used by the sending end to encrypt the streaming media data.

[0148] Step S3: decrypt the target streaming media data according to the dynamic password to obtain streaming media data.

[0149] In the present application, the dynamic password will change according to the change of the frame sequence of each target streaming media data. For the sending end, the change of the dynamic password is determined by the frame sequence. Similarly, for the receiving end, the change of the dynamic password is also determined by the frame sequence of the received target data. Therefore, the same change mechanism can be preset at the sending end and the receiving end, which can ensure that when the dynamic password of the sending end changes, the streaming media data to be sent is encrypted according to the changed dynamic password, and the receiving end can obtain the dynamic password consistent with the sending end according to the current frame sequence, and then perform a decryption operation on the acquired target streaming media data according to the obtained dynamic password to obtain the original streaming media data. Among them, the change mechanism can be that each bit of the dynamic password is moved to the left by one bit for each increase in the frame sequence. For example, the dynamic password of the first frame of target streaming media data is 10010010, and the dynamic password of the second frame of target streaming media data is 100100100. In this embodiment, the change method of the dynamic password is not limited.

[0150] Specifically, in this embodiment, the encryption operation performed on the target streaming media data according to the dynamic password can be performed without changing the content of the target streaming media data, and the target streaming media data can be directly packaged using the dynamic password to generate the target streaming media data. When the target streaming media data is received at the receiving end, the dynamic password used when the target streaming media data is packaged at the sending end can be known according to the frame sequence of the received target streaming media data. The acquired target streaming media data can be decrypted according to the dynamic password to obtain the target streaming media data sent from the sending end. Since the dynamic password is directly sent from the receiving end to the sending end when the receiving end and the sending end initially establish a connection, and the dynamic password change mechanism is known to both the receiving end and the sending end, the dynamic password can be changed according to the preset change mechanism, so that when the sending end sends the target streaming media data to the receiving end, the target streaming media data is directly sent without adding the dynamic password therein, thereby ensuring the security of the data.

[0151] In this embodiment, the receiving end obtains the target streaming media data and the dynamic password of the target streaming media data, and decrypts the target streaming media data according to the dynamic password. The dynamic password is determined according to the frame sequence of each frame of the target streaming media data. When a third party intercepts the target streaming media data, it is impossible to know the dynamic password used by the sending end for decryption operation and the dynamic password used by the receiving end for decryption operation, thereby ensuring the security of the target streaming media data during transmission.

[0152] The target streaming media data is generated by sequentially sorting the sub-data in the target streaming media data, and the step of performing a decryption operation on the target streaming media data according to the dynamic password to obtain the target streaming media data includes:

[0153] Determine the sorting position corresponding to each of the sub-data in the target streaming media data according to the dynamic password;

[0154] According to the sorting positions respectively corresponding to the sub-data in the target streaming media data, the sub-data in the target streaming media data are sorted to obtain the target streaming media data.

[0155] The sorting position is the position of each sub-data after it changes.

[0156] The target streaming media data is generated by sorting each sub-data in sequence. For example, if the target streaming media data is 123A4DF8323AD (binary is 1001000111010010011011111100000110010001110101101), it is confirmed that the target streaming media data is generated by sorting 1, 0, 0, 1, 0, 0, ..., and other binary sub-data in sequence.

[0157] In this embodiment, the sorting position of each sub-data is determined according to the dynamic password. For example, the first sub-data and the last sub-data in the target streaming media data are swapped according to the dynamic password, and the positions of other sub-data remain unchanged. Then, the sorting position of each sub-data in the target streaming media data is obtained, and the sub-data in the target streaming media data are re-sorted according to the sorting position to obtain the streaming media data.

[0158] The step of determining the sorting position corresponding to each of the sub-data in the target streaming media data according to the dynamic password comprises:

[0159] Determine the number of moving bits and the moving direction of each sub-data in the target streaming media data according to the dynamic password;

[0160] The sorting positions corresponding to each of the sub-data in the target streaming media data are determined according to the number of moving bits and the moving direction.

[0161] The number of bits to be moved is the number of sub-data in the target streaming media data that needs to be moved. For example, when the dynamic password is 00000010, the value converted to decimal by the dynamic password is 2, which means that the number of bits of sub-data that needs to be moved is 2. The moving direction is the moving direction of each sub-data in the target streaming media data when performing the encryption operation, which includes a first direction and a second direction. In this embodiment, the first direction can be set to the left, and the second direction can be set to the right.

[0162] In this embodiment, when the number of moving bits and the moving direction of each sub-data in the target streaming media data can be determined according to the dynamic password, the sorting position of each sub-data in the target streaming media data can be changed to obtain the streaming media data, thereby preventing a third party from stealing the target streaming media data during the transmission process. The original streaming media data can be obtained through the target streaming media data, thereby ensuring the security of the target streaming media data transmission.

[0163] The step of determining the number of moving bits and the moving direction of each sub-data in the target streaming media data according to the dynamic password comprises:

[0164] Using the data of preset digits in the dynamic password as the first target data, and using the data in the dynamic password other than the first target data as the second target data;

[0165] Determine the number of shifted bits of each of the sub-data in the target streaming media data according to the first target data;

[0166] Acquiring configuration data, where the configuration data is determined according to the dynamic password;

[0167] The second target data and the configuration data are ANDed to obtain the moving direction of each sub-data in the target streaming media data.

[0168] The first target data is the data of the preset number of digits in the dynamic password, and the second target data is the other data in the dynamic password excluding the first target data. For example, in this embodiment, the dynamic password is 0001 1010, the first target data is 1010, that is, the preset number of digits is the last four digits of the dynamic password, and the second target data is 0001.

[0169] The configuration data is data that performs an AND operation with the second target data. In this embodiment, the configuration data may be changed according to the change of the dynamic password. For example, each time the dynamic password changes, the original configuration data is incremented by one to obtain new configuration data that performs an AND operation with the dynamic password. The security of the target streaming media data during transmission is enhanced by the changed configuration data. It can be understood that the change of the configuration data in this embodiment is the same as that in the previous embodiment, and the same change mechanism is set at the sending end and the receiving end. Therefore, the configuration data of the sending end can be set to be consistent with the configuration data of the receiving end.

[0170] In the present application, the number of moving bits of the target streaming media data is determined according to the first target data, and the moving direction of each sub-data in the target streaming media data is determined according to the calculation result of the second target data and the configuration data.

[0171] The step of performing an AND operation on the second target data and the configuration data to obtain the moving direction of each sub-data in the target streaming media data includes:

[0172] When the result of the AND operation between the second target data and the configuration data is true, determining that the moving direction of each of the sub-data in the target streaming media data is the second direction;

[0173] When the result of the AND operation between the second target data and the configuration data is false, it is determined that the moving direction of each sub-data in the target streaming media data is a first direction, and the first direction and the second direction are opposite directions to each other.

[0174] Referring to the above description, when the dynamic password is 0001 1010, the first target data is 1010, and the second target data is 0001. The configuration data of the dynamic password (00011010) is determined to be 0001, and the result of the AND operation between the configuration data and the second target data is 1, which is true, and the moving direction of each sub-data in the target streaming media data is determined to be the second direction, that is, rightward. In this embodiment, by setting the moving direction and the number of bits of each sub-data in the target streaming media data, the target streaming media data is generated from the target streaming media data, and the target streaming media data is sent to the receiving end, and the target streaming media data is generated by decrypting the target streaming media data, thereby ensuring the security of the target streaming media data, and the encryption and decryption are shift operations, which do not require high CPU requirements, and reduce the functional loss of the GPU during the encryption and decryption process.

[0175] Referring to the above description, if the first target data of the dynamic password is 1010, it is determined that the number of bits to be moved for each sub-data in the target streaming media data is ten (1010 converted to decimal is 10). By converting the first target data from binary to decimal, it is possible to quickly determine the number of bits to be moved for each sub-data in the target streaming media data, providing a basis for decrypting the target streaming media data to obtain the streaming media data.

[0176] In this embodiment, the detailed description of decrypting the target streaming media data according to the dynamic password to obtain the streaming media data is as follows. Referring to the above embodiment, the dynamic password is 00011010, the configuration data is 0001, the first target data is 1010, and the second target data is 0001. According to the second target data of the dynamic password and the configuration data (0001) of the dynamic password, the moving direction of each sub-data in the target streaming media data obtained by performing an AND operation is leftward, and according to the first target data (1010), the moving bit number of each sub-data in the target streaming media data is determined to be 10 bits. The current target streaming media data is determined to be 48E937E0C8EB400 (binary: 1001000111 0100100110 1111110000 0110010001110101010 000000000), which is equivalent to shifting each sub-data in the target streaming media data 123A4DF8323AD to the right by ten bits to obtain the streaming media data 123A4DF8323AD (binary: 100100011101001001101111110000011001000111010101). The target streaming media data is decrypted using a dynamic password to obtain the streaming media data, thereby ensuring the security of the target streaming media data during transmission.

[0177] Specifically, when the dynamic password of the previous frame of target streaming media data is 00011010, the dynamic password of the previous frame of target streaming media data is shifted, for example, the first digit 0 is moved to the back of the last digit 0 to obtain the dynamic password of the current target streaming media data frame as 00110100. In the present application, in the shift operation, the shift data (one or two digits) and the shift direction (left or right) of the dynamic password can be set by the user, and the present application does not limit it.

[0178] It can be understood that in the present application, since the receiving end sends a dynamic password to the sending end when the sending end and the receiving end establish a connection, which is the initial dynamic password, that is, the dynamic password of the first frame of target streaming media data, the receiving end can be set to set the same shift operation as the sending end, and the dynamic password when the target streaming media data is decoded can be obtained. For example, when the initial dynamic password is 00110100, the sending end is set to shift the dynamic password to the left by two bits every time the frame sequence of the target streaming media data increases by one (sending the second frame of target streaming media data to the receiving end), and the dynamic password of the second frame of target streaming media data is 11010000, then the receiving end performs the same shift operation on the initial dynamic password, and obtains the dynamic password (11010000) when the second frame of target streaming media data is received, so as to perform the decryption operation when the second frame of target streaming media data is received.

[0179] The specific process of data decryption is as follows: when the target streaming media data (48E937E0C8EB400) is received at the receiving end, it is converted into binary to obtain 10010001110100100110111111000001100100011101011010000000000, and the dynamic password for performing a decryption operation on the target streaming media data is determined according to the frame sequence of the received target streaming media. After obtaining the dynamic password, according to the dynamic secret (00011010), the first target data is 1010, and the second target data is 0001. According to the second target data of the dynamic password and the configuration data (0001) of the dynamic password, the moving direction of the target streaming media data obtained after the AND operation is performed is rightward. According to the first target data (1010), the number of moving bits in the target streaming media data is determined to be 10 bits. Thus, the target streaming media data 100100011101001001101111110000011001000111010101 can be obtained by decrypting the acquired target streaming media data, which is 123A4DF8323AD in decimal. The streaming media data can be acquired quickly, and the security of the target streaming media data during transmission is also guaranteed.

[0180] In addition, the present application also provides a sending end, which includes a processor, a memory, and a streaming media data encryption transmission program stored on the memory and runable on the processor, and when the streaming media data encryption transmission program is executed by the processor, the steps of any of the above streaming media data encryption transmission methods are implemented.

[0181] In addition, the present application also provides a receiving end, on which a streaming media data decryption program is stored, and when the streaming media data decryption program is executed by a processor, the steps of any of the above streaming media data decryption methods are implemented.

[0182] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0183] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0184] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0185] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0186] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The present application may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.

[0187] Although the optional embodiments of the present application have been described, those skilled in the art, once informed of the basic creative concept, may make additional changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including optional embodiments and all changes and modifications falling within the scope of the present application.

[0188] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A streaming media data encryption transmission method, characterized in that: The streaming media data encryption transmission method comprises: Acquire streaming media data to be sent, and acquire a dynamic password of the streaming media data, wherein the dynamic password is determined according to a frame sequence of the streaming media data, and the streaming media data is generated by sequentially arranging each sub-data in the streaming media data; Using the data of preset digits in the dynamic password as the first target data, and using the data in the dynamic password other than the first target data as the second target data; Determine the number of shifted bits of each of the sub-data in the streaming media data according to the first target data; Acquiring configuration data, where the configuration data is determined according to the dynamic password; Performing an AND operation on the second target data and the configuration data to obtain a moving direction of each sub-data in the streaming media data; Determine the sorting position corresponding to each of the sub-data in the streaming media data according to the number of shifts and the shift direction; Sort the sub-data in the streaming media data according to the sorting positions respectively corresponding to the sub-data in the streaming media data to obtain target streaming media data; The target streaming media data is sent to a receiving end.

2. The method for encrypting and transmitting streaming media data according to claim 1, wherein: The step of performing an AND operation on the second target data and the configuration data to obtain the moving direction of each sub-data in the streaming media data includes: When the result of the AND operation between the second target data and the configuration data is true, determining that the moving direction of each of the sub-data in the streaming media data is the first direction; When the result of the AND operation between the second target data and the configuration data is false, the moving direction of each sub-data in the streaming media data is determined to be the second direction, and the first direction and the second direction are opposite directions to each other.

3. The method for encrypting and transmitting streaming media data according to claim 1, wherein: The step of obtaining the dynamic password of the streaming media data includes: Determining whether the frame sequence of the streaming media data is the first frame of streaming media data sent to the receiving end; If yes, obtaining the dynamic password through the receiving end; If not, the dynamic password of the streaming media data is determined by using the dynamic password of the previous frame of streaming media data.

4. The method for encrypting and transmitting streaming media data as claimed in claim 3, characterized in that: The step of determining the dynamic password of the streaming media data by using the dynamic password of the previous frame of streaming media data comprises: Obtaining a dynamic password for the previous frame of streaming media data; The dynamic password for the streaming media data to be sent is obtained after the first preset data in the dynamic password is moved to the second preset data in the dynamic password.

5. The method for encrypting and transmitting streaming media data as claimed in claim 3, characterized in that: The step of obtaining the password through the receiving end includes: Scanning the identification code displayed by the receiving end for establishing a connection with the receiving end, after establishing a connection with the receiving end, receiving information sent from the receiving end to obtain the dynamic password; or, Establishing a connection with the receiving end based on the received target information; Output prompt information for obtaining the dynamic password from the receiving end, so as to prompt the user to input the dynamic password displayed by the receiving end to obtain the dynamic password.

6. A streaming media data decryption method, characterized in that: The streaming media data decryption method comprises: receiving target streaming media data, wherein the target streaming media data is generated by sequentially sorting each sub-data in the target streaming media data; Obtaining a dynamic password for the target streaming media data according to a frame sequence of the target streaming media data; Using the data of preset digits in the dynamic password as the first target data, and using the data in the dynamic password other than the first target data as the second target data; Determine the number of shifted bits of each of the sub-data in the streaming media data according to the first target data; Acquiring configuration data, where the configuration data is determined according to the dynamic password; Performing an AND operation on the second target data and the configuration data to obtain a moving direction of each sub-data in the streaming media data; Determine the sorting position corresponding to each of the sub-data in the streaming media data according to the number of shifts and the shift direction; According to the sorting positions respectively corresponding to the sub-data in the streaming media data, the sub-data in the streaming media data are sorted to obtain the target streaming media data.

7. The streaming media data decryption method according to claim 6, characterized in that: The step of performing an AND operation on the second target data and the configuration data to obtain the moving direction of each sub-data in the streaming media data includes: When the result of the AND operation between the second target data and the configuration data is true, determining that the moving direction of each sub-data in the streaming media data is the second direction; When the result of the AND operation between the second target data and the configuration data is false, it is determined that the moving direction of each sub-data in the streaming media data is a first direction, and the first direction and the second direction are opposite directions to each other.

8. A transmitting end, characterized in that: The sending end has a processor, a memory, and a streaming media data encryption transmission program stored in the memory and executable on the processor. When the streaming media data encryption transmission program is executed by the processor, the steps of the streaming media data encryption transmission method as described in any one of claims 1 to 5 are implemented.

9. A receiving end, characterized in that: The receiving end stores a streaming media data decryption program, and when the streaming media data decryption program is executed by the processor, the steps of the streaming media data decryption method as claimed in any one of claims 6 to 7 are implemented.