A method and device for encrypting audio and video data

By encrypting the session key using the video network server and decrypting it using the mobile shield server based on the mobile security element or trusted execution environment, the security of audio and video data transmission in the video network is solved, and more secure and reliable data transmission is achieved.

CN114760500BActive Publication Date: 2024-09-13海南乾唐视联信息技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210294411.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-24
Publication Date
2024-09-13
Estimated Expiration
2042-03-24

AI Technical Summary

Technical Problem

In the video network, ensuring the security of audio and video data transmission has become an urgent technical problem to be solved.

Method used

The session key is encrypted by the video network server and decrypted by the mobile shield server based on the mobile security element or trusted execution environment to ensure the security of the session key, thereby encrypting the transmission of audio and video data.

Benefits of technology

It improves the security and reliability of audio and video data transmission, ensures the security of session keys during transmission, and enhances the security of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114760500B
    Figure CN114760500B
Patent Text Reader

Abstract

The embodiment of the present invention provides a method and device for encrypting audio and video data. The method includes: when a first terminal initiates an audio and video call to a second terminal in a streaming media application, a first signaling for obtaining a session key is sent to a visual network server corresponding to the streaming media application; a first ciphertext sent by the visual network server is received; the first ciphertext is sent to a mobile phone shield server corresponding to a mobile phone shield data packet, so that the mobile phone shield server decrypts the first ciphertext according to a pre-stored public key to obtain a session key; the first audio and video data collected is encrypted by the received session key to obtain the second audio and video data; the second audio and video data is sent to the visual network server, so that the visual network server forwards the second audio and video data to the second terminal, so that the second terminal parses the second audio and video data according to the pre-acquired session key to obtain the first audio and video data. According to the embodiment of the present invention, the security of audio and video data transmission can be guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of audio and video data processing, and in particular to an audio and video data encryption method and device. Background Art

[0002] As visual Internet services continue to develop, more and more users are using their mobile phones to access visual Internet functions, such as video conferencing, video calls, and so on.

[0003] At present, there is an increasing demand for developing audio and video services in visual networks, and how to ensure the security of audio and video data transmission has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] In view of the above problems, embodiments of the present invention are proposed to provide an audio and video data encryption method and a corresponding audio and video data encryption device that overcome the above problems or at least partially solve the above problems.

[0005] In a first aspect, an embodiment of the present invention provides an audio and video data encryption method, which is applied to a first terminal, and the first terminal is provided with a mobile phone shield data packet, and the method includes:

[0006] When the first terminal initiates an audio or video call to the second terminal in the streaming media application, a first signaling for obtaining a session key is sent to the video network server corresponding to the streaming media application, where the first signaling includes a public key pre-acquired by the first terminal;

[0007] Receiving a first ciphertext sent by a visual networking server, where the first ciphertext is obtained by encrypting a session key using a public key of the visual networking server;

[0008] Sending a first ciphertext to a mobile shield server corresponding to the mobile shield data packet, so that the mobile shield server decrypts the first ciphertext according to a pre-stored public key to obtain a session key;

[0009] The first audio and video data collected is encrypted by the received session key to obtain the second audio and video data; the session key is sent by the mobile shield server;

[0010] The second audio and video data is sent to the visual network server, so that the visual network server forwards the second audio and video data to the second terminal, so that the second terminal parses the second audio and video data according to the pre-acquired session key to obtain the first audio and video data.

[0011] In a second aspect, an embodiment of the present invention provides an audio and video data encryption method, which is applied to a video network server, and the method includes:

[0012] Receiving a first signaling sent by the first terminal for obtaining a session key, where the first signaling includes a public key pre-acquired by the first terminal;

[0013] Sending a first ciphertext to the first terminal, where the first ciphertext is obtained by encrypting the session key with the public key;

[0014] Receiving second audio and video data sent by the first terminal, where the second audio and video data is obtained by encrypting the first audio and video data collected by the first terminal according to the session key;

[0015] The second audio and video data is forwarded to the second terminal, so that the second terminal can parse the second audio and video data according to the pre-acquired session key to obtain the first audio and video data.

[0016] In a third aspect, an embodiment of the present invention provides an audio and video data encryption method, which is applied to a mobile shield server, and the method includes:

[0017] Receiving a first ciphertext sent by a first terminal; the first ciphertext is obtained by encrypting a session key using a public key of a visual network server;

[0018] Decrypting the first ciphertext according to the pre-stored public key to obtain a session key;

[0019] The session key is sent to the first terminal.

[0020] In a fourth aspect, an embodiment of the present invention provides an audio and video data encryption device, which includes: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, it implements the method in the first aspect, the second aspect, or the third aspect.

[0021] In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the method in the first aspect, the second aspect, or the third aspect is implemented.

[0022] The embodiments of the present invention include the following advantages:

[0023] The embodiment of the present invention applies the characteristics of the visual network. When the first terminal initiates an audio or video call to the second terminal in the streaming media application, the first signaling for obtaining the session key is sent to the visual network server corresponding to the streaming media application. The first signaling includes the public key pre-acquired by the first terminal; the first ciphertext sent by the visual network server is received. The first ciphertext is obtained by encrypting the session key by the visual network server using the public key; here, the session key is encrypted and then transmitted to ensure the security of the session key. The first ciphertext is sent to the mobile shield server corresponding to the mobile shield data packet, so that the mobile shield server can decrypt the first ciphertext according to the pre-stored public key to obtain the session key; because the mobile shield must be based on the mobile phone security element or the trusted execution environment, hardware-level security can be achieved. Here, the mobile shield server corresponding to the mobile shield data packet installed in the first terminal is used for decryption to further improve security. Finally, the first audio and video data collected is encrypted by the received session key sent by the mobile shield server to obtain the second audio and video data; the second audio and video data is sent to the visual network server, so that the visual network server forwards the second audio and video data to the second terminal, so that the second terminal parses the second audio and video data according to the pre-acquired session key to obtain the first audio and video data. Therefore, encrypting the audio and video data in the visual network can ensure that the transmitted audio and video data is safer and more reliable. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 It is a schematic diagram of a method for implementing audio and video data encryption of the present invention;

[0025] Figure 2 is a flow chart of an audio and video data encryption method provided by an embodiment of the present invention;

[0026] Figure 3 is a flow chart of an audio and video data encryption method applied to a first terminal provided by an embodiment of the present invention;

[0027] Figure 4 It is a flow chart of an audio and video data encryption method applied to a video network server provided by an embodiment of the present invention;

[0028] Figure 5 It is a flow chart of an audio and video data encryption method applied to a mobile shield server provided by an embodiment of the invention;

[0029] Figure 6 is a structural schematic diagram of a first terminal provided by an embodiment of the invention;

[0030] Figure 7 It is a structural diagram of a visual networking server provided by an embodiment of the invention;

[0031] Figure 8It is a structural diagram of a mobile phone shield server provided by an embodiment of the invention; DETAILED DESCRIPTION

[0032] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0033] First, technical terms involved in the embodiments of the present invention are introduced.

[0034] Visual Internet is an important milestone in the development of the Internet. It is a more advanced form of the Internet and a real-time network that can achieve real-time transmission of high-definition video across the entire network, which is currently unattainable on the Internet. It will push many Internet applications towards high-definition video and high-definition face-to-face communication. Ultimately, the world will be free of distance, and the distance between people around the world will be just a screen away.

[0035] Mobile shield data package (Mobile shield SDK), through the CA server to issue CA certificate to APP, through the encryption machine or PCIE encryption card to encrypt the process, to achieve the requirements of soft encryption. Among them, the software development kit (Software Development Kit, SDK) is generally a collection of development tools for software engineers to build application software for specific software packages, software frameworks, hardware platforms, operating systems, etc.

[0036] The encryption machine is a host encryption device. The encryption machine and the host communicate using the TCP / IP protocol, so the encryption machine has no special requirements for the host type and host operating system.

[0037] Mobile Shield is a second-generation USBKEY implemented with the mobile phone trusted execution environment (TEE) and secure element (SE) as carriers. It does not rely on any external hardware devices and does not require users to install any additional software. It should be noted that pure reliance on software cannot meet the requirements of shield-level security. Mobile Shield must be based on the mobile phone secure element or trusted execution environment. The mobile shield service provider creates a security domain for the program to be protected in TEE to achieve hardware-level security.

[0038] CA certificate, the CA center issues a digital certificate to each user who uses a public key. The role of the digital certificate is to prove that the user listed in the certificate legally owns the public key listed in the certificate. The Certificate Authority (CA) is the institution that issues digital certificates. It is the authoritative organization responsible for issuing and managing digital certificates, and as a trusted third party in e-commerce transactions, it bears the responsibility of verifying the legitimacy of the public key in the public key system.

[0039] Streaming media service system: Streaming media service system is the bridge and link between the audio and video transmission services of the visual network and the IP network, realizing the seamless integration of the visual network services and the IP network services. It can securely connect various audio and video resources in the IP network to the visual network, and can convert different audio and video streams such as video conferencing, surveillance images, digital television, etc. in the visual network and output them in the form of commonly used standard IP network protocols. It is the core equipment for the interconnection between the visual network and the IP network mobile client.

[0040] The following is an overall description of the audio and video data encryption method provided by an embodiment of the present invention.

[0041] The first terminal 100, the visual network server 200, the mobile shield server 300, the second terminal 400 and the CA server 500.

[0042] First, the first terminal 100 obtains the user certificate and signature information.

[0043] Specifically, the first terminal 100 sends a user certificate application to the mobile shield server 300, so that the mobile shield server 300 obtains a user certificate from the CA server 500; the first terminal 100 receives the user certificate returned by the mobile shield server 300, and the user certificate includes a public key; the first terminal 100 sends a signature request to the mobile shield server 300 to obtain signature information; the first terminal 100 receives the signature information returned by the mobile shield server 300.

[0044] Next, the first terminal 100 obtains the device key.

[0045] Specifically, the first terminal 100 sends a second signaling for obtaining the device key to the visual network server 200, and the second signaling includes a public key; the visual network server 200 encrypts the device key by the public key to obtain a second ciphertext; the visual network server 200 sends the second ciphertext to the first terminal 100; the first terminal 100 sends the second ciphertext to the mobile shield server 300, so that the mobile shield server 300 decrypts the second ciphertext to obtain the device key; the first terminal 100 receives the device key sent by the mobile shield server 300.

[0046] Next, the first terminal 100 logs in to the streaming media application according to the device key.

[0047] Specifically, the first terminal 100 encrypts the user information of the first terminal 100 according to the device key to obtain the third ciphertext; sends a login signaling to the visual network server 200, and the login signaling includes: the device key, the third ciphertext, and the signature information. The visual network server 200 decrypts the third ciphertext according to the device key to obtain the user information, and returns the login confirmation information to the first terminal 100 when the user information and the signature information are verified; the first terminal 100 logs in to the streaming media application when receiving the login confirmation information.

[0048] Then, the first terminal 100 obtains the session signaling.

[0049] Specifically, when the first terminal 100 initiates an audio or video call to the second terminal 400 in the streaming media application, the first signaling for obtaining the session key is sent to the visual network server 200 corresponding to the streaming media application, and the first signaling includes the public key pre-acquired by the first terminal 100. The visual network server 200 sends a first ciphertext to the first terminal 100, and the first ciphertext is obtained by encrypting the session key with the public key. The first terminal 100 sends the first ciphertext to the mobile shield server 300 corresponding to the mobile shield data packet. The mobile shield server 300 decrypts the first ciphertext according to the pre-stored public key to obtain the session key.

[0050] Finally, the audio and video data are encrypted.

[0051] Specifically, the first audio and video data collected is encrypted by the received session key to obtain the second audio and video data. The second audio and video data is sent to the visual network server 200. The visual network server 200 forwards the second audio and video data to the second terminal 400. The second terminal 400 parses the second audio and video data according to the pre-acquired session key to obtain the first audio and video data.

[0052] Among them, the visual network server involved in the present invention can specifically be a streaming media server.

[0053] Combine the following Figure 2 , the audio and video data encryption method provided by an embodiment of the present invention is described.

[0054] 210. The first terminal 100 sends a first signaling for obtaining a session key to the visual network server 200.

[0055] 220. The visual network server 200 sends a first ciphertext to the first terminal 10. The first ciphertext is obtained by encrypting the session key with the public key.

[0056] 230. The first terminal 100 sends a first ciphertext to the mobile shield server 300 corresponding to the mobile shield data packet.

[0057] 240, the mobile shield server 300 decrypts the first ciphertext according to the pre-stored public key to obtain the session key.

[0058] 250. The mobile shield server 300 sends a session key to the first terminal 100.

[0059] 260. The first terminal 100 encrypts the collected first audio and video data using the received session key to obtain second audio and video data.

[0060] 270, the first terminal 100 sends the second audio and video data to the visual network server 200.

[0061] 280, the visual network server 200 forwards the second audio and video data to the second terminal 400.

[0062] 290. The second terminal 400 parses the second audio and video data according to the pre-acquired session key to obtain the first audio and video data.

[0063] The embodiment of the present invention applies the characteristics of the visual network. When the first terminal initiates an audio or video call to the second terminal in the streaming media application, the first signaling for obtaining the session key is sent to the visual network server corresponding to the streaming media application. The first signaling includes the public key pre-acquired by the first terminal; the first ciphertext sent by the visual network server is received. The first ciphertext is obtained by encrypting the session key by the visual network server using the public key; here, the session key is encrypted and then transmitted, which can ensure the security of the session key. The first ciphertext is sent to the mobile shield server corresponding to the mobile shield data packet, so that the mobile shield server can decrypt the first ciphertext according to the pre-stored public key to obtain the session key; because the mobile shield must be based on the mobile security element or the trusted execution environment, the hardware-level security can be guaranteed. Here, the mobile shield server corresponding to the mobile shield data packet installed in the first terminal is used for decryption, which further improves the security. Finally, the first audio and video data collected is encrypted by the received session key sent by the mobile shield server to obtain the second audio and video data; the second audio and video data is sent to the visual network server, so that the visual network server forwards the second audio and video data to the second terminal, so that the second terminal parses the second audio and video data according to the pre-acquired session key to obtain the first audio and video data. Therefore, encrypting the audio and video data in the visual network can ensure that the transmitted audio and video data is safer and more reliable.

[0064] The following is a detailed description of the audio and video data encryption method provided by an embodiment of the present invention.

[0065] Figure 3 The present invention provides a flowchart of a method for encrypting audio and video data.

[0066] like Figure 3 As shown, the audio and video data encryption method may include steps 310 to 350. The method is applied to a first terminal, and the first terminal is provided with a mobile phone shield data packet, as shown below:

[0067] Step 310, when the first terminal initiates an audio or video call to the second terminal in the streaming media application, a first signaling for obtaining a session key is sent to the visual network server corresponding to the streaming media application, and the first signaling includes a public key pre-acquired by the first terminal.

[0068] In a possible embodiment, before step 310, the following steps may also be included:

[0069] Step 360: Obtain a user certificate including a public key and signature information corresponding to the first terminal from the mobile shield server.

[0070] Step 370, obtain the device key from the visual network server.

[0071] Step 380, initiate login authentication to the visual network server based on the device key, signature information, and user information stored in the first terminal.

[0072] Obtain the user certificate including the public key and the signature information corresponding to the first terminal from the mobile shield server, obtain the device key from the visual network server, and initiate login authentication to the visual network server based on the device key, signature information, and user information saved by the first terminal. This is to authenticate user information.

[0073] User authentication is a method used in a communication network to authenticate users who attempt to access services from a service provider. It is used to check the legitimacy and validity of a user's use of data services when the user is about to use the data service.

[0074] The above-mentioned step 360 includes:

[0075] Send a user certificate request to the Mobile Shield server, so that the Mobile Shield server can obtain the user certificate from the certificate authority CA server;

[0076] Receive the user certificate returned by the MobileShield server, which includes the public key;

[0077] Send a signature request to the MobileShield server to obtain signature information;

[0078] Receive the signature information returned by the MobileShield server.

[0079] Multiple service-specific identifiers are allocated to the user for accessing various services; a user certificate application is issued from the first terminal corresponding to the user, and the user certificate application identifies the service to be accessed; the CA server at the certification authority authenticates the request and returns the user certificate including the public key to the first terminal corresponding to the user.

[0080] That is, the first terminal can receive the user certificate including the public key returned by the mobile shield server, and then the first terminal sends a signature request to the mobile shield server, and the mobile shield server returns the signature information of the first terminal to the first terminal.

[0081] The above-mentioned step 370 may specifically include the following steps:

[0082] Sending a second signaling for obtaining a device key to a visual network server, wherein the second signaling includes a public key;

[0083] Receive a second ciphertext sent by the visual network server, where the second ciphertext is obtained by encrypting the device secret key using the public key of the visual network server;

[0084] Send the second ciphertext to the mobile shield server, so that the mobile shield server can decrypt the second ciphertext and obtain the device key;

[0085] Receive the device key sent by the MobileShield server.

[0086] A key is a parameter that is input into an algorithm for converting plain text into cipher text or vice versa. A device key is a key associated with the first terminal.

[0087] Here, the second ciphertext obtained by encrypting the device key with the public key of the video networking server is sent to the mobile shield server, and the mobile shield server decrypts the second ciphertext to obtain the device key. Since the execution environment of the mobile shield server is more secure, the security of decryption can be improved.

[0088] The above-mentioned step 380 may specifically include the following steps:

[0089] The user information of the first terminal is encrypted according to the device secret key to obtain a third ciphertext.

[0090] Sending a login signaling to the visual network server, the login signaling including: a device secret key, a third ciphertext, and signature information, so that the visual network server decrypts the third ciphertext according to the device secret key to obtain user information, and returns login confirmation information to the first terminal when the user information and the signature information are verified;

[0091] Upon receiving the login confirmation message, log in to the streaming media application.

[0092] The user information of the first terminal is encrypted according to the device secret key to obtain the third ciphertext. Here, the user information of the first terminal is encrypted to generate the third ciphertext and then sent, which can ensure the security of the user information.

[0093] The device secret key is used by the visual network server to decrypt the third ciphertext according to the device secret key to obtain the user information. The visual network server compares the user information with the signature information, and returns the login confirmation information to the first terminal if the user information is consistent with the signature information, that is, the user information passes the verification; the first terminal can successfully log in to the streaming media application after receiving the login confirmation information.

[0094] Step 320, receiving a first ciphertext sent by the visual network server, where the first ciphertext is obtained by encrypting the session key using the public key of the visual network server.

[0095] The visual network server encrypts the session key with the public key to obtain the first ciphertext and then sends it, which can ensure the security of the session public key during transmission.

[0096] Step 330, sending the first ciphertext to the mobile shield server corresponding to the mobile shield data packet, so that the mobile shield server decrypts the first ciphertext according to the pre-stored public key to obtain the session key.

[0097] The mobile shield server decrypts the first ciphertext according to the pre-stored public key to obtain the session key; since the mobile shield must be based on a trusted execution environment, hardware-level security can be guaranteed. Here, the mobile shield server corresponding to the mobile shield data package installed in the first terminal performs decryption, further improving security.

[0098] Step 340, encrypt the collected first audio and video data using the received session key to obtain second audio and video data; the session key is sent by the mobile shield server.

[0099] The first terminal encrypts the collected first audio and video data using the received session key to obtain second audio and video data, thereby ensuring that the transmitted audio and video data is more secure and reliable.

[0100] Step 350, sending the second audio and video data to the visual network server, so that the visual network server forwards the second audio and video data to the second terminal, so that the second terminal parses the second audio and video data according to the pre-acquired session key to obtain the first audio and video data.

[0101] Among them, the session key stored at the second terminal is consistent with that of the first terminal, which will not be repeated here, so the second audio and video data can be parsed to obtain the first audio and video data collected by the first terminal.

[0102] The process of the second terminal acquiring the session key is basically the same as the process of the first terminal acquiring the session key, which will not be described in detail here.

[0103] It should be noted that in application scenarios such as video conferencing, the first terminal collects the first audio and video data and sends it to the second terminal, and the second terminal plays the first audio and video data. Since the communication between the terminals is continuous, the first multimedia data collected by the first visual network terminal is continuous.

[0104] The following is a detailed description of the audio and video data encryption method provided by an embodiment of the present invention.

[0105] Figure 4 The present invention provides a flowchart of a method for encrypting audio and video data.

[0106] like Figure 4 As shown, the audio and video data encryption method may include steps 410 to 440, and the method is applied to a visual network server, as shown below:

[0107] Step 410: Receive a first signaling sent by a first terminal for obtaining a session key, where the first signaling includes a public key pre-acquired by the first terminal.

[0108] In a possible embodiment, before step 410, the following steps may also be included:

[0109] Encrypting the user information of the first terminal according to the device secret key to obtain a third ciphertext;

[0110] receiving a login signaling sent by the first terminal, the login signaling including: a device key, a third ciphertext, and signature information of the first terminal;

[0111] Decrypt the third ciphertext according to the device secret key to obtain user information;

[0112] When the user information and the signature information are verified, the login confirmation information is returned to the first terminal.

[0113] The device secret key is used by the visual network server to decrypt the third ciphertext according to the device secret key to obtain the user information. The visual network server compares the user information with the signature information, and returns the login confirmation information to the first terminal if the user information is consistent with the signature information, that is, the user information passes the verification; the first terminal can successfully log in to the streaming media application after receiving the login confirmation information.

[0114] Step 420: Send a first ciphertext to the first terminal, where the first ciphertext is obtained by encrypting the session key with the public key.

[0115] The visual network server encrypts the session key with the public key to obtain the first ciphertext and then sends it, which can ensure the security of the session public key during transmission.

[0116] Step 430: receiving second audio and video data sent by the first terminal, where the second audio and video data is obtained by encrypting the collected first audio and video data by the first terminal according to the session key.

[0117] The second audio and video data is obtained by encrypting the first audio and video data collected by the first terminal through the received session key, which can ensure that the transmitted audio and video data is more secure and reliable.

[0118] Step 440: forward the second audio and video data to the second terminal, so that the second terminal can parse the second audio and video data according to the pre-acquired session key to obtain the first audio and video data.

[0119] The media server is responsible for forwarding the received second audio and video data to the second terminal, so that the second terminal can parse the second audio and video data according to the pre-acquired session key to obtain the first audio and video data. The session key stored at the second terminal is consistent with that of the first terminal, which will not be repeated here, so the second audio and video data can be parsed to obtain the first audio and video data collected by the first terminal.

[0120] In an embodiment of the present invention, the visual network server responds to the first signaling sent by the first terminal for obtaining the session key, encrypts the session key by the public key to obtain the first ciphertext and sends it to the first terminal, which can ensure the security of the session public key in transmission. Then, the first terminal receives the secure and reliable second audio and video data obtained by encrypting the first audio and video data collected according to the session key. The second audio and video data is forwarded to the second terminal, so that the second terminal can parse the second audio and video data according to the pre-acquired session key to obtain the first audio and video data. It can ensure secure and stable audio and video data transmission between the first terminal and the second terminal.

[0121] The following is a detailed description of the audio and video data encryption method provided by an embodiment of the present invention.

[0122] Figure 5 The present invention provides a flowchart of a method for encrypting audio and video data.

[0123] like Figure 5 As shown, the audio and video data encryption method may include steps 510 to 520, and the method is applied to the mobile shield server, as shown below:

[0124] Step 510, receiving a first ciphertext sent by a first terminal; the first ciphertext is obtained by encrypting a session key using a public key of a visual network server.

[0125] Step 520: decrypt the first ciphertext according to the pre-stored public key.

[0126] In an embodiment of the present invention, the mobile shield server receives the first ciphertext sent by the first terminal, which is encrypted by the visual network server using the public key to obtain the session key, and the mobile shield server decrypts the first ciphertext according to the pre-stored public key to obtain the session key; since the mobile shield must be based on a trusted execution environment, the security is higher. Here, the mobile shield server corresponding to the mobile shield data package installed in the first terminal is used for decryption, which can ensure improved security.

[0127] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0128] Reference Figure 6 , shows a structural block diagram of a first terminal embodiment of the present invention, the first terminal is provided with a mobile phone shield data package, the first terminal 600 can be applied to the visual network, and specifically may include the following modules:

[0129] The sending module 610 is used to send a first signaling for obtaining a session key to a visual network server corresponding to a streaming media application when the first terminal initiates an audio or video call to the second terminal in a streaming media application. The first signaling includes a public key pre-acquired by the first terminal.

[0130] The receiving module 620 is used to receive a first ciphertext sent by the visual network server, where the first ciphertext is obtained by encrypting the session key using the public key of the visual network server.

[0131] The sending module 610 is used to send the first ciphertext to the mobile shield server corresponding to the mobile shield data packet, so that the mobile shield server decrypts the first ciphertext according to the pre-stored public key to obtain the session key.

[0132] The encryption module 630 is used to encrypt the collected first audio and video data through the received session key to obtain the second audio and video data; the session key is sent by the mobile shield server.

[0133] The sending module 610 is used to send the second audio and video data to the visual network server, so that the visual network server forwards the second audio and video data to the second terminal, so that the second terminal parses the second audio and video data according to the pre-acquired session key to obtain the first audio and video data.

[0134] In an optional embodiment of the present invention, the first terminal 600 may further include:

[0135] Get modules for:

[0136] Obtain a user certificate including a public key and signature information corresponding to the first terminal from the mobile shield server; obtain a device key from the visual network server;

[0137] The login module is used to initiate login authentication to the visual network server based on the device key, signature information, and user information saved by the first terminal.

[0138] In an optional embodiment of the present invention, the acquisition module is specifically used to:

[0139] Sending a second signaling for obtaining a device key to a visual network server, wherein the second signaling includes a public key;

[0140] Receive a second ciphertext sent by the visual network server, where the second ciphertext is obtained by encrypting the device secret key using the public key of the visual network server;

[0141] Send the second ciphertext to the mobile shield server, so that the mobile shield server can decrypt the second ciphertext and obtain the device key;

[0142] Receive the device key sent by the MobileShield server.

[0143] In an optional embodiment of the present invention, the login module is specifically used for:

[0144] The user information of the first terminal is encrypted according to the device secret key to obtain a third ciphertext.

[0145] Sending a login signaling to the visual network server, the login signaling including: a device secret key, a third ciphertext, and signature information, so that the visual network server decrypts the third ciphertext according to the device secret key to obtain user information, and returns login confirmation information to the first terminal when the user information and the signature information are verified;

[0146] Upon receiving the login confirmation message, log in to the streaming media application.

[0147] In an optional embodiment of the present invention, the acquisition module is specifically used to:

[0148] Send a user certificate request to the Mobile Shield server, so that the Mobile Shield server can obtain the user certificate from the certificate authority CA server;

[0149] Receive the user certificate returned by the MobileShield server, which includes the public key;

[0150] Send a signature request to the MobileShield server to obtain signature information;

[0151] Receive the signature information returned by the MobileShield server.

[0152] Reference Figure 7 , shows a structural block diagram of a visual networking server embodiment of the present invention, the visual networking server 700 can be applied in the visual networking, and specifically may include the following modules:

[0153] The receiving module 710 is configured to receive a first signaling sent by a first terminal for acquiring a session key, where the first signaling includes a public key pre-acquired by the first terminal.

[0154] The sending module 720 is used to send a first ciphertext to the first terminal, where the first ciphertext is obtained by encrypting the session key with the public key.

[0155] The receiving module 710 is used to receive second audio and video data sent by the first terminal, where the second audio and video data is obtained by encrypting the first audio and video data collected by the first terminal according to the session key.

[0156] The sending module 720 is used to forward the second audio and video data to the second terminal, so that the second terminal can parse the second audio and video data according to the pre-acquired session key to obtain the first audio and video data.

[0157] In an optional embodiment of the present invention, the visual network server 700 may further include:

[0158] An encryption module, used to encrypt the user information of the first terminal according to the device secret key to obtain a third ciphertext;

[0159] The receiving module 710 is further used to: receive a login signaling sent by the first terminal, where the login signaling includes: a device key, a third ciphertext, and signature information of the first terminal;

[0160] A decryption module, used to decrypt the third ciphertext according to the device secret key to obtain user information;

[0161] The sending module 720 is further configured to return login confirmation information to the first terminal when the user information and the signature information are verified.

[0162] Reference Figure 8 , shows a structural block diagram of a mobile shield server embodiment of the present invention. The mobile shield service 800 can be applied to the visual network, and specifically may include the following modules:

[0163] The receiving module 810 is used to receive a first ciphertext sent by a first terminal; the first ciphertext is obtained by encrypting a session key using a public key of the visual network server.

[0164] The decryption module 820 is used to decrypt the first ciphertext according to the pre-stored public key.

[0165] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0166] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0167] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take 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.) containing computer-usable program codes.

[0168] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks 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 terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal 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.

[0169] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including 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.

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

[0171] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0172] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0173] The electronic focusing method of a camera and the electronic focusing device of a camera provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principle and implementation mode of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A method for encrypting audio and video data, It is characterized in that Applied to a first terminal, the first terminal is provided with a mobile phone shield data package, the method comprises: Send a user certificate application to the mobile shield server, so that the mobile shield server can obtain a user certificate from a certificate authority CA server; receive the user certificate returned by the mobile shield server, wherein the user certificate includes a public key; send a signature request to the mobile shield server to obtain signature information; receive the signature information returned by the mobile shield server; obtain a device key from the visual network server; initiate login authentication to the visual network server according to the device key, the signature information, and the user information stored in the first terminal; When the first terminal initiates an audio or video call to the second terminal in the streaming media application, a first signaling for obtaining a session key is sent to a video network server corresponding to the streaming media application, where the first signaling includes a public key pre-acquired by the first terminal; Receiving a first ciphertext sent by the visual networking server, where the first ciphertext is obtained by the visual networking server encrypting the session key using the public key; Sending the first ciphertext to the mobile shield server corresponding to the mobile shield data packet, so that the mobile shield server decrypts the first ciphertext according to the pre-stored public key to obtain the session key; The first audio and video data collected is encrypted by the received session key to obtain the second audio and video data; the session key is sent by the mobile shield server; The second audio and video data is sent to the visual network server, so that the visual network server forwards the second audio and video data to the second terminal, so that the second terminal parses the second audio and video data according to the pre-acquired session key to obtain the first audio and video data.

2. The method according to claim 1, It is characterized in that The obtaining of a device key from the visual network server comprises: Sending a second signaling for obtaining a device key to the visual networking server, wherein the second signaling includes the public key; Receiving a second ciphertext sent by the visual network server, where the second ciphertext is obtained by encrypting the device secret key by the visual network server using the public key; Sending the second ciphertext to the mobile shield server, so that the mobile shield server decrypts the second ciphertext to obtain the device key; Receive the device key sent by the mobile shield server.

3. The method according to claim 1, It is characterized in that The initiating login authentication to the visual network server according to the device secret key, the signature information, and the user information stored in the first terminal includes: Encrypt the user information of the first terminal according to the device secret key to obtain a third ciphertext, Sending a login signaling to a visual network server, the login signaling including: the device secret key, the third ciphertext, and the signature information, so that the visual network server decrypts the third ciphertext according to the device secret key to obtain the user information, and returns login confirmation information to the first terminal when the user information and the signature information are verified; Upon receiving the login confirmation information, log in to the streaming media application.

4. A method for encrypting audio and video data, It is characterized in that Applied to a visual networking server, the method comprises: When the first terminal initiates an audio or video call to the second terminal in a streaming media application; Receiving a first signaling sent by a first terminal for obtaining a session key, where the first signaling includes a public key pre-acquired by the first terminal; Sending a first ciphertext to the first terminal, where the first ciphertext is obtained by encrypting the session key with the public key; the first ciphertext is used to enable the mobile shield server corresponding to the mobile shield data packet in the first terminal to decrypt the first ciphertext according to the pre-stored public key to obtain the session key; Receiving second audio and video data sent by the first terminal, where the second audio and video data is obtained by encrypting the first audio and video data collected by the first terminal according to the session key; Forwarding the second audio and video data to a second terminal, so that the second terminal parses the second audio and video data according to the pre-acquired session key to obtain the first audio and video data; Among them, the first terminal is also used to: send a user certificate application to the mobile shield server, so that the mobile shield server obtains a user certificate from a certificate authority CA server; receives the user certificate returned by the mobile shield server, and the user certificate includes the public key; sends a signature request to the mobile shield server to obtain signature information; receives the signature information returned by the mobile shield server; obtains a device key from the visual network server; and initiates login authentication to the visual network server based on the device key, the signature information, and the user information saved by the first terminal.

5. The method according to claim 4, It is characterized in that Before receiving the first signaling sent by the first terminal for obtaining the session key, the method further includes: Encrypting the user information of the first terminal according to the device secret key to obtain a third ciphertext; receiving a login signaling sent by the first terminal, the login signaling including: a device key, a third ciphertext, and signature information of the first terminal; Decrypting the third ciphertext according to the device key to obtain the user information; When the user information and the signature information are verified, login confirmation information is returned to the first terminal.

6. A method for encrypting audio and video data, It is characterized in that Applied to a mobile shield server, the method includes: When the first terminal initiates an audio or video call to the second terminal in a streaming media application; Receive a first ciphertext sent by the first terminal; the first ciphertext is obtained by encrypting the session key by the visual network server using the public key; Decrypting the first ciphertext according to the pre-stored public key to obtain the session key; sending the session key to the first terminal; The first terminal encrypts the collected first audio and video data according to the session key to obtain second audio and video data; The first terminal forwards the second audio and video data to the second terminal, so that the second terminal parses the second audio and video data according to the pre-acquired session key to obtain the first audio and video data; Among them, the first terminal is also used to: send a user certificate application to the mobile shield server, so that the mobile shield server obtains a user certificate from a certificate authority CA server; receives the user certificate returned by the mobile shield server, and the user certificate includes the public key; sends a signature request to the mobile shield server to obtain signature information; receives the signature information returned by the mobile shield server; obtains a device key from the visual network server; and initiates login authentication to the visual network server based on the device key, the signature information, and the user information saved by the first terminal.

7. An audio and video data encryption device, It is characterized in that include: one or more processors; and One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, enable the device to perform the audio and video data encryption method as described in any one of claims 1 to 3 or any one of claims 4-5 or claim 6.

8. A computer-readable storage medium, It is characterized in that The computer program stored therein enables the processor to execute the audio and video data encryption method as described in any one of claims 1 to 3 or any one of claims 4-5 or claim 6.