A video transmission method and system for multimedia video
By using the EMD steganography algorithm to hide the information sequence during the authentication process between the receiver and the sender, the authentication problem in the DH key exchange protocol is solved, thereby improving the security and reliability of encrypted video transmission.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGDONG SOUTHERN DAILY MOBILE MEDIA CO LTD
- Filing Date
- 2025-06-30
- Publication Date
- 2026-04-10
AI Technical Summary
Before the receiving and sending ends create and distribute information keys through the DH key exchange protocol, both parties need to authenticate each other to prevent man-in-the-middle attacks.
By randomly generating information sequences and hiding them in grayscale images, the EMD steganography algorithm is used for authentication, ensuring that the information sequences are binary sequences with an equal number of 0s and 1s, thus increasing the complexity for hackers to crack the code.
It improves the security of encrypted video transmission, prevents hackers from modifying information key-protected information as a man-in-the-middle, and enhances the reliability of identity verification.
Smart Images

Figure CN120881312B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of video encryption transmission. More particularly, the present application relates to a video transmission method and system for multimedia video. BACKGROUND
[0002] With the wide application of multimedia video in the fields of education, medical treatment, security and communication, the problem of secure transmission of multimedia video in network environment is increasingly concerned.
[0003] Due to the characteristics of large volume, strong real-time performance, high continuity requirement and content sensitivity of video data, the video data is extremely vulnerable to security threats such as eavesdropping, tampering, forgery and man-in-the-middle attack in open network environment. Therefore, secure communication is performed between the receiving end and the sending end based on symmetric encryption.
[0004] However, before the secure communication can be performed, the two parties need to agree on a shared key, that is, there is a key distribution problem between the receiving end and the sending end. The DH key exchange protocol (Diffie-Hellman Key Exchange) is a way to solve the key distribution problem between the communication terminal and the group chat terminal.
[0005] However, since the DH key exchange protocol itself does not provide identity authentication of the two communication parties, the DH key exchange protocol is vulnerable to man-in-the-middle attack. If a hacker negotiates a key with the sending end in the identity of the receiving end, and negotiates a key with the receiving end in the identity of the sending end, the hacker will obtain the keys for communication with the receiving end and the sending end respectively. In this way, the hacker can modify the video protected by the information key at will in the identity of the man-in-the-middle.
[0006] Therefore, before the receiving end and the sending end create and distribute the information key through the DH key exchange protocol, the two parties need to perform identity authentication first. SUMMARY
[0007] To solve the above technical problem that the receiving end and the sending end need to perform identity authentication before creating and distributing the information key through the DH key exchange protocol, the present application provides solutions in the following aspects.
[0008] In a first aspect, the present application provides a video transmission method for multimedia video, comprising: authenticating a receiving end and a sending end, creating an information key through a DH key exchange protocol when the receiving end and the sending end are both authenticated, and using the information key for encrypted transmission of a video; the authentication process is that a to-be-authenticated end randomly generates a gray-scale image and an information sequence, the information sequence is a binary sequence and the number of digits 0 and 1 is equal; the information sequence is hidden in the gray-scale image through an EMD steganography algorithm according to the hash value of the MAC address of the to-be-authenticated end, an authentication image is obtained and sent to the authenticating end; the authenticating end extracts an authentication sequence from the received authentication image through the EMD steganography algorithm according to the hash value of the MAC address of the authenticating end stored in the authenticating end, and the to-be-authenticated end is authenticated when the authentication sequence satisfies that the number of digits 0 and 1 is equal; the process of hiding the information sequence in the gray-scale image through the EMD steganography algorithm is that the MAC address of the to-be-authenticated end is obtained, the hash value of the MAC address is divided into a plurality of binary numbers of equal length; all pixel points in the gray-scale image are grouped according to the number of the binary numbers; the gray-scale values of the pixel points in each group are adjusted so that the f value of the adjusted gray-scale values of all pixel points in each group in the EMD information hiding algorithm is equal to the secret information obtained by cutting the information sequence, and the information sequence is hidden in the gray-scale image.
[0009] The present application authenticates the two parties creating the information key through the protocol by randomly generating an information sequence and hiding the information sequence in a randomly generated gray-scale image to obtain an authentication image, and thus the complexity of hacking the authentication image is increased, and the security of the encrypted transmission of the video is improved.
[0010] Further, the present application increases the authentication process, and no matter whether a hacker negotiates a key with the receiving end as the sending end or with the sending end as the receiving end, the hacker cannot pass the authentication process and thus cannot obtain the information key for communication with the receiving end and the sending end, and the security of the encrypted transmission of the video is improved.
[0011] Preferably, the authentication of the receiving end and the sending end comprises: taking the sending end and the receiving end as a to-be-authenticated end and an authenticating end respectively, authenticating the sending end once; taking the receiving end and the sending end as a to-be-authenticated end and an authenticating end respectively, authenticating the receiving end once.
[0012] Preferably, the step of dividing the hash value of the MAC address into a plurality of binary numbers with equal length comprises the steps of: directly dividing the hash value of the MAC address into a plurality of binary numbers with equal length; otherwise, copying the hash value of the MAC address times and concatenating them in sequence to form an extended hash value, and dividing the extended hash value into a plurality of binary numbers with equal length, wherein the number of copying times is required to be and ; wherein, represents the i th binary number, represents the j th binary number corresponding to the decimal number, represents the number of binary numbers with equal length into which the hash value of the MAC address is divided, and is equal to the number of all pixel points in the grayscale image.
[0013] The present application ensures that all pixel points in the grayscale image are completely grouped by copying the hash value of the MAC address multiple times.
[0014] Preferably, the step of grouping all pixel points in the grayscale image according to the number determined by each binary number comprises the steps of: determining the number of all pixel points in the i th group, grouping the i th pixel point to the j th pixel point into the i th group, wherein, , , , , respectively represent the i th binary number and the j th binary number, , respectively represent the i th binary number , and the j th binary number corresponding to the decimal number.
[0015] The present application divides all pixel points in the grayscale image into a plurality of groups according to the hash values of the MAC addresses of the receiving end and the sending end which cannot be obtained by hackers, and the number of pixel points in different groups is different, adjusts the grayscale values of the pixel points in each group to hide the information sequence, and can realize identity authentication of both parties creating the information key of the protocol, thereby improving the security of video encryption transmission.
[0016] Preferably, the adjusting the gray scale values of the pixel points in each group comprises: the value range of the gray scale value adjustment amount is [-4, 4], and the adjusted gray scale value of the pixel point is required to be in the range of [0, 255]; the gray scale value adjustment amount of the adjustment mode is equal to the sum of the gray scale value adjustment amounts of all the pixel points in the group, the gray scale value adjustment amount of the pixel point is equal to the absolute value of the difference between the adjusted gray scale value and the original gray scale value of the pixel point; if there is only one adjustment mode, the gray scale values of the pixel points in each group are directly adjusted according to the adjustment mode to obtain the adjusted gray scale values of all the pixel points in each group; if there are multiple adjustment modes, the gray scale values of the pixel points in each group are adjusted according to the adjustment mode with the smallest gray scale value adjustment amount to obtain the adjusted gray scale values of all the pixel points in each group.
[0017] According to the application, the adjustment mode is selected according to the gray scale value adjustment amount, so that the gray scale image has no obvious change in vision, the concealment of steganography is enhanced, the image quality is maintained while the information integrity is ensured, and the possibility of being recognized as abnormal by an image detection tool is reduced.
[0018] Preferably, the method for obtaining the f value of the adjusted gray scale value of all the pixel points in each group in the EMD information hiding algorithm is: ; in the formula, is the adjusted gray scale value of the first pixel point in the first group in the EMD information hiding algorithm, is the number of all the pixel points in the first group, is the adjusted gray scale value of the first pixel point in the first group, is the weight of the first pixel point in the first group, is a modulus operator; wherein the weights of the first pixel points in each group are all equal to 1, and the weights of all the remaining pixel points are all equal to 2, is the number of all the pixel points in the first group,
[0019] Preferably, the secret information cut from the information sequence comprises: converting the information sequence into a quinary number; and taking each bit of the quinary number corresponding to the information sequence as a secret information.
[0020] Preferably, the verification terminal extracts a verification sequence from the received verification image according to the hash value of the MAC address of the trusted terminal stored by the verification terminal through the EMD steganography algorithm, and when the verification sequence satisfies the condition that the number of 0 and 1 is equal, the terminal to be verified passes the authentication, including: for the hash value of the MAC address of all trusted terminals stored by the verification terminal, a verification sequence is extracted from the received verification image according to the hash value of the MAC address of each trusted terminal through the EMD steganography algorithm; for all extracted verification sequences, when there is a verification sequence satisfying the condition that the number of 0 and 1 is equal, the terminal to be verified passes the authentication.
[0021] The verification terminal multi-candidate comparison mechanism created by the application supports one-to-many identity authentication scenarios, while avoiding misjudgment and improving the success rate of verification.
[0022] Preferably, the verification terminal extracts a verification sequence from the received verification image according to the hash value of the MAC address of the trusted terminal stored by the verification terminal through the EMD steganography algorithm, and when the verification sequence satisfies the condition that the number of 0 and 1 is equal, the terminal to be verified passes the authentication, including: for the hash value of the MAC address of all trusted terminals stored by the verification terminal, a verification sequence is extracted from the received verification image according to the hash value of the MAC address of each trusted terminal through the EMD steganography algorithm; for all extracted verification sequences, when there is a verification sequence satisfying the condition that the number of 0 and 1 is equal, the terminal to be verified passes the authentication.
[0023] In a second aspect, the application provides a video transmission system for multimedia video, comprising a processor and a memory, the memory storing computer program instructions, when the computer program instructions are executed by the processor, realizing the above-mentioned video transmission method for multimedia video.
[0024] By adopting the above technical solution, the above-mentioned video transmission method for multimedia video generates a computer program and is stored in the memory to be loaded and executed by the processor, so as to manufacture a terminal device according to the memory and the processor, and facilitate use.
[0025] The application has the following advantages:
[0026] The application obtains a verification image by randomly generating an information sequence and hiding in a randomly generated gray image, so as to verify the identity of both parties of the protocol creating an information key, since only the information sequence is required to be a binary sequence and the number of digital 0 and digital 1 is equal, therefore, the information sequence of different receiving ends and sending ends when verifying the identity can be different, and the information sequence of the same receiving end and sending end when verifying the identity each time can be different, so as to increase the complexity of hacking the verification image, and further improve the security of video encryption transmission; further, by increasing the identity verification process, whether the hacker negotiates the key with the receiving end as the identity of the receiving end and the sending end, or negotiates the key with the receiving end as the identity of the sending end and the receiving end, it is impossible to pass the identity verification process, so as to obtain the information key for communication with the receiving end and the sending end, and further cannot modify the information protected by the information key as the identity of the intermediate person, so as to improve the security of video encryption transmission. BRIEF DESCRIPTION OF DRAWINGS
[0027] Figure 1 is a flow chart schematically showing a video transmission method for multimedia video in the application;
[0028] Figure 2 is a flow chart schematically showing the identity verification in step S1. DETAILED DESCRIPTION
[0029] The technical solutions in the embodiments of the application will be clearly and completely described below with reference to the drawings in the embodiments of the application. Obviously, the described embodiments are only part of the embodiments of the application, rather than all the embodiments of the application. Based on the embodiments in the application, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the application.
[0030] The specific embodiments of the application will be described in detail below with reference to the drawings.
[0031] The embodiments of the application disclose a video transmission method for multimedia video, referring to Figure 1 , including steps S1-S3:
[0032] In video transmission, the party responsible for collecting, encoding and sending video data is the sending end, and the party responsible for receiving, decoding and playing video data is the receiving end; the receiving end and the sending end perform secure communication based on symmetric encryption, in this process, both parties need to hold a shared key, only in this way, the information encrypted by any party can be decrypted by the other party using the same key, but before being able to communicate securely, both parties need to agree on a shared key, that is, there is a key distribution problem between the receiving end and the sending end.
[0033] The DH key exchange protocol (Diffie-Hellman Key Exchange) is a way to solve the key distribution problem between the receiving end and the sending end; the process of the DH key exchange protocol for key distribution is as follows:
[0034] (1) The receiving end and the sending end each create a key pair in accordance with the DH key exchange protocol, assuming that the key pair of the receiving end is (private key A, public key A), and the key pair of the sending end is (private key B, public key B);
[0035] (2) Both parties send their public keys to each other, even if a hacker listens, the hacker can only get the public key A and the public key B;
[0036] (3) The receiving end calculates the information key S using its own private key and the public key of the sending end, i.e. DH (private key A, public key B) = key S;
[0037] (4) The sending end calculates the information key S using its own private key and the public key of the receiving end, i.e. DH (private key B, public key A) = key S;
[0038] (5) Both parties determine the negotiation key S at the same time, and subsequently derive the information key through the negotiation key S to carry out encrypted communication.
[0039] (6) Since the hacker only knows the public key A and the public key B, and does not know the private key of either party, it cannot calculate the key S.
[0040] However, since the DH key exchange protocol itself does not provide identity verification for both parties, the DH key exchange protocol is vulnerable to man-in-the-middle attacks. If a hacker negotiates a key with the receiving end as the sending end, and negotiates a key with the sending end as the receiving end, the hacker will obtain the keys for communication with the receiving end and the sending end, respectively. In this way, the hacker can modify the information protected by the information key as a man-in-the-middle.
[0041] Therefore, before the receiving end and the sending end create and distribute the information key through the DH key exchange protocol, the sending end and the receiving end need to perform identity verification first. By adding the identity verification process, whether a hacker negotiates a key with the receiving end or the sending end as the other party, it will not be able to obtain the information key for communication because it cannot pass the identity verification process, and thus cannot modify the information protected by the information key as a man-in-the-middle, thereby improving the security of video encrypted transmission.
[0042] S1, identity verification of the receiving end and the sending end.
[0043] S2, when the receiving end and the sending end have passed the identity verification, create the information key through the DH key exchange protocol.
[0044] S3, encrypting and transmitting the video by the information key.
[0045] Wherein, the identity authentication of the receiving end and the sending end comprises: taking the sending end and the receiving end as a to-be-authenticated end and an authenticating end respectively, performing one-time identity authentication on the sending end; taking the receiving end and the sending end as a to-be-authenticated end and an authenticating end respectively, performing one-time identity authentication on the receiving end; when the sending end and the receiving end are trusted terminals, the receiving end and the sending end can pass the identity authentication, and then create an information key by a DH key exchange protocol, and encrypt and transmit the video by the information key.
[0046] For the flowchart of the identity authentication in step S1, refer to Figure 2 , comprising steps S101 to S103, specifically:
[0047] S101, the to-be-authenticated end randomly generates a gray image and an information sequence.
[0048] Wherein, for the generated gray image, the size of the gray image is equal to 1920pxx960px, px (pixel) is the smallest image unit, the gray value of all pixel points in the gray image is in the range of [0, 255], and all pixel points in the gray image are sorted in a zigzag scanning order.
[0049] Wherein, for the generated information sequence, the essence of the information sequence is a binary sequence composed of digital 0 and 1, and the number of digital 0 and digital 1 is equal.
[0050] It should be noted that, in this embodiment, a verification image is obtained by randomly generating an information sequence and hiding it in a randomly generated gray image, so as to authenticate the two parties creating the information key by the protocol; since only the number of digital 0 and digital 1 in the information sequence is required to be equal, the information sequence when different receiving ends and sending ends perform identity authentication can be different, and the information sequence when the same receiving end and sending end perform identity authentication each time can be different, which increases the complexity of hacking the verification image, and further improves the security of video encryption transmission.
[0051] S102, according to the hash value of the MAC address of the to-be-authenticated end, hide the information sequence in the gray image by EMD steganography algorithm, obtain the verification image and send it to the authenticating end.
[0052] Specifically, the MAC address of the to-be-verified end is acquired, and the hash value of the MAC address is divided into a plurality of binary numbers with equal length; all pixel points in the grayscale image are grouped according to the number determined by each binary number; the grayscale values of the pixel points in each group are adjusted, so that the f value of the adjusted grayscale values of all pixel points in each group in the EMD information hiding algorithm is equal to the secret information intercepted from the information sequence, and the information sequence is hidden in the grayscale image.
[0053] 1. Acquire the MAC address of the to-be-verified end.
[0054] Specifically, the MAC address (Media Access Control Address) is a physical address uniquely identifying a network device, and is used to identify the device connected to the network in a local area network (LAN); any sending end or receiving end has a unique MAC address; the hash value of the MAC address is obtained by operating the MAC address by a hash function SHA256, and the obtained hash value is essentially a binary number with a length of 256 composed of digits 0 and 1.
[0055] It should be noted that for any length of information, the hash function SHA256 will generate a 256-bit hash value, and the hash function SHA256 is a known technology, which will not be described here.
[0056] 2. Divide the hash value of the MAC address into a plurality of binary numbers with equal length.
[0057] It should be noted that the number of grouping all pixel points in the grayscale image is set by the hash value of the MAC address in this embodiment, in order to ensure that all pixel points in the grayscale image are completely grouped, it is required that the sum of the decimal numbers corresponding to all binary numbers with equal length obtained by division is greater than or equal to the number of all pixel points in the grayscale image.
[0058] Specifically, the hash value of the MAC address is divided into a plurality of binary numbers with a length equal to a preset length, and a plurality of binary numbers with equal length are obtained.
[0059] The specific value of the preset length can be set according to the actual application scene and requirements, and the preset length is an integer in the range of [1, 4], and the preset length is set to 3 in this embodiment.
[0060] Further, for all binary numbers with equal length:
[0061] (1) in response to , the hash value of the MAC address is directly divided into a plurality of binary numbers with equal length.
[0062] wherein, The number of binary numbers of equal length that the hash value of the MAC address is divided into, represents the th binary number, represents the th binary number corresponding decimal number, is equal to the number of all pixel points in the grayscale image.
[0063] (2) in response to , the hash value of the MAC address is copied times and spliced in order to form an extended hash value, and the extended hash value is divided into a plurality of binary numbers of equal length.
[0064] wherein, for the number of copying times , it is required that and .
[0065] It should be noted that the embodiment determines the number of pixel points in each group by intercepting binary numbers from the hash value of the MAC address, divides all pixel points in the grayscale image into a plurality of groups, increases the complexity of hiding the information sequence in the grayscale image, increases the difficulty of hacking the information sequence hiding method, and improves the security of video encryption transmission.
[0066] 3. Group all pixel points in the grayscale image according to the number determined by each binary number.
[0067] Specifically, the result of adding 1 to the decimal corresponding to each binary number is used as the number for grouping all pixel points in the grayscale image, that is, the th pixel point to the th pixel point forms the th group, and the number of all pixel points in the th group is , represents the th binary number.
[0068] wherein, , represent the th binary number and the th binary number, , represent the th binary number , the th binary number corresponding decimal number.
[0069] Exemplarily, the preset length is 3, the hash value of the MAC address is 100101100101111101010001010010, and the gray values of all pixel points in the randomly generated gray image are in turn: 35, 72, 12, 5, 200, 103, 110, 92, 40, 250, 55, 173, …, 203. The method for obtaining the first group is: extracting the binary number with the length of 3 from the hash value of the MAC address , corresponding to the decimal 4. The number of all pixel points in the first group is . The first group is finally composed of the first pixel point to the fifth pixel point in the gray image, and the gray values of all pixel points in the first group are in turn: 35, 72, 12, 5, 200.
[0070] 4, the secret information extracted from the information sequence.
[0071] It should be noted that in the EMD information hiding algorithm, since the divisor when calculating the f value is 5, the value range of the embedded secret information is required to be [0, 4], therefore, the information sequence is converted into a quinary number, so as to extract the secret information therefrom.
[0072] Specifically, the information sequence is converted into a quinary number; and each bit on the quinary number corresponding to the information sequence is taken as a secret information.
[0073] Exemplarily, when the information sequence is “110010100101”, the quinary number corresponding to the information sequence is “100422”.
[0074] 5, the gray values of the pixel points in each group are adjusted, so that the f value of the adjusted gray values of all pixel points in each group in the EMD information hiding algorithm is equal to the secret information extracted from the information sequence, thereby realizing the hiding of the information sequence in the gray image.
[0075] Specifically, the gray values of the pixel points in the first group are adjusted, so that the f value of the adjusted gray values of all pixel points in the first group in the EMD information hiding algorithm is equal to the first secret information extracted from the information sequence, thereby realizing the hiding of the first secret information in the first group; by hiding one secret information in each group, the information sequence is realized to be hidden in the gray image.
[0076] The f value of the adjusted gray scale value of all pixel points in each group in the EMD information hiding algorithm is calculated according to the following formula:
[0077] ;
[0078] In the formula, is the f value of the adjusted gray scale value of all pixel points in the i th group in the EMD information hiding algorithm, is the number of all pixel points in the i th group, is the adjusted gray scale value of the j th pixel point in the i th group, is the weight of the j th pixel point in the i th group, is a modulus operator. In the formula, for the weight of the pixel point, the weights of the first j pixel points in each group are all equal to 1, and the weights of all the remaining pixel points are all equal to 2,
[0079] is the number of all pixel points in the i th group, represents rounding up.
[0080] In the formula, when the gray scale values of the pixel points in each group are adjusted:
[0081] (1) the value range of the adjustment amount of the gray scale value is [-4, 4], and the adjusted gray scale value of the pixel point is required to be in the range of [0, 255];
[0082] (2) if there is only one adjustment mode, the gray scale values of the pixel points in each group are directly adjusted according to the adjustment mode, and the adjusted gray scale values of all pixel points in each group are obtained.
[0083] (3) if there are multiple adjustment modes, the gray scale values of the pixel points in each group are adjusted according to the adjustment mode with the smallest adjustment amount of the gray scale value, and the adjusted gray scale values of all pixel points in each group are obtained.
[0084] (4) in the formula, the adjustment amount of the gray scale value of the adjustment mode is equal to the sum of the adjustment amounts of the gray scale values of all pixel points in the group, and the adjustment amount of the gray scale value of the pixel point is equal to the absolute value of the difference between the adjusted gray scale value and the original gray scale value of the pixel point.
[0085] It should be noted that the adjustment mode is selected according to the adjustment amount of the gray scale value, so that the gray scale image has no obvious change in vision, the concealment of steganography is enhanced, the information integrity and image quality can be ensured at the same time, and the possibility of being recognized as abnormal by an image detection tool is reduced.
[0086] Exemplarily, the gray values of all pixel points in the first group are 35, 72, 12, 5 and 200 respectively, and the quinary number corresponding to the information sequence is “100422”. The first secret information is the first bit “1” of the information sequence. (1) When the adjusted gray values of the pixel points are 34, 71, 11, 5 and 200 respectively, the f value of the adjusted gray values of all pixel points in the first group in the EMD information hiding algorithm is
[0087] =(34×1+71×1+11×1+5×2+200×2)mod(5)=(526)mod(5)=1, which is equal to the first secret information “1” obtained by cutting the information sequence, and thus one adjustment mode of the first group is obtained. (2) When the adjusted gray values of the pixel points are 35, 71, 12, 3 and 200 respectively, the f value of the adjusted gray values of all pixel points in the first group in the EMD information hiding algorithm is =(35×1+71×1+12×1+3×2+200×2)mod(5)=(526)mod(5)=1, which is equal to the first secret information “1” obtained by cutting the information sequence, and thus another adjustment mode of the first group is obtained.
[0088] (3) For the first adjustment mode, the gray value adjustment amount of the adjustment mode is equal to |-1|+|-1|+|-1|+0+0=3; for the second adjustment mode, the gray value adjustment amount of the adjustment mode is equal to 0+|-1|+0+|-1|+0=2; thus, the second adjustment mode is selected to adjust the gray values of the pixel points in the second group, and the adjusted gray values of all pixel points in the second group are 35, 71, 12, 3 and 200 respectively.
[0089] S103, the verification terminal extracts a verification sequence from the received verification image according to the stored hash value of the MAC address of the trusted terminal through the EMD steganography algorithm, and when the verification sequence satisfies that the number of 0 and 1 is equal, the terminal to be verified passes the authentication.
[0090] S103, the verification terminal extracts a verification sequence from the received verification image according to the stored hash value of the MAC address of the trusted terminal through the EMD steganography algorithm, and when the verification sequence satisfies that the number of 0 and 1 is equal, the terminal to be verified passes the authentication.
[0091] The trusted terminal refers to an authenticated, authorized, and trusted device or client, and is used to describe terminal devices that are allowed to access sensitive network resources, perform specific operations, or process critical data. In a communication system, the trusted terminal of the sending end refers to terminal devices or service nodes that are authorized, authenticated, in compliance with security policies, and allowed to receive data. The trusted terminal of the receiving end refers to devices or clients that are authorized, authenticated, have a legal identity, and are allowed to send data to the receiving end.
[0092] Specifically, for the hash value of the MAC address of each trusted terminal stored by the verification end, a verification sequence is extracted from the received verification image through the EMD steganography algorithm according to the hash value of the MAC address of each trusted terminal in turn. When there is a verification sequence that satisfies the condition that the number of digits 0 and 1 is equal, the terminal to be verified passes the authentication.
[0093] It should be noted that the present embodiment realizes one-to-many authentication by creating a multi-candidate comparison mechanism for the verification end, while avoiding misjudgment and improving the success rate of verification.
[0094] The EMD steganography algorithm is used to extract a verification sequence from the received verification image, including: obtaining the MAC address of the trusted terminal stored by the verification end, and dividing the hash value of the MAC address into multiple binary numbers of equal length; grouping all pixel points in the received verification image according to the number determined by each binary number; calculating the f value of all pixel points in each group in the EMD information hiding algorithm; concatenating all f values into a quinary number; and taking the binary number corresponding to the concatenated quinary number as the verification sequence extracted from the received verification image.
[0095] It should be noted that since the sending end and the receiving end are mutually trusted terminals, only the real sending end and the receiving end store the hash value of the MAC address of the other party, and the hacker does not have the hash value of the MAC address of the sending end and the receiving end. If the hacker wants to negotiate a key with the receiving end as the sending end, the hacker sends a false verification image to the receiving end without hiding information sequences or randomly hides an incorrect information sequence. The receiving end cannot extract a verification sequence from the received verification image according to the stored hash value of the MAC address of the sending end. Even if the verification sequence can be extracted, it will not pass the authentication because the extracted verification sequence does not satisfy the condition that the number of digits 0 and 1 is equal. If the hacker wants to negotiate a key with the sending end as the receiving end, it will also fail to pass the authentication for the same reason.
[0096] It needs to be further explained that, by adding the identity authentication process, whether the hacker negotiates the key with the receiving end as the sending end or negotiates the key with the sending end as the receiving end, the hacker cannot obtain the information key for communication with the receiving end and the sending end through the identity authentication process of steps S1 to S3, and cannot modify the information protected by the information key as an intermediate person, thereby improving the security of video encryption transmission.
[0097] The embodiment of the application further discloses a video transmission system for multimedia video, comprising a processor and a memory, and the memory stores computer program instructions which, when executed by the processor, implement the video transmission method for multimedia video according to the application.
[0098] The system further comprises a communication bus and a communication interface and other components well known to those skilled in the art, the settings and functions of which are known in the art, and thus will not be described here.
Claims
1. A video transmission method for multimedia video, characterized in that, include: The receiver and sender are authenticated. Once both are authenticated, a message key is created using the DH key exchange protocol for encrypted video transmission. The authentication process is as follows: the terminal to be authenticated randomly generates a grayscale image and an information sequence, wherein the information sequence is a binary sequence and the number of 0s and 1s is equal; based on the hash value of the MAC address of the terminal to be authenticated, the information sequence is hidden in the grayscale image using the EMD steganography algorithm to obtain the authentication image and send it to the authentication terminal; the authentication terminal extracts the authentication sequence from the received authentication image using the EMD steganography algorithm based on the hash value of the MAC address of the stored trusted terminal; when the number of 0s and 1s in the authentication sequence is equal, the terminal to be authenticated passes the authentication. The process of hiding the information sequence in the grayscale image using the EMD steganography algorithm is as follows: obtain the MAC address of the terminal to be verified, and divide the hash value of the MAC address into multiple binary numbers of equal length; Based on the quantity determined by each binary number, all pixels in the grayscale image are grouped; the grayscale values of the pixels in each group are adjusted so that the f-value of the adjusted grayscale values of all pixels in each group in the EMD information hiding algorithm is equal to the secret information extracted from the information sequence, including: The information sequence is converted into a quinary number; each digit of the quinary number corresponding to the information sequence is used as a secret information, thus hiding the information sequence in a grayscale image; The method for obtaining the f-value of the adjusted grayscale values of all pixels in each group in the EMD information hiding algorithm is as follows: In the formula, For the first The f-value of the adjusted grayscale values of all pixels in each group in the EMD information hiding algorithm. For the first The number of all pixels in each group For the first The first group The grayscale value after adjusting each pixel For the first The first group The weight of each pixel, The modulo operator; where the first group is the modulo operator. The weight of each of the first 1 pixels is equal to 1, and the weight of the remaining pixels is equal to 2. For the first The number of all pixels in each group This indicates rounding up to the nearest integer.
2. The video transmission method for multimedia video according to claim 1, characterized in that, The authentication of the receiving and sending ends includes: The sender and receiver are respectively designated as the verifier and the authentication end, and the sender is authenticated once. The receiver and sender are designated as the authentication endpoint and the verification endpoint, respectively, and the receiver is authenticated once.
3. The video transmission method for multimedia video according to claim 1, characterized in that, The process of dividing the hash value of the MAC address into multiple binary numbers of equal length includes: In response to Alternatively, the hash value of the MAC address can be directly divided into multiple binary numbers of equal length; otherwise, the hash value of the MAC address can be copied. The data is then concatenated sequentially to form the expanded hash value, which is then divided into multiple binary numbers of equal length, based on the number of copies. ,Require and ;in, Indicates the first A binary number, Indicates the first binary numbers The corresponding decimal number, This indicates the number of equally long binary digits that divide the hash value of the MAC address. It equals the number of all pixels in a grayscale image.
4. The video transmission method for multimedia video according to claim 1, characterized in that, The step of grouping all pixels in the grayscale image according to the quantity determined by each binary number includes: No. The number of all pixels in each group , will the From the pixel to the The first pixel is composed of the second pixel. There are 10 groups, among which... , They represent the first The binary number and the first A binary number, , They represent the first binary numbers , No. binary numbers The corresponding decimal number.
5. A video transmission method for multimedia video according to claim 1, characterized in that, The adjustment of the grayscale values of pixels in each group includes: The grayscale value adjustment range is [-4, 4], and the grayscale value of the adjusted pixel is required to be in the range of [0, 255]. The grayscale value adjustment amount of the adjustment method is equal to the sum of the grayscale value adjustment amounts of all pixels in the group, and the grayscale value adjustment amount of a pixel is equal to the absolute value of the difference between the grayscale value of the pixel after adjustment and the grayscale value before adjustment. If only one adjustment method exists, the grayscale values of the pixels in each group are adjusted directly according to that adjustment method to obtain the adjusted grayscale values of all pixels in each group. If multiple adjustment methods exist, the grayscale values of the pixels in each group are adjusted according to the method with the smallest grayscale value adjustment, so as to obtain the adjusted grayscale values of all pixels in each group.
6. A video transmission method for multimedia video according to claim 1, characterized in that, The verification terminal extracts a verification sequence from the received verification image using the EMD steganography algorithm based on the hash value of the stored trusted terminal's MAC address. When the verification sequence satisfies the condition that the number of 0s and 1s is equal, the terminal to be verified passes the authentication, including: For the hash values of the MAC addresses of all trusted terminals stored at the verification end, a verification sequence is extracted from the received verification image in turn based on the hash value of the MAC address of each trusted terminal using the EMD steganography algorithm. For all extracted verification sequences, when there is a verification sequence that satisfies the condition that the number of digits 0 and 1 is equal, the end to be verified passes the authentication.
7. A video transmission method for multimedia video according to claim 6, characterized in that, The step of extracting a verification sequence from the received verification image using the EMD steganography algorithm includes: Obtain the MAC address of the trusted terminal stored in the verification terminal, divide the hash value of the MAC address into multiple binary numbers of equal length, and group all pixels in the received verification image according to the quantity determined by each binary number. Calculate the f-value of the grayscale value of all pixels in each group in the EMD information hiding algorithm; concatenate all f-values into a quinary number; use the binary number corresponding to the concatenated quinary number as the verification sequence extracted from the received verification image.
8. A video transmission system for multimedia video, characterized in that, include: A processor and a memory, the memory storing computer program instructions that, when executed by the processor, implement a video transmission method for multimedia video according to any one of claims 1-7.
Citation Information
Patent Citations
Image self-authentication method based on hash function and information hiding
CN114782238A
Optimally hidden dual-protection text method
CN116582314A