Audio and video mixed digital multi-code encryption method

Through the combination of AVSync audio and video synchronization technology and AES/RSA encryption algorithm, it solves the problem of uneven processing caused by audio and video out-of-synchronization and differences in encoding rules, achieves efficient audio and video signal synchronization and encryption, and improves data protection and user experience. quality.

CN118695002AInactive Publication Date: 2024-09-24NANTIANSHUJIN (BEIJING) INFORMATION IND DEV CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410369619.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-28
Publication Date
2024-09-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The audio and video encoding rules in the existing technology are different, which leads to uneven program complexity when processing noise reduction, noise elimination, and clarity improvement. Audio and video desynchronization is prone to occur, which increases the technical difficulty in the integrated encoding and transmission process. Affects user experience and real-time performance.

Method used

It adopts AVSync audio and video synchronization technology combined with AES and RSA encryption algorithms, combines symmetric encryption and asymmetric encryption, uses hybrid encryption technology to ensure audio and video data synchronization, and uses TLS transmission protocol and NTP clock synchronization protocol to ensure that the encryption process will not As a result, the audio and video are out of sync.

Benefits of technology

It achieves efficient synchronization processing and encryption of audio and video signals, improves data protection security and user experience, and especially provides a higher level of data protection and call quality in advanced video conferencing scenarios.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The invention relates to the technical field of data encryption, and discloses an audio and video mixed digital multi-code encryption method, which comprises the following steps: S1, an initialization stage: adopting an AVSync audio and video synchronization technology as a basis to ensure that audio and video streams can be kept synchronous in processing and transmission processes, and using an AES encryption algorithm to ensure that the audio and video streams are synchronous in the processing and transmission processes; according to the audio and video mixed digital multi-code encryption method, symmetric encryption is realized by using the same secret key when data are encrypted and decrypted, the audio and video mixed digital multi-code encryption method is specially used for different coding rules and processing requirements of audios and videos, the denoising, color correction and definition improvement processes are more efficient through an optimization algorithm, and the encryption efficiency is improved. And meanwhile, the synchronism of audio and video signals is ensured, multiple encryption strategies are used, the security can be enhanced on the premise that the processing speed is not sacrificed, and the method can provide higher-level data protection for scenes with high confidentiality and strict requirements for synchronism compared with the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data encryption, in particular to an audio and video hybrid digital multi-code encryption method. Background Art

[0002] Data encryption is a technology with a long history. It refers to converting plaintext into ciphertext through encryption algorithms and encryption keys, while decryption refers to restoring ciphertext to plaintext through decryption algorithms and decryption keys. Its core is cryptography. Data encryption is still the most reliable way for computer systems to protect information. It uses cryptographic technology to encrypt information and achieve information hiding, thereby playing a role in protecting information security.

[0003] In the prior art, due to the differences in audio and video coding rules, the complexity of the procedures for noise reduction, noise elimination and clarity improvement varies, resulting in uneven processing speed and effect. In particular, audio and video asynchrony is prone to occur during signal processing, increasing the technical difficulty of integrating coding and transmission. This mismatch will result in a poor user experience, especially in real-time communications such as video conferencing, where audio and video asynchrony will seriously affect the quality of communication, and may increase the computing load of the data processing system, slow down signal processing, and affect real-time performance.

[0004] Therefore, those skilled in the art provide an audio and video hybrid digital multi-code encryption method to solve the problems raised in the above background technology. Summary of the invention

[0005] To achieve the above object, the present invention provides the following technical solution: an audio and video hybrid digital multi-code encryption method, the encryption method comprising the following steps:

[0006] S1 initialization phase: AVSync audio and video synchronization technology is used as the basis to ensure that the audio and video streams can be synchronized during processing and transmission. The AES encryption algorithm is used to implement symmetric encryption by using the same key when encrypting and decrypting data, and a 256-bit key length is defined;

[0007] S2 encoding and preprocessing stage: audio and video signals are subjected to advanced noise reduction and clarity enhancement processing, and the processed audio and video signals are encoded and converted into a format suitable for transmission;

[0008] S3 encryption preparation stage: Use the RSA encryption algorithm to generate public and private key pairs, establish a scheme based on different content elements using different encryption keys or strategies, use one key for the video background and another for the main body of the video foreground; similarly, use layered encryption for audio;

[0009] S4 synchronization encryption stage: Using hybrid encryption technology, audio and video data are quickly encrypted through AES symmetric encryption, and RSA asymmetric encryption is used to encrypt the symmetric key itself and transmit it to the receiver. In addition, the NTP clock synchronization protocol is combined to ensure that the encryption process does not cause audio and video to be out of sync;

[0010] S5 transmits encrypted content: the encrypted audio and video data is sent to the receiver via the TLS transmission protocol;

[0011] S6 decryption phase: first decrypt the symmetric key used for audio and video data decryption, and then use the obtained symmetric key to decrypt the audio and video stream data;

[0012] S7 display and playback stage: Use the corresponding encoder to decode the audio and video data and complete the conversion from encrypted signal to playback signal. Finally, the audio and video content will be displayed or played to ensure that the receiving end user can obtain the same audio and video conferencing experience.

[0013] 2. Preferably, the AVSync audio and video synchronization technology in step S1 refers to ensuring synchronization between audio and video data when playing or processing them, so that the audience will not experience mismatch between picture and sound when watching the video. In practical applications, due to delays in the processing and transmission of audio and video data, a series of technical means need to be adopted to achieve audio and video synchronization to provide a better user experience, including:

[0014] Timestamp synchronization: by adding timestamps to audio and video data and synchronizing playback based on the timestamps, ensuring that they are displayed in the correct order;

[0015] Buffer Adjustment: Minimize latency and improve synchronization by adjusting the buffer size and filling method of audio and video data;

[0016] Network synchronization: For audio and video data transmitted over the network, the NTP synchronization protocol and technology are used to ensure the synchronization of audio and video data during network transmission;

[0017] Time base calibration: By calibrating the time base of the device, synchronization problems caused by inconsistent device clocks can be eliminated;

[0018] Clock synchronization: Ensure the clock accuracy and synchronization of audio and video devices to reduce synchronization issues introduced by the devices themselves.

[0019] Preferably, the operation process of the AES encryption algorithm in step S1 includes four main steps: key expansion, initial round key addition, repeated round key addition, and final round key addition. Each step involves several specific processes: before the initial round, the original data is subjected to an addition operation with the key; next, there are multiple rounds (10 rounds, 12 rounds, or 14 rounds, depending on the key length) of encryption processing, and each round includes byte substitution, row shift, column confusion, and round key addition; at the end, the final round key addition is performed, and column confusion is not carried out in this round. These operations together constitute the block encryption process of the AES algorithm, ensuring the security and reliability of data encryption.

[0020] Preferably, the RSA encryption algorithm in step S3 is divided into key generation, encryption, and decryption steps, which include:

[0021] (1) Key generation: Select two large prime numbers p and q, which should be large enough so that it is infeasible to factor p and q based on their product n = p * q;

[0022] Calculate the Euler's totient function of n, φ(n) = (p - 1)(q - 1);

[0023] Select an integer e as the public key exponent, which must satisfy 1 < e < φ(n) and e and φ(n) are relatively prime (the most commonly used public key exponent is the small prime number 65537 because of its high efficiency in encryption and decryption operations);

[0024] Determine the private key exponent d, which needs to satisfy d * e ≡ 1 (mod φ(n)) or is the inverse of e modulo φ(n);

[0025] After completion, the public key contains (n, e), and the private key contains (n, d).

[0026] (2) Encryption: To encrypt the message m using the public key (n, e) (here m is a number, usually the text message is converted into a number through a certain protocol), perform the following operations:

[0027] Ensure that the message m is less than n;

[0028] Calculate the ciphertext c using the formula c = m ^ e mod n;

[0029] After encryption, c can be securely transmitted to the recipient.

[0030] (3) Decryption: Once the recipient receives the ciphertext c, they can use the private key (n, d) to decrypt the message through the following operations:

[0031] Decrypt the ciphertext c using d in the private key, and the calculation is m = c ^ d mod n;

[0032] Convert the decrypted number m back to the original message format.

[0033] Preferably, the noise reduction algorithm in step S2 is median filtering, which sorts the pixels according to the grayscale value and then selects the middle value as the new pixel value, which is suitable for removing salt and pepper noise, etc.

[0034] Preferably, the NTP (Network Time Protocol) in step S4 is a protocol for computer time synchronization, which enables computers to communicate with a time reference source through a distributed computer network to calibrate clocks around the world. The NTP client will measure network delays and clock deviations with high precision, and adjust its local clock based on these measurement results to be close to the time of the reference source, thereby ensuring coordinated and consistent time maintenance among computer systems worldwide.

[0035] Preferably, the TLS (Transport Layer Security Protocol) in step S5 is a standard protocol that provides confidentiality and data integrity for network communications. It ensures that data will not be eavesdropped or tampered with when it is transmitted from one endpoint to another on the Internet by encrypting the data before transmitting it. The TLS protocol is widely used in communications between Web browsers and servers (such as secure HTTPS connections), as well as other network applications that need to protect data security, and provides key functions such as authentication, encryption, and data integrity verification.

[0036] Compared with the prior art, the present invention provides an audio and video hybrid digital multi-code encryption method, which has the following beneficial effects:

[0037] 1. This audio and video hybrid digital multi-code encryption method is specifically designed for the different encoding rules and processing requirements of audio and video. By optimizing the algorithm, the denoising, color correction and clarity enhancement processes are made more efficient, while ensuring the synchronization of audio and video signals. The use of multiple encryption strategies can enhance security without sacrificing processing speed. This method can provide a higher level of data protection than existing technologies for scenarios with high confidentiality and strict synchronization requirements, such as advanced video conferencing, to ensure the privacy of information transmission and the quality of the overall call experience. DETAILED DESCRIPTION

[0038] The technical solutions in the embodiments of the present invention are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0039] Example

[0040] An audio and video mixed digital multi-code encryption method, the encryption method comprises the following steps:

[0041] S1 initialization phase: AVSync audio and video synchronization technology is used as the basis to ensure that the audio and video streams can be synchronized during processing and transmission. The AES encryption algorithm is used to implement symmetric encryption by using the same key when encrypting and decrypting data, and a 256-bit key length is defined;

[0042] S2 encoding and preprocessing stage: audio and video signals are subjected to advanced noise reduction and clarity enhancement processing, and the processed audio and video signals are encoded and converted into a format suitable for transmission;

[0043] S3 encryption preparation stage: Use the RSA encryption algorithm to generate public and private key pairs, establish a scheme based on different content elements using different encryption keys or strategies, use one key for the video background and another for the main body of the video foreground; similarly, use layered encryption for audio;

[0044] S4 synchronization encryption stage: Using hybrid encryption technology, audio and video data are quickly encrypted through AES symmetric encryption, and RSA asymmetric encryption is used to encrypt the symmetric key itself and transmit it to the receiver. In addition, the NTP clock synchronization protocol is combined to ensure that the encryption process does not cause audio and video to be out of sync;

[0045] S5 transmits encrypted content: the encrypted audio and video data is sent to the receiver via the TLS transmission protocol;

[0046] S6 decryption phase: first decrypt the symmetric key used for audio and video data decryption, and then use the obtained symmetric key to decrypt the audio and video stream data;

[0047] S7 display and playback stage: Use the corresponding encoder to decode the audio and video data and complete the conversion from encrypted signal to playback signal. Finally, the audio and video content will be displayed or played to ensure that the receiving end user can obtain the same audio and video conferencing experience.

[0048] Specifically, the AVSync audio and video synchronization technology in step S1 refers to ensuring the synchronization between audio and video data when playing or processing them, so that the audience will not experience mismatch between the picture and the sound when watching the video. In practical applications, due to the delay in the processing and transmission of audio and video data, a series of technical means need to be adopted to achieve audio and video synchronization to provide a better user experience, including:

[0049] Timestamp synchronization: by adding timestamps to audio and video data and synchronizing playback based on the timestamps, ensuring that they are displayed in the correct order;

[0050] Buffering adjustment: Adjust the buffering size and filling method of audio and video data to minimize latency and improve synchronization performance;

[0051] Network synchronization: For audio and video data transmitted over a network, adopt the NTP synchronization protocol and technology to ensure the synchronization of audio and video data during network transmission;

[0052] Time base calibration: Eliminate synchronization problems caused by inconsistent device clocks by calibrating the time base of the device;

[0053] Clock synchronization: Ensure the clock accuracy and synchronization of audio and video devices to reduce synchronization problems introduced by the devices themselves.

[0054] Specifically, the operation process of the AES encryption algorithm in step S1 includes four main steps: key expansion, initial round key addition, repeated round key addition, and final round key addition. Each step contains several specific processes: Before the initial round, the original data is subjected to an addition operation with the key; Next is multiple rounds (10 rounds, 12 rounds, or 14 rounds, depending on the key length) of encryption processing, each round including byte substitution, row shift, column confusion, and round key addition; At the end, the final round key addition is performed, and column confusion is not performed in this round. These operations together constitute the block encryption process of the AES algorithm, ensuring the security and reliability of data encryption.

[0055] Specifically, the RSA encryption algorithm in step S3 is divided into key generation, encryption, and decryption steps, including:

[0056] (1) Key generation: Select two large prime numbers p and q, which are large enough so that it is infeasible to factor p and q based on their product n = p * q;

[0057] Calculate the Euler's totient function of n, φ(n) = (p - 1)(q - 1);

[0058] Select an integer e as the public key exponent, which must satisfy 1 < e < φ(n) and e is relatively prime to φ(n) (the most commonly used public key exponent is the small prime number 65537 because of its high efficiency in encryption and decryption operations);

[0059] Determine the private key exponent d, which needs to satisfy d * e ≡ 1 (mod φ(n)) or is the inverse of e modulo φ(n);

[0060] After completion, the public key contains (n, e), and the private key contains (n, d).

[0061] (2) Encryption: To encrypt the message m using the public key (n, e) (here m is a number, usually obtained by converting the text message into a number through a certain protocol), perform the following operations:

[0062] Make sure that message m is less than n;

[0063] The ciphertext c is calculated using the formula c = m^emodn;

[0064] After encryption, c can be safely transmitted to the recipient.

[0065] (3) Decryption: Once the recipient receives the ciphertext c, they can use the private key (n, d) to decrypt the message by doing the following:

[0066] Use d in the private key to decrypt the ciphertext c, and calculate m = c^dmodn;

[0067] Convert the decrypted number m back to the original message format.

[0068] Specifically, the noise reduction algorithm in step S2 is median filtering, which sorts pixels according to grayscale values ​​and then selects the middle value as the new pixel value, which is suitable for removing salt and pepper noise, etc.

[0069] Specifically, the NTP (Network Time Protocol) in step S4 is a protocol for computer time synchronization, which enables computers to communicate with a time reference source through a distributed computer network to calibrate clocks around the world. The NTP client will measure network delays and clock deviations with high precision, and adjust its local clock based on these measurement results to be close to the time of the reference source, thereby ensuring coordinated and consistent time maintenance among computer systems worldwide.

[0070] Specifically, the TLS (Transport Layer Security) in step S5 is a standard protocol that provides confidentiality and data integrity for network communications. It ensures that data will not be eavesdropped or tampered with when it is transmitted from one endpoint to another on the Internet by encrypting the data before transmitting it. The TLS protocol is widely used in communications between Web browsers and servers (such as secure HTTPS connections), as well as other network applications that need to protect data security, and provides key functions such as authentication, encryption, and data integrity verification.

[0071] Through the above technical solution, specifically targeting the different encoding rules and processing requirements of audio and video, the optimization algorithm makes the denoising, color correction and clarity enhancement processes more efficient, while ensuring the synchronization of audio and video signals. The use of multiple encryption strategies can enhance security without sacrificing processing speed. This method can provide a higher level of data protection than existing technologies for scenarios with high confidentiality and strict requirements on synchronization, such as advanced video conferencing, to ensure the privacy of information transmission and the quality of the overall call experience.

[0072] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. An audio and video hybrid digital multi-code encryption method, characterized in that: The encryption method includes the following steps: S1 initialization phase: AVSync audio and video synchronization technology is used as the basis to ensure that the audio and video streams can be synchronized during processing and transmission. The AES encryption algorithm is used to implement symmetric encryption by using the same key when encrypting and decrypting data, and a 256-bit key length is defined; S2 encoding and preprocessing stage: audio and video signals are subjected to advanced noise reduction and clarity enhancement processing, and the processed audio and video signals are encoded and converted into a format suitable for transmission; S3 encryption preparation stage: Use the RSA encryption algorithm to generate public and private key pairs, establish a scheme based on different content elements using different encryption keys or strategies, use one key for the video background and another for the main body of the video foreground; similarly, use layered encryption for audio; S4 synchronization encryption stage: Using hybrid encryption technology, audio and video data are quickly encrypted through AES symmetric encryption, and RSA asymmetric encryption is used to encrypt the symmetric key itself and transmit it to the receiver. In addition, the NTP clock synchronization protocol is combined to ensure that the encryption process does not cause audio and video to be out of sync; S5 transmits encrypted content: the encrypted audio and video data is sent to the receiver via the TLS transmission protocol; S6 decryption phase: first decrypt the symmetric key used for audio and video data decryption, and then use the obtained symmetric key to decrypt the audio and video stream data; S7 display and playback stage: Use the corresponding encoder to decode the audio and video data and complete the conversion from encrypted signal to playback signal. Finally, the audio and video content will be displayed or played to ensure that the receiving end user can obtain the same audio and video conferencing experience.

2. The method for audio and video hybrid digital multi-code encryption according to claim 1, characterized in that: The AVSync audio and video synchronization technology in step S1 refers to ensuring the synchronization between audio and video data when playing or processing them, so that the audience will not experience mismatch between the picture and the sound when watching the video. In practical applications, due to the delay in the processing and transmission of audio and video data, a series of technical means need to be adopted to achieve audio and video synchronization to provide a better user experience, including: Timestamp synchronization: by adding timestamps to audio and video data and synchronizing playback based on the timestamps, ensuring that they are displayed in the correct order; Buffer Adjustment: Minimize latency and improve synchronization by adjusting the buffer size and filling method of audio and video data; Network synchronization: For audio and video data transmitted over the network, the NTP synchronization protocol and technology are used to ensure the synchronization of audio and video data during network transmission; Time base calibration: By calibrating the time base of the device, synchronization problems caused by inconsistent device clocks can be eliminated; Clock synchronization: Ensure the clock accuracy and synchronization of audio and video devices to reduce synchronization issues introduced by the devices themselves.

3. The method for audio and video hybrid digital multi-code encryption according to claim 1, characterized in that: The operation process of the AES encryption algorithm in step S1 includes four main steps: key expansion, initial round key addition, repeated round key addition, and final round key addition. Each step contains several specific processes: Before the initial round, an addition operation is performed on the original data and the key; Next is multiple rounds (10 rounds, 12 rounds, or 14 rounds, depending on the key length) of encryption processing. Each round includes byte substitution, row shift, column mixing, and round key addition; At the end, the final round key addition is performed, and column mixing is not performed in this round. These operations together constitute the block encryption process of the AES algorithm, ensuring the security and reliability of data encryption.

4. The method for audio and video hybrid digital multi-code encryption according to claim 1, characterized in that: The RSA encryption algorithm in step S3 is divided into key generation, encryption, and decryption steps, which include: (1) Key generation: Select two large prime numbers p and q. These two numbers should be large enough so that it is infeasible to factor p and q based on their product n = p * q; Calculate the Euler's totient function of n, φ(n) = (p - 1)(q - 1); Select an integer e as the public key exponent. It must satisfy 1 < e < φ(n) and e and φ(n) are relatively prime (the most commonly used public key exponent is the small prime number 65537 because it is efficient in encryption and decryption operations); Determine the private key exponent d, which needs to satisfy d * e ≡ 1 (mod φ(n)), or in other words, d is the inverse of e modulo φ(n); After completion, the public key contains (n, e), and the private key contains (n, d). (2) Encryption: To encrypt the message m using the public key (n, e) (here m is a number, usually the text message is converted into a number through a certain protocol), perform the following operations: Ensure that the message m is less than n; Calculate the ciphertext c using the formula c = m ^ e mod n; After encryption, c can be securely transmitted to the recipient. (3) Decryption: Once the recipient receives the ciphertext c, they can use the private key (n, d) to decrypt the message through the following operations: Decrypt the ciphertext c using d in the private key, calculated as m = c ^ d mod n; Convert the decrypted number m back to the original message format.

5. The method for audio and video hybrid digital multi-code encryption according to claim 1, characterized in that: The noise reduction algorithm in step S2 is median filtering. The pixels are sorted according to the grayscale value, and then the middle value is selected as the new pixel value, which is suitable for removing salt-and-pepper noise, etc.

6. The method for audio and video hybrid digital multi-code encryption according to claim 1, characterized in that: The NTP (Network Time Protocol) in step S4 is a protocol for computer time synchronization. It enables computers to communicate with time reference sources through a distributed computer network to calibrate clocks around the world. The NTP client will measure the network latency and clock offset with high precision and adjust its local clock according to these measurements to approach the time of the reference source, thus ensuring coordinated timekeeping among computer systems globally.

7. The method for audio and video hybrid digital multi-code encryption according to claim 1, characterized in that: The TLS (Transport Layer Security) protocol in step S5 is a standard protocol that provides confidentiality and data integrity for network communications. It ensures that data will not be eavesdropped or tampered with when it is transmitted from one endpoint to another on the Internet by encrypting the data before transmitting it. The TLS protocol is widely used in communications between Web browsers and servers (such as secure HTTPS connections), as well as other network applications that need to protect data security, and provides key functions such as authentication, encryption, and data integrity verification.

Citation Information

Cited By

  • Encryption synchronization method and system for microwave image transmission and microwave image transmission equipment

    CN121151868A