Zero-knowledge proof encryption method and equipment for electronic whiteboard

By applying zero-knowledge proof technology and SSL/TLS protocol on electronic whiteboards, verifying and encrypting sensitive information in QR codes, the problem of information leakage and tampering during transmission of QR codes is solved, achieving high security and high efficiency information transmission.

CN119051870APending Publication Date: 2024-11-29GUANGZHOU LANGO ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411084327.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

In the prior art, sensitive information of QR codes is easily stolen and tampered during transmission and storage, and there is a lack of an effective verification mechanism to ensure the authenticity and security of the information.

Method used

Using zero-knowledge proof technology, the negotiation data and zero-knowledge proof information are obtained by scanning the QR code on the electronic whiteboard, verifying the authenticity of the information, and encrypting the transmission of sensitive information using the SSL/TLS protocol to ensure that sensitive information is not leaked Verify the authenticity and security of the information.

Benefits of technology

Effectively prevent the leakage and tampering of sensitive information during transmission, improve data security, simplify key management, maintain efficient encryption and decryption processes, and improve the overall security and efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119051870A_ABST
    Figure CN119051870A_ABST
Patent Text Reader

Abstract

The invention relates to a zero-knowledge proof encryption method. The method comprises the following steps: scanning two-dimensional code information displayed on an electronic whiteboard to obtain a data packet contained in the two-dimensional code information; extracting negotiation network access data and zero-knowledge proof information from the data packet, wherein the negotiation network access data comprises verification information, a commitment value and a response value; verifying the zero-knowledge proof information to obtain a verification result; calculating a challenge value and a verification value according to the commitment value and the response value to obtain a calculation result; comparing whether the verification result is the same as the calculation result; if yes, requesting the electronic whiteboard to send encrypted sensitive information; if not, prompting to scan the two-dimensional code information again; decrypting the encrypted sensitive information sent by the electronic whiteboard; and sending the decrypted sensitive information to the electronic whiteboard for subsequent operation and storage of the electronic whiteboard. According to the technical scheme, the authenticity of the content of the two-dimensional code can be verified on the premise that specific sensitive information is not leaked.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer applications, and in particular to a zero-knowledge proof encryption method, system, readable storage medium and computer equipment for an electronic whiteboard. Background Art

[0002] With the popularity of remote video conferencing, the application of shared interactive electronic whiteboards is becoming more and more widespread, which is used to share information on local PC / PAD / mobile phone and other devices with the remote end, and can be browsed and edited synchronously with the remote end. The main functions of the current interactive electronic whiteboard include: sharing of audio and video materials, sharing of files, multi-party synchronous control / annotation of shared information, conference management, etc.

[0003] In the prior art, QR codes are widely used in information transmission and verification, but sensitive information is easily stolen and tampered with during transmission and storage. Zero-knowledge proof technology is an emerging cryptographic technology that can prove the authenticity of a statement without revealing any sensitive information. Zero-knowledge proof technology has been widely studied and applied in the field of cryptography, such as blockchain, identity authentication and other fields. Zero-knowledge proof has the characteristics of completeness, reliability and zero knowledge, which makes it show broad application prospects in the field of information security. The core advantage of zero-knowledge proof technology is that it can verify the authenticity of information without leaking secret information. This is particularly important for application scenarios such as electronic whiteboards that need to transmit sensitive information. Through zero-knowledge proof, the identity of the participants and the integrity of the data can be verified without exposing any sensitive data, thereby greatly improving the security of the system. The present invention aims to combine zero-knowledge proof technology to improve the security of QR code information. Summary of the invention

[0004] The present invention aims to solve at least one of the technical problems existing in the prior art or related art.

[0005] To this end, the purpose of the present invention is to provide a zero-knowledge proof encryption method and device for an electronic whiteboard, which can verify the authenticity of the QR code content without leaking specific sensitive information.

[0006] To achieve the above object, the technical solution of the first aspect of the present invention provides a zero-knowledge proof encryption method for an electronic whiteboard, comprising the following steps:

[0007] Scanning the two-dimensional code information displayed on the electronic whiteboard to obtain the data packet contained in the two-dimensional code information;

[0008] Extracting the negotiated network access data and the zero-knowledge proof information from the data packet, wherein the negotiated network access data includes verification information, a commitment value, and a response value;

[0009] Verifying the zero-knowledge proof information to obtain a verification result;

[0010] Calculate the challenge value and the verification value according to the commitment value and the response value to obtain a calculation result;

[0011] Comparing whether the verification result is the same as the calculation result;

[0012] If yes, request the electronic whiteboard to send encrypted sensitive information;

[0013] If not, then prompt to re-scan the QR code information;

[0014] Decrypting the encrypted sensitive information sent from the electronic whiteboard;

[0015] The decrypted sensitive information is sent to the electronic whiteboard for subsequent operation and storage by the electronic whiteboard.

[0016] In the above technical solution, preferably, the encrypted sensitive information is transmitted via the SSL protocol or the TLS protocol.

[0017] In any of the above technical solutions, preferably, encrypting the sensitive information includes the following steps:

[0018] Select a prime number p and elliptic curve parameters a and b;

[0019] Generate a source point G according to the prime number p and the elliptic curve parameters a and b;

[0020] Generate a random number d as a private key, wherein the random number d is a random number in the interval [1, n-1], where n is the order of the generator point G;

[0021] Calculate the public key Q according to the private key d, Q = dG;

[0022] Select a random number r to calculate the commitment value T, T = rG;

[0023] Calculate the challenge value e according to the commitment value T, e=H(m, T), where m is the sensitive information and H is a hash function;

[0024] Calculate the response value s according to the challenge value e, s=r+ed;

[0025] Among them, the response value s and the commitment value t constitute the zero-knowledge proof information.

[0026] In any of the above technical solutions, preferably, the two-dimensional code information is generated by a QR code generation library.

[0027] In the above technical solution, preferably, the QR code generation library is a ZXing library.

[0028] The technical solution of the second aspect of the present invention provides a zero-knowledge proof encryption system for an electronic whiteboard, comprising:

[0029] A scanning module, configured to scan the two-dimensional code information displayed on the electronic whiteboard to obtain a data packet contained in the two-dimensional code information;

[0030] A data extraction module is configured to extract the negotiated network access data and zero-knowledge proof information from the data packet, wherein the negotiated network access data includes verification information, a commitment value, and a response value;

[0031] A verification module, configured to verify the zero-knowledge proof information and obtain a verification result;

[0032] A calculation module, configured to calculate a challenge value and a verification value according to the commitment value and the response value to obtain a calculation result;

[0033] A comparison module, configured to compare whether the verification result is the same as the calculation result;

[0034] An information request module, configured to request the electronic whiteboard to send encrypted sensitive information;

[0035] A prompt module, configured to prompt the user to rescan the QR code information;

[0036] A decryption module, configured to decrypt the encrypted sensitive information sent from the electronic whiteboard;

[0037] The information sending module is configured to send the decrypted sensitive information to the electronic whiteboard for subsequent operation and storage by the electronic whiteboard.

[0038] In the above technical solution, preferably, the communication protocol of the information sending module is SSL protocol or TLS protocol.

[0039] In any of the above technical solutions, preferably, an encryption module is also included, and the encryption module includes:

[0040] An encryption algorithm selection unit is configured to select a prime number p and elliptic curve parameters a and b;

[0041] A source point generation unit, configured to generate a source point G according to the prime number p and the elliptic curve parameters a and b;

[0042] A private key generation unit is configured to generate a random number d as a private key, wherein the random number d is a random number in the interval [1, n-1], where n is the order of the generator point G;

[0043] A public key generation unit, configured to calculate a public key Q according to the private key d, where Q=dG;

[0044] A commitment value calculation unit, configured to select a random number r for calculating a commitment value T, T=rG;

[0045] A challenge value calculation unit, configured to calculate a challenge value e according to a commitment value T, where e=H(m, T), wherein m is the sensitive information and H is a hash function;

[0046] A response value calculation unit, configured to calculate a response value s according to the challenge value e, s=r+ed;

[0047] Among them, the response value s and the commitment value t constitute the zero-knowledge proof information.

[0048] In any of the above technical solutions, preferably, it also includes a QR code generation module, which is configured to generate QR code information through a QR code generation library.

[0049] In the above technical solution, preferably, the QR code generation library is a ZXing library.

[0050] The technical solution of the third aspect of the present invention provides a readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the zero-knowledge proof encryption method of the electronic whiteboard provided by the technical solution of the first aspect are implemented.

[0051] The technical solution of the fourth aspect of the present invention provides a computer device, including a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to implement the steps of the zero-knowledge proof encryption method of the electronic whiteboard provided by the technical solution of the first aspect above.

[0052] Compared with the existing technology, it has the following significant advantages:

[0053] 1. High security

[0054] The present invention adopts zero-knowledge proof technology to obtain the negotiated network access data and zero-knowledge proof information by scanning the QR code on the electronic whiteboard, thereby verifying the authenticity of the information without leaking any sensitive information. This method effectively prevents the leakage and tampering of sensitive information during transmission, ensuring the high security of data.

[0055] 2. Simplify key management

[0056] Traditional encryption methods often face challenges in key management and distribution, but the present invention uses zero-knowledge proof technology, which eliminates the need to transmit actual keys during the verification process, thereby simplifying the complexity of key management. This reduces the risk of key leakage and reduces the management cost of the system.

[0057] 3. Efficient encryption and decryption

[0058] The present invention combines the SSL / TLS protocol for encrypting and transmitting sensitive information. The SSL / TLS protocol is a mature and widely used transport layer security protocol with the characteristics of fast encryption speed and high efficiency, which can ensure the confidentiality and integrity of data during transmission. At the same time, the introduction of zero-knowledge proof further improves the efficiency of the verification process, so that the entire system can still maintain efficient operation while ensuring security. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0060] Figure 1 A flowchart of a zero-knowledge proof encryption method according to an embodiment of the present invention is shown;

[0061] Figure 2 A flowchart of the sensitive information encryption steps involved in an embodiment of the present invention is shown;

[0062] Figure 3 A structural block diagram of a zero-knowledge proof encryption system according to an embodiment of the present invention is shown;

[0063] Figure 4 A structural block diagram of a second embodiment of a zero-knowledge proof encryption system according to the present invention is shown;

[0064] Figure 5 The structure block diagram of the third embodiment of the zero-knowledge proof encryption system involved in the present invention is shown;

[0065] Figure 6 The structure block diagram of the encryption module involved in the embodiment of the present invention is shown. DETAILED DESCRIPTION

[0066] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0067] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.

[0068] like Figure 1 As shown, according to an embodiment of the present invention, the zero-knowledge proof encryption method of the electronic whiteboard includes the following steps:

[0069] S1, scanning the two-dimensional code information displayed on the electronic whiteboard to obtain a data packet contained in the two-dimensional code information;

[0070] In some possible embodiments, the display information for requesting a connection displayed on the electronic whiteboard is not limited to a QR code, and other methods may also be used, such as a barcode, an IP address, and other information.

[0071] S2, extracting the negotiated network access data and the zero-knowledge proof information from the data packet, wherein the negotiated network access data includes verification information, a commitment value, and a response value;

[0072] In this step, a zero-knowledge proof generation tool is used to generate zero-knowledge proof information (ZKP) to prove the authenticity of sensitive information. The specific method used is the Schnorr protocol.

[0073] S3, verifying the zero-knowledge proof information to obtain a verification result;

[0074] S4, calculating a challenge value and a verification value according to the commitment value and the response value to obtain a calculation result;

[0075] S5, comparing the verification result with the calculation result to see if they are the same;

[0076] If yes, then S6, requesting the electronic whiteboard to send encrypted sensitive information;

[0077] In this step, the background application server of the electronic whiteboard also needs to perform the following operations:

[0078] Confirm the legitimacy of the request;

[0079] Check whether the device from which the request comes is in the list of trusted devices;

[0080] Check whether the timestamp of the request is within the allowed range to prevent replay attacks;

[0081] After the above confirmation is completed, the encrypted sensitive information will be transmitted to the device.

[0082] If not, then S7, prompting to rescan the QR code information;

[0083] S8, decrypting the encrypted sensitive information sent from the electronic whiteboard;

[0084] In this step, the private key is used to encrypt sensitive information. A symmetric encryption algorithm, specifically AES, is used for encryption. A zero-knowledge proof (ZKP) generation tool is used to generate ZKP to prove the authenticity of sensitive information. The specific method used is the Schnorr protocol.

[0085] S9, sending the decrypted sensitive information to the electronic whiteboard for subsequent operation and storage by the electronic whiteboard;

[0086] In this step, the device uses the private key d to decrypt the sensitive information: the AES decryption algorithm and the private key are used to decrypt the received encrypted information to obtain the decrypted sensitive information, and the decrypted information is processed, such as formatting display, information highlighting, etc., and the sensitive information is displayed on the electronic whiteboard. The user views and interacts with the sensitive information on the electronic whiteboard and can further operate or save the information.

[0087] The AES algorithm is a symmetric block cipher algorithm. The data block length must be 128 bits, and the key length used is 128, 192 or 256 bits. The three AES algorithms with different key lengths are called "AES-128", "AES-192" and "AES-256" respectively. The AES encryption algorithm involves four operations: byte substitution (SubBytes), row shift (ShiftRows), column mixing (MixColumns) and round key addition (AddRoundKey).

[0088] Each step of the decryption algorithm corresponds to the inverse operation of the encryption algorithm. The order of all encryption and decryption operations is exactly the opposite, which ensures the correctness of the algorithm. The key for each round of encryption and decryption is obtained by the seed key through the key expansion algorithm. The 16-byte plaintext, ciphertext and round key in the algorithm are all represented by a 4x4 matrix.

[0089] The AE encryption and decryption algorithms are commonly used encryption algorithms in this field, and their detailed steps are clearly recorded in public documents, such as:

[0090] https: / / cloud.tencent.com / developer / article / 2052875;

[0091] The steps of the AE algorithm are described in detail, so they will not be repeated in the present invention.

[0092] In the above embodiment, preferably, the encrypted sensitive information is transmitted via the SSL protocol or the TLS protocol.

[0093] In this embodiment, the encrypted and decrypted sensitive information is encrypted and transmitted using the SSL / TLS protocol, thereby achieving secure transmission of the shared electronic whiteboard during interaction and preventing the user's key documents from being stolen.

[0094] like Figure 2 As shown, in any of the above embodiments, preferably, a zero-knowledge proof generation tool is used to generate zero-knowledge proof information (ZKP) to prove the authenticity of the sensitive information. The specific method used is the Schnorr protocol, that is, encrypting the sensitive information includes the following steps:

[0095] S101, selecting a prime number p and elliptic curve parameters a and b;

[0096] S102, generating a source point G according to the prime number p and the elliptic curve parameters a and b;

[0097] S103, generating a random number d as a private key, wherein the random number d is a random number in the interval [1, n-1], where n is the order of the generator point G;

[0098] S104, calculating the public key Q according to the private key d, Q = dG;

[0099] S105, select a random number r for calculating a commitment value T, T = rG;

[0100] S106, calculating a challenge value e according to the commitment value T, e=H(m, T), where m is the sensitive information and H is a hash function;

[0101] S107, calculating a response value s according to the challenge value e, s=r+ed;

[0102] Among them, the response value s and the commitment value t constitute the zero-knowledge proof information.

[0103] In this embodiment, the public key is generated by calculating Q = dG using the private key d and a predetermined origin point G on the elliptic curve. This calculation process is public, and anyone can perform the calculation by knowing the origin point and the private key. Select the origin point G: Select a origin point G on the selected elliptic curve. This origin point G should satisfy nG = O, and the smallest n of n is a very large prime number. This step ensures the security of the public key.

[0104] Through the above steps, a pair of ECC public and private keys can be generated. The public key is used to encrypt data, while the private key is used to decrypt data or perform digital signatures. This encryption algorithm is widely used in various secure communications and transactions due to its efficiency and security.

[0105] In any of the above embodiments, preferably, the two-dimensional code information is generated by a QR code generation library.

[0106] In the above embodiment, preferably, the QR code generation library is a ZXing library.

[0107] In Java development, generating QR codes and barcodes usually relies on third-party libraries, which encapsulate complex data encoding algorithms and image generation processes, allowing developers to quickly create the required barcodes or QR codes through simple and easy-to-use APIs. The following will introduce the Java library: ZXing (Zebra Crossing) in detail, with detailed code examples and comments to help understand how to use them to generate QR codes and barcodes.

[0108] ZXing (pronounced "zing") is a widely used open source library dedicated to generating and parsing one-dimensional barcodes (such as Code 128, EAN, UPC, etc.) and two-dimensional barcodes (such as QRCode, Data Matrix, Aztec, etc.). It provides rich AP! and high flexibility

[0109] 1. Add dependencies

[0110] For Maven projects, add the following dependencies to the pom.xml file:

[0111] Xml

[0112] 1 <dependency>

[0113] 2 <groupid> com.google.zxing< / groupid>

[0114] 3 <artifactid> core< / artifactid>

[0115] 4 <version> 3.5.1< / version> <!-- Use the latest version -->

[0116] 5< / dependency>

[0117] 6 <dependency>

[0118] 7 <groupid> com.google.zxing< / groupid>

[0119] 8 <artifactid> iavase< / artifactid>

[0120] 9 <version> 3.5.1< / version> <!-- Use the latest version -->

[0121] 10< / dependency>

[0122] 2. Generate a QR code

[0123] Here is a Java code example that uses ZXing to generate a QR Code:

[0124]

[0125]

[0126]

[0127] This code first defines the information to be encoded (such as a URL), and then sets some configuration parameters for generating a QR code, such as the error correction level and character set. Then it creates a QRCodemriter instance and uses its encode method to generate a Bitlatrix, the binary matrix of the QR code. Finally, it converts this matrix to a BufferedImage, sets the black and white pixels, and saves it as a PNG image.

[0128] like Figure 3As shown, a zero-knowledge proof encryption system 1000 for an electronic whiteboard according to another embodiment of the present invention includes:

[0129] The scanning module 10 is configured to scan the two-dimensional code information displayed on the electronic whiteboard to obtain the data packet contained in the two-dimensional code information;

[0130] A data extraction module 20 is configured to extract the network access negotiation data and zero-knowledge proof information from the data packet, wherein the network access negotiation data includes verification information, a commitment value, and a response value;

[0131] A verification module 30 is configured to verify the zero-knowledge proof information and obtain a verification result;

[0132] A calculation module 40 is configured to calculate a challenge value and a verification value according to the commitment value and the response value to obtain a calculation result;

[0133] A comparison module 50 is configured to compare whether the verification result is the same as the calculation result;

[0134] An information request module 60, configured to request the electronic whiteboard to send encrypted sensitive information;

[0135] A prompting module 70, configured to prompt the user to rescan the QR code information;

[0136] A decryption module 80, configured to decrypt the encrypted sensitive information sent from the electronic whiteboard;

[0137] The information sending module 90 is configured to send the decrypted sensitive information to the electronic whiteboard for subsequent operation and storage by the electronic whiteboard.

[0138] In the above embodiment, preferably, the communication protocol of the information sending module is SSL protocol or TLS protocol.

[0139] like Figures 4 to 6 As shown, in any of the above embodiments, preferably, an encryption module 100 is further included, and the encryption module 100 includes:

[0140] The encryption algorithm selection unit 101 is configured to select a prime number p and elliptic curve parameters a and b;

[0141] A primitive point generating unit 102, configured to generate a primitive point G according to the prime number p and the elliptic curve parameters a and b;

[0142] A private key generation unit 103 is configured to generate a random number d as a private key, wherein the random number d is a random number in the interval [1, n-1], where n is the order of the generator point G;

[0143] A public key generating unit 104 is configured to calculate a public key Q according to the private key d, where Q=dG;

[0144] The commitment value calculation unit 105 is configured to select a random number r for calculating a commitment value T, T=rG;

[0145] The challenge value calculation unit 106 is configured to calculate a challenge value e according to the commitment value T, where e=H(m, T), wherein m is the sensitive information and H is a hash function;

[0146] A response value calculation unit 107, configured to calculate a response value s according to the challenge value e, s=r+ed;

[0147] Among them, the response value s and the commitment value t constitute the zero-knowledge proof information.

[0148] like Figure 5 As shown, in any of the above embodiments, preferably, it also includes a QR code generation module 110, which is configured to generate QR code information through a QR code generation library.

[0149] In the above embodiment, preferably, the QR code generation library is a ZXing library.

[0150] Based on the above Figure 1 and Figure 2 The method shown, accordingly, an embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of the zero-knowledge proof encryption method of the electronic whiteboard of any of the above embodiments are implemented.

[0151] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of the present application.

[0152] Based on the above Figure 1 and Figure 2 The method shown, and Figures 3 to 6 The virtual device embodiment shown, in order to achieve the above-mentioned purpose, the embodiment of the present application also provides a computer device, including a storage medium and a processor; the storage medium is used to store computer programs; the processor is used to execute the computer program to implement the steps of the zero-knowledge proof encryption method of the electronic whiteboard of any of the above-mentioned embodiments.

[0153] Optionally, the computer device may further include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a Bluetooth interface, a WI-FI interface), etc.

[0154] Those skilled in the art will appreciate that the computer device structure provided in this embodiment does not limit the computer device, and may include more or fewer components, or a combination of certain components, or different component arrangements.

[0155] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages and saves the hardware and software resources of the computer device, and supports the operation of information processing programs and other software and / or programs. The network communication module is used to realize communication between the components inside the storage medium, and communication with other hardware and software in the physical device.

[0156] In the present invention, the terms "first", "second", and "third" are used for descriptive purposes only and should not be understood as indicating or implying relative importance; the term "plurality" refers to two or more, unless otherwise clearly defined. The terms "installed", "connected", "connected", "fixed", etc. should be understood in a broad sense. For example, "connected" can be a fixed connection, a detachable connection, or an integral connection; "connected" can be a direct connection or an indirect connection through an intermediate medium. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0157] In the description of the present invention, it is necessary to understand that the directions or positional relationships indicated by terms such as “upper”, “lower”, “left”, “right”, “front” and “back” are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or unit referred to must have a specific direction, be constructed and operated in a specific orientation, and therefore, cannot be understood as a limitation on the present invention.

[0158] In the description of this specification, the description of the terms "one embodiment", "some embodiments", "specific embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0159] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A zero-knowledge proof encryption method for an electronic whiteboard, characterized in that: The following steps are involved: Scanning the two-dimensional code information displayed on the electronic whiteboard to obtain the data packet contained in the two-dimensional code information; Extracting the negotiated network access data and zero-knowledge proof information from the data packet, wherein the negotiated network access data includes verification information, a commitment value, and a response value; Verifying the zero-knowledge proof information to obtain a verification result; Calculate the challenge value and the verification value according to the commitment value and the response value to obtain a calculation result; Comparing whether the verification result is the same as the calculation result; If yes, requesting the electronic whiteboard to send encrypted sensitive information; If not, then prompt to re-scan the QR code information; Decrypting the encrypted sensitive information sent from the electronic whiteboard; The decrypted sensitive information is sent to the electronic whiteboard for subsequent operation and storage by the electronic whiteboard.

2. The zero-knowledge proof encryption method of the electronic whiteboard according to claim 1, characterized in that: Encrypted sensitive information is transmitted via SSL or TLS protocols.

3. The zero-knowledge proof encryption method of the electronic whiteboard according to claim 2, characterized in that: Encrypting the sensitive information includes the following steps: Select a prime number p and elliptic curve parameters a and b; Generate a source point G according to the prime number p and the elliptic curve parameters a and b; Generate a random number d as a private key, wherein the random number d is a random number in the interval [1, n-1], where n is the order of the generator point G; Calculate the public key Q according to the private key d, Q = dG; Select a random number r to calculate the commitment value T, T = rG; Calculate the challenge value e according to the commitment value T, e=H(m, T), where m is the sensitive information and H is a hash function; Calculate the response value s according to the challenge value e, s=r+ed; Among them, the response value s and the commitment value t constitute the zero-knowledge proof information.

4. The zero-knowledge proof encryption method of the electronic whiteboard according to claim 3, characterized in that: The two-dimensional code information is generated by a QR code generation library.

5. The zero-knowledge proof encryption method of the electronic whiteboard according to claim 4, characterized in that: The QR code generation library is the ZXing library.

6. A zero-knowledge proof encryption system for an electronic whiteboard, characterized in that: include: A scanning module, configured to scan the two-dimensional code information displayed on the electronic whiteboard to obtain a data packet contained in the two-dimensional code information; A data extraction module is configured to extract the negotiated network access data and zero-knowledge proof information from the data packet, wherein the negotiated network access data includes verification information, a commitment value, and a response value; A verification module, configured to verify the zero-knowledge proof information and obtain a verification result; A calculation module, configured to calculate a challenge value and a verification value according to the commitment value and the response value to obtain a calculation result; A comparison module, configured to compare whether the verification result is the same as the calculation result; An information request module, configured to request the electronic whiteboard to send encrypted sensitive information; A prompt module, configured to prompt the user to rescan the QR code information; A decryption module, configured to decrypt the encrypted sensitive information sent from the electronic whiteboard; The information sending module is configured to send the decrypted sensitive information to the electronic whiteboard for subsequent operation and storage by the electronic whiteboard.

7. The zero-knowledge proof encryption system for an electronic whiteboard according to claim 6, characterized in that: The communication protocol of the information sending module is the SSL protocol or the TLS protocol.

8. The zero-knowledge proof encryption system of the electronic whiteboard according to claim 6, characterized in that: Also included is an encryption module, the encryption module comprising: An encryption algorithm selection unit is configured to select a prime number p and elliptic curve parameters a and b; A source point generation unit, configured to generate a source point G according to the prime number p and the elliptic curve parameters a and b; A private key generation unit is configured to generate a random number d as a private key, wherein the random number d is a random number in the interval [1, n-1], where n is the order of the generator point G; A public key generation unit, configured to calculate a public key Q according to the private key d, where Q=dG; A commitment value calculation unit, configured to select a random number r for calculating a commitment value T, T=rG; A challenge value calculation unit, configured to calculate a challenge value e according to a commitment value T, where e=H(m, T), wherein m is the sensitive information and H is a hash function; A response value calculation unit, configured to calculate a response value s according to the challenge value e, s=r+ed; Among them, the response value s and the commitment value t constitute the zero-knowledge proof information.

9. The zero-knowledge proof encryption system of the electronic whiteboard according to claim 6, characterized in that: It also includes a QR code generation module, which is configured to generate QR code information through a QR code generation library.

10. The zero-knowledge proof encryption system of the electronic whiteboard according to claim 9, characterized in that: The QR code generation library is the ZXing library.

11. A readable storage medium, characterized in that: A computer program is stored thereon, and when the program is executed by a processor, the steps of the zero-knowledge proof encryption method for an electronic whiteboard as claimed in any one of claims 1 to 5 are implemented.

12. A computer device, characterized in that: It comprises a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to implement the steps of the zero-knowledge proof encryption method of the electronic whiteboard as described in any one of claims 1 to 5.