File sharing method and system based on two-dimensional code and related equipment
By introducing a separation mechanism between verification of QR code and file QR code in the QR code sharing system, users need to pass verification of QR code authentication before obtaining file QR code, which solves the problem of QR code sharing in the existing technology The problem of insufficient file security achieves higher data confidentiality.
Patent Information
- Application Number
- CN202411229316.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2024-12-27
AI Technical Summary
When using QR code to share files, there is a risk of data leakage. Especially when unhappy people scan QR codes, they cannot effectively protect the security of the files. Existing measures such as setting expiration time or limiting scanning of codes. Number of times, data leakage cannot be completely avoided.
By generating a combination of verification QR code and file QR code, users must first authenticate through verification QR code before they can obtain the file QR code to access the file and ensure that only verified users can see the file QR code improves the security of files.
It effectively protects the security of the file information shared by the QR code, prevents unauthorized access, enhances the confidentiality of data, and avoids the risk of data leakage.
Smart Images

Figure CN119201871A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of file sharing, and in particular to a file sharing method, system and related equipment based on QR code. Background Art
[0002] In the past few decades, due to the rapid development of society, various equipment has also developed rapidly. While various equipment is developing rapidly, many factories / enterprises have also begun to transform from traditional working methods to digitalization. For example, in the past few decades, if you needed to check a piece of goods, you needed to take the goods list to the warehouse to count them one by one, but now you only need a QR code for the goods, and you don’t even need to go out of the door. You can see the goods by scanning the code. Some goods in shopping malls and supermarkets generally have labels or QR codes, which can be viewed by scanning the code. Electronic tags are widely used in modern society. Some companies and enterprises even store some files on the company's servers or storage space, generate labels or QR codes for customers, and customers only need to scan the code to view them. They no longer need to carry large bags of information and documents like before.
[0003] However, in modern society, with the increasing application of label QR codes, the security of labels and QR codes generated by these file information needs more and more attention. When some label QR codes are used by others, they may be scanned by some people with bad intentions to read the data inside, which will cause data leakage. At present, some large manufacturers on the market have taken these issues into consideration. For example, the file sharing QR code of Baidu Netdisk can be set with an expiration time, which is equivalent to protecting the security of QR code labels. However, this expiration time setting must take into account both the user's scanning time and whether people with bad intentions have time to scan the code. Therefore, there is still a risk of data leakage. Some companies will impose restrictions on QR code labels, such as limiting the expiration date to one scan, but this does not take into account the user's need to scan the code multiple times to view the code.
[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0005] The present invention provides a file sharing method, system and related equipment based on QR code. The main purpose of the present invention is to solve the technical problems mentioned in the background technology of the prior art.
[0006] A first aspect of the present invention provides a file sharing method based on a QR code, comprising: Receive files uploaded by users to be shared; Convert the file to be shared into a file QR code; In response to a user's request to share the file QR code, generating a verification QR code linked to the file QR code; Send the verification QR code to the user to be shared; Receive a scan request from a user for the verification QR code, and push a verification option to the scanned user; Receive verification feedback from the code-scanning user and verify the code-scanning user; When the scanning user passes the verification, the file QR code is pushed to the scanning user.
[0007] In an optional implementation manner of the first aspect of the present invention, receiving a file to be shared uploaded by a user includes: Receiving files to be shared uploaded by users, and storing the files to be shared in a server; The upload account and storage location of the file to be shared are obtained, and a file sharing table recording the upload account and the storage location is generated.
[0008] In an optional implementation of the first aspect of the present invention, converting the file to be shared into a file QR code includes: Convert the storage location of the file to be shared into a QR code to obtain a file QR code; The file QR code is bound to the corresponding record item of the file to be shared in the file sharing table.
[0009] In an optional implementation of the first aspect of the present invention, in response to the user's request to share the file QR code, generating a verification QR code linked to the file QR code includes: In response to a user's request to share the file QR code, obtaining user information of the user to be shared and link information of the file QR code; Based on the user information of the user to be shared and the link information of the file QR code, a verification QR code of the file QR code is generated, and the user information of the user to be shared is recorded in a corresponding record item of the file sharing table.
[0010] In an optional implementation of the first aspect of the present invention, the receiving a request from a user to scan the verification QR code and pushing a verification option to the scanning user includes: Receiving a scan request from a user for the verification QR code; Randomly obtain a content item in the user information; generating verification options for said content item; Push the verification option to the user who scans the code.
[0011] In an optional implementation of the first aspect of the present invention, the receiving verification feedback from the code scanning user and verifying the code scanning user includes: Receive verification feedback from the scanned user; extracting verification information from the verification feedback; Compare the verification information with the content item corresponding to the user information recorded in the file sharing table; If the verification information is the same as the content item corresponding to the user information, the user verification is successful; If the verification information is not identical to the content item corresponding to the user information, the verification fails.
[0012] In an optional implementation manner of the first aspect of the present invention, if the verification information is different from the content item corresponding to the user information, then after the verification fails, the method further includes: Sending manual verification information to the upload account of the file to be shared; Receive a manual verification result of the upload account of the file to be shared.
[0013] A second aspect of the present invention provides a file sharing system based on a QR code, and the file sharing system based on a QR code comprises: A file receiving module, used to receive files uploaded by users to be shared; A file QR code conversion module, used to convert the file to be shared into a file QR code; A verification QR code generation module, configured to generate a verification QR code linked to the file QR code in response to a user's request to share the file QR code; A verification QR code sending module, used to send the verification QR code to the user to be shared; A code scanning request receiving module, used to receive a user's code scanning request for the verification QR code, and push a verification option to the scanning user; A verification feedback receiving module, used to receive verification feedback from the code scanning user and verify the code scanning user; The file QR code pushing module is used to push the file QR code to the scanning user when the scanning user passes the verification.
[0014] A third aspect of the present invention provides a file sharing device based on a QR code, the file sharing device based on a QR code comprising: a memory and at least one processor, the memory storing instructions, the memory and the at least one processor being interconnected via a line; The at least one processor calls the instructions in the memory so that the QR code-based file sharing device executes the QR code-based file sharing method as described in any one of the first aspects above.
[0015] A fourth aspect of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the QR code-based file sharing method as described in any one of the first aspects above is implemented.
[0016] Beneficial effects: The present invention provides a file sharing method, system and related equipment based on QR code, the method comprising receiving a file to be shared uploaded by a user; converting the file to be shared into a file QR code; generating a verification QR code linked to the file QR code in response to a user's request to share the file QR code; sending the verification QR code to the user to be shared; receiving a user's request to scan the verification QR code, and pushing a verification option to the scanning user; receiving verification feedback from the scanning user, and verifying the scanning user; when the scanning user passes the verification, pushing the file QR code to the scanning user. According to the technical solution of the present invention, when a user browses a shared file, he needs to scan the verification QR code first to authenticate his identity, and then display the file QR code after the verification passes, which can effectively protect the security of the QR code-shared data file. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A schematic diagram of an embodiment of a file sharing method based on a QR code according to the present invention; Figure 2 A schematic diagram of the module composition of a file sharing system based on a QR code according to the present invention; Figure 3 The figure is a schematic diagram of an embodiment of a file sharing device based on a QR code according to the present invention. DETAILED DESCRIPTION
[0018] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0019] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 The first aspect of the present invention provides a file sharing method based on a QR code, comprising: S100, receiving the file to be shared uploaded by the user; in the present invention, the system provides an entry for the user to upload the file to be shared, and the user can upload with or without logging in. If the user uploads without logging in, the system will automatically generate a temporary account for the user based on the IP address.
[0020] In an optional implementation of the first aspect of the present invention, the receiving of files to be shared uploaded by users includes: receiving files to be shared uploaded by users, storing the files to be shared in a server; obtaining the upload account and storage location of the files to be shared, and generating a file sharing table recording the upload account and storage location. In the present invention, the file data uploaded by users will be placed in an externally accessible storage space, such as a company server or a third-party storage space. In order to better record the uploaded files, the system will automatically generate a file sharing table in the form of a web page for the uploaded files.
[0021] S200, converting the file to be shared into a file QR code; in the present invention, after generating the file sharing table, the system will generate a QR code for the user to scan and view the file, and the permissions of this QR code are limited to not being able to forward and not being able to take screenshots. Specifically, converting the file to be shared into a file QR code includes: converting the storage location of the file to be shared into a QR code to obtain a file QR code; binding the file QR code to the corresponding record item of the file to be shared in the file sharing table. In the present invention, the user scans the file QR code to obtain the storage address of the file, and the system will obtain the source file corresponding to the file QR code based on the storage address and push it to the user.
[0022] S300. In response to the user's request to share the file QR code, generate a verification QR code linked to the file QR code; in the present invention, when the user shares the file QR code, a verification QR code is generated to replace the file QR code and sent to the user, and the permission of the verification QR code is configured to be forwardable and shareable.
[0023] Specifically, in an optional implementation of the first aspect of the present invention, in response to the user's request to share the file QR code, generating a verification QR code linking the file QR code includes: in response to the user's request to share the file QR code, obtaining the user information of the user to be shared and the link information of the file QR code. In one case, if the user who uploads the file is a logged-in account, the way to obtain the user information of the user to be shared can be to select in the friend list. In another case, if the user who uploads the file is a temporary account, the system will generate a pop-up window for filling in the user information of the file to be shared; based on the user information of the user to be shared and the link information of the file QR code, generate a verification QR code of the file QR code, and record the user information of the user to be shared in the corresponding record item of the file sharing table. In the invention, the link information of the file QR code is encrypted in the verification QR code. Only when the identity verification of the scanning verification QR code is passed, can the decryption key of the link information be obtained, so as to return to the system to find the file QR code and push the file QR code to the user for a second scan.
[0024] S400, sending the verification QR code to the user to be shared; in the present invention, the display method of the QR code on the interface can be that the verification QR code and the file QR code share a display frame, and this display frame first displays the verification QR code for the user to scan. After the user passes the verification, the file QR code is displayed on top of the verification QR code. Of course, the verification QR code and the file QR code can also have a corresponding display frame respectively. Before the user scans and verifies, the file QR code is displayed through a blurred sample QR code. After the user scans and verifies, the file QR code is displayed over the sample QR code.
[0025] S500, receiving a user's request to scan the verification QR code, and pushing verification options to the scanning user; in the present invention, the verification options include but are not limited to face verification, mobile phone number verification, address verification or other personal information verification. In an optional implementation of the first aspect of the present invention, the receiving user's request to scan the verification QR code and pushing verification options to the scanning user include: receiving the user's request to scan the verification QR code; randomly obtaining a content item in the user information (taking the user information including the ID card information as an example, each item in the ID card information (such as headshot, address, date of birth, etc.) can be used as a content item); generating verification options for the content item (similarly taking the ID card information as an example, a specific verification option can be to enter the address of the file owner); pushing the verification options to the scanning user. In another optional implementation of the present invention, multiple verification options can also be pushed to the user together, and the user chooses one way to verify.
[0026] S600, receiving verification feedback from the scanning user, and verifying the scanning user; in this step, the system receives verification information fed back by the user. In an optional implementation of the first aspect of the present invention, receiving verification feedback from the scanning user and verifying the scanning user includes: receiving verification feedback from the scanning user; extracting verification information from the verification feedback; comparing the verification information with the content item corresponding to the user information recorded in the file sharing table; if the verification information is the same as the content item corresponding to the user information, the user verification is successful; if the verification information is different from the content item corresponding to the user information, the verification fails.
[0027] In an optional implementation of the first aspect of the present invention, if the verification information is not the same as the content item corresponding to the user information, then after the verification fails, it also includes: sending manual verification information to the upload account of the file to be shared; receiving the manual verification result of the upload account of the file to be shared. In this implementation of the present invention, when the user feedback verification fails, the system will also send a message to the uploader of the file, requesting the uploader of the file whether to grant the scanner the authority to view the file.
[0028] S700: When the scanning user passes the verification, the file QR code is pushed to the scanning user. In the present invention, after the user passes the verification, the file QR code can be obtained. The user scans the file QR code to obtain the server storage location of the file to be shared, and reads or downloads the file to be shared online.
[0029] The overall method flow of the present invention can be summarized as follows: first, the user's file information, etc. need to be placed in an externally accessible storage space, such as a company server, or a third-party storage space. If it is an important data file, etc., the customer information also needs to be stored in the server. The customer's mobile phone number, face, etc. can be stored. This is for use in verifying identity information. When the user needs to share a file, a QR code tag is generated for the file. At this time, the QR code tag can be scanned to directly view the file, but it cannot be shared with customers for direct viewing. The QR code needs to be processed by a tag module. At this time, another QR code is generated, called a verification QR code, and the verification QR code, the file QR code, and the shared customer information are bound. The verification QR code is a sub-tag, and the file QR code is a sub-tag. The QR code is the parent label, and then when it is displayed, the sub-QR code label is displayed first. When the customer scans the code, a verification request will pop up (the verification method can be mobile phone verification, face recognition, etc.). When the customer enters the mobile phone number or the customer uses face verification, the verification module will retrieve the customer information from the server based on the bound customer information (there are two points involved here. 1. The customer information is stored in the server, so you can retrieve it directly. 2. The customer information is not stored on the server, so the person who shared the QR code needs to view the verification information), and then compare it with the face or mobile phone number during verification. When the customer passes the identity verification, the parent QR code will be displayed. At this time, the customer can view the file information by scanning the code again, which completes the QR code letter label separation verification. This is different from the current method on the market where you can view files after a QR code is scanned and verified successfully. Because for the same QR code, if you encounter some people who know a little about reverse technology or hackers, you can bypass the verification through the QR code to get the file. This method has two QR code labels, a parent and a child. You need to scan the child QR code label and verify it successfully before you can get the parent QR code label. So even if a hacker gets the child QR code and analyzes it through reverse technology, the child QR code has nothing to do with the file data, and no matter how much reverse analysis is done, it will be useless. This ensures the security of the file data.
[0030] See also Figure 2 The second aspect of the present invention provides a file sharing system based on a QR code, and the file sharing system based on a QR code comprises: The file receiving module 10 is used to receive the files to be shared uploaded by the user; A file QR code conversion module 20, used to convert the file to be shared into a file QR code; A verification QR code generation module 30, for generating a verification QR code linked to the file QR code in response to a user's request to share the file QR code; A verification QR code sending module 40 is used to send the verification QR code to the user to be shared; The code scanning request receiving module 50 is used to receive a code scanning request from a user for the verification QR code and push a verification option to the scanning user; A verification feedback receiving module 60 is used to receive verification feedback from the code scanning user and verify the code scanning user; The file QR code pushing module 70 is used to push the file QR code to the scanning user when the scanning user passes the verification.
[0031] In an optional implementation of the second aspect of the present invention, the file receiving module includes: A file receiving unit, used for receiving a file to be shared uploaded by a user, and storing the file to be shared in a server; The sharing table generating unit is used to obtain the upload account and storage location of the file to be shared, and generate a file sharing table recording the upload account and storage location.
[0032] In an optional implementation of the second aspect of the present invention, the file two-dimensional code conversion module includes: A QR code conversion unit, used to convert the storage location of the file to be shared into a QR code to obtain a file QR code; The QR code binding recording unit is used to bind the file QR code to the corresponding record item of the to-be-shared file in the file sharing table.
[0033] In an optional implementation of the second aspect of the present invention, the verification QR code generation module includes: An information acquisition unit, configured to, in response to a user's request to share the file QR code, acquire user information of a user to be shared and link information of the file QR code; A verification QR code generating unit is used to generate a verification QR code for the file QR code based on the user information of the user to be shared and the link information of the file QR code, and record the user information of the user to be shared in a corresponding record item of the file sharing table.
[0034] In an optional implementation of the second aspect of the present invention, the code scanning request receiving module includes: A request receiving unit, used to receive a scan request from a user for the verification QR code; a content item acquisition unit, configured to randomly acquire a content item from the user information; Verification item generating unit for generating verification options for the content item; The verification item sending unit is used to push the verification option to the user who scans the code.
[0035] In an optional implementation of the second aspect of the present invention, the verification feedback receiving module includes: A feedback receiving unit, used to receive verification feedback from the scanning user; An information extraction unit, used to extract verification information from the verification feedback; a comparing unit, configured to compare the verification information with the content item corresponding to the user information recorded in the file sharing table; A determination unit is used to determine that the user verification is successful if the verification information is identical to the content item corresponding to the user information; and to determine that the verification is unsuccessful if the verification information is different from the content item corresponding to the user information.
[0036] In an optional implementation of the second aspect of the present invention, the verification feedback receiving module further includes: The manual verification unit is used to send manual verification information to the upload account of the file to be shared, and receive the manual verification result of the upload account of the file to be shared.
[0037] Figure 3 It is a structural schematic diagram of a QR code-based file sharing device provided by an embodiment of the present invention. The QR code-based file sharing device may have relatively large differences due to different configurations or performances, and may include one or more processors 80 (central processing units, CPU) (for example, one or more processors) and memory 90, and one or more storage media 100 for storing application programs or data (for example, one or more mass storage devices). Among them, the memory and the storage medium can be short-term storage or permanent storage. The program stored in the storage medium may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the QR code-based file sharing device. Furthermore, the processor can be configured to communicate with the storage medium and execute a series of instruction operations in the storage medium on the QR code-based file sharing device.
[0038] The QR code-based file sharing device of the present invention may also include one or more power supplies 110, one or more wired or wireless network interfaces 120, one or more input and output interfaces 130, and / or one or more operating systems, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will appreciate that Figure 3 The illustrated structure of the QR code-based file sharing device does not constitute a limitation on the QR code-based file sharing device, and may include more or fewer components than illustrated, or a combination of certain components, or a different arrangement of components.
[0039] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the QR code-based file sharing method.
[0040] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system or system or unit described above can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.
[0041] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0042] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A file sharing method based on QR code, characterized in that: include: Receive files uploaded by users to be shared; Convert the file to be shared into a file QR code; In response to a user's request to share the file QR code, generating a verification QR code linked to the file QR code; Send the verification QR code to the user to be shared; Receive a scan request from a user for the verification QR code, and push a verification option to the scanned user; Receive verification feedback from the code-scanning user and verify the code-scanning user; When the scanning user passes the verification, the file QR code is pushed to the scanning user.
2. The file sharing method based on QR code according to claim 1, characterized in that: The receiving of the file to be shared uploaded by the user includes: Receiving files to be shared uploaded by users, and storing the files to be shared in a server; The upload account and storage location of the file to be shared are obtained, and a file sharing table recording the upload account and the storage location is generated.
3. The file sharing method based on QR code according to claim 2, characterized in that: The step of converting the file to be shared into a file QR code comprises: Convert the storage location of the file to be shared into a QR code to obtain a file QR code; The file QR code is bound to the corresponding record item of the file to be shared in the file sharing table.
4. The file sharing method based on QR code according to claim 3, characterized in that: In response to the user's request to share the file QR code, generating a verification QR code linked to the file QR code includes: In response to a user's request to share the file QR code, obtaining user information of the user to be shared and link information of the file QR code; Based on the user information of the user to be shared and the link information of the file QR code, a verification QR code of the file QR code is generated, and the user information of the user to be shared is recorded in a corresponding record item of the file sharing table.
5. The file sharing method based on QR code according to claim 4, characterized in that: The receiving a request from a user to scan the verification QR code and pushing verification options to the scanning user includes: Receiving a scan request from a user for the verification QR code; Randomly obtain a content item in the user information; generating verification options for said content item; Push the verification option to the user who scans the code.
6. The file sharing method based on QR code according to claim 5, characterized in that: The receiving verification feedback from the code scanning user and verifying the code scanning user includes: Receive verification feedback from the scanned user; extracting verification information from the verification feedback; Compare the verification information with the content item corresponding to the user information recorded in the file sharing table; If the verification information is the same as the content item corresponding to the user information, the user verification is successful; If the verification information is not identical to the content item corresponding to the user information, the verification fails.
7. The file sharing method based on QR code according to claim 6, characterized in that: If the verification information is different from the content item corresponding to the user information, the method further includes: Sending manual verification information to the upload account of the file to be shared; Receive a manual verification result of the upload account of the file to be shared.
8. A file sharing system based on QR code, characterized in that: The file sharing system based on QR code includes: A file receiving module, used to receive files uploaded by users to be shared; A file QR code conversion module, used to convert the file to be shared into a file QR code; A verification QR code generation module, configured to generate a verification QR code linked to the file QR code in response to a user's request to share the file QR code; A verification QR code sending module, used to send the verification QR code to the user to be shared; A code scanning request receiving module, used to receive a user's code scanning request for the verification QR code, and push a verification option to the scanning user; A verification feedback receiving module, used to receive verification feedback from the code scanning user and verify the code scanning user; The file QR code pushing module is used to push the file QR code to the scanning user when the scanning user passes the verification.
9. A file sharing device based on a QR code, characterized in that: The QR code-based file sharing device comprises: a memory and at least one processor, the memory stores instructions, and the memory and the at least one processor are interconnected via a line; The at least one processor calls the instruction in the memory so that the QR code-based file sharing device executes the QR code-based file sharing method according to any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the QR code-based file sharing method according to any one of claims 1 to 7 is implemented.