A method, system and medium for ciphertext storage and ciphertext retrieval open cloud service
By establishing a database corresponding to user account keys on the cloud server side and encrypting the text content and retrieval information, the problem of insufficient security of ciphertext storage and ciphertext retrieval on the cloud server side in the existing technology is solved, and the security of sensitive data is realized. Effective protection and privacy guarantee.
Patent Information
- Application Number
- CN202311786924.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-22
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2043-12-22
AI Technical Summary
Existing ciphertext storage and ciphertext retrieval technology lacks sufficient security on the cloud server side and cannot effectively protect the privacy and security of text and data, especially when handling sensitive information such as finance, medical and other fields. There are security risks .
By establishing a database corresponding to user account keys and using a preset key generator model to generate public keys and private keys, after logging in with the user account, the text content, keywords and category labels are encrypted and uploaded to the cloud server, and the retrieval end is also encrypted. , the cloud server performs matching processing and returns valid matching information to the retrieval terminal for decryption, realizing an open cloud service of ciphertext storage and ciphertext retrieval.
It realizes the encrypted storage and retrieval of text and data on the cloud server, ensuring the security and privacy of data, avoiding data leakage and unauthorized access, and improving the security of cloud services.
Smart Images

Figure CN117786741B
Abstract
Description
Technical Field
[0001] The present application relates to the field of ciphertext storage and ciphertext retrieval, and more specifically, to an open cloud service method, system and medium for ciphertext storage and ciphertext retrieval. Background Art
[0002] With the rapid development of electronic information in today's society, text and data, as an element of electronic information dissemination, have played an increasingly important role in it. At present, people are inseparable from data in both work and life, so data is crucial in enterprise development or personal privacy protection. The privacy and security of text and data in transmission and retrieval are also increasingly valued. Based on this phenomenon, ciphertext storage and ciphertext retrieval have emerged. Ciphertext storage and retrieval were initially implemented on the basis of physical storage, but with the sharp increase in the number and the rapid development of cloud servers, cloud service data storage and data retrieval have become core business needs. When processing sensitive text and data, such as financial, medical and other information, how to ensure the security and privacy of text and data becomes increasingly important. For this reason, cloud server-side ciphertext storage and ciphertext retrieval technology came into being, but the existing technology still lacks certain security and cannot well protect the security of text and data.
[0003] In view of the above problems, effective technical solutions are urgently needed. Summary of the invention
[0004] The purpose of the present application is to provide a method, system and medium for ciphertext storage and ciphertext retrieval open cloud service, which can be realized by establishing an account key corresponding database, and the user account extracts keywords and categories from the text content and then encrypts them with the storage account private key and uploads them to the server. The retrieval end extracts the retrieval category and retrieval keyword label of the retrieval information and encrypts them according to the retrieval account private key, and uploads them to the cloud server after encryption, and matches the information encrypted by the retrieval end with the information uploaded by the storage end after encryption, obtains matching retrieval information and selects valid matching retrieval information, and then obtains the storage text and the corresponding public key that match the retrieval information, and sends them to the retrieval terminal for decryption, thereby realizing the technology of ciphertext storage and ciphertext retrieval open cloud service.
[0005] The present application also provides a ciphertext storage and ciphertext retrieval open cloud service method, comprising the following steps:
[0006] Obtain user account information, input the user account information into a preset key generator model to obtain corresponding key information, and establish an account key corresponding database;
[0007] The user account logs in to the access terminal and obtains the text content to be encrypted, and obtains text keywords and text category labels through a preset text annotation model;
[0008] The access terminal encrypts the text content, text keywords and text category labels according to the storage account private key to obtain an encrypted signature file information package, and sends the encrypted signature file information package to the cloud server;
[0009] The cloud server constructs a text database according to the encrypted signature file information package, processes the text database according to preset rules, and obtains keyword tags and category tags;
[0010] Acquire search information, extract search category tags and search keyword tags, encrypt the search category tags and search keyword tags to obtain an encrypted search information package, and send it to the cloud server;
[0011] Inputting the encrypted search information package, the keyword tag and the category tag into a preset matching model for matching processing to obtain matching search information;
[0012] Extract the matching degree value of the matching search information and compare it with a preset matching threshold to obtain valid matching search information;
[0013] Obtain storage account information and storage account public key information according to the valid matching retrieval information, and send the valid matching retrieval information and storage account public key information to the retrieval terminal;
[0014] The retrieval terminal decrypts the valid matching retrieval information according to the storage account public key information.
[0015] Optionally, in the ciphertext storage and ciphertext retrieval open cloud service method described in the present application, the obtaining of user account information, inputting the user account information into a preset key generator model for processing to obtain corresponding key information, and establishing an account key corresponding database specifically includes:
[0016] Obtain user account information, and input the user account information into a preset key generator model for processing to obtain corresponding key information;
[0017] The key information includes public key information and private key information;
[0018] According to the user account information, public key information and private key information, a corresponding account key corresponding database is established;
[0019] The private key information is sent to the corresponding user account, and the account key corresponding database is stored in the cloud server.
[0020] Optionally, in the ciphertext storage and ciphertext retrieval open cloud service method described in the present application, the access terminal encrypts the text content, text keywords and text category labels according to the storage account private key to obtain an encrypted signature file information package, and sends the encrypted signature file information package to the cloud server, specifically including:
[0021] The access terminal encrypts the text content, text keywords and text category labels according to the storage account private key to obtain an encrypted signature file information package;
[0022] The encrypted signature file information package includes encrypted signature text content, encrypted signature text keywords and encrypted signature text category labels;
[0023] Sending the encrypted signature file information package to the cloud server and storing it;
[0024] Among them, the text content corresponds to the encrypted signature text content, the text keywords correspond to the encrypted signature text keywords, and the text category label corresponds to the encrypted signature text category label.
[0025] Optionally, in the ciphertext storage and ciphertext retrieval open cloud service method described in the present application, the cloud server constructs a text database according to the encrypted signature file information package, processes the text database according to preset rules, and obtains keyword tags and category tags, specifically including:
[0026] The cloud server centrally stores the encrypted signature file information package to form a text database;
[0027] Classify and store the text database according to preset rules and obtain keyword tags and category tags;
[0028] Establishing a corresponding subordinate relationship between the keyword tag and the category tag;
[0029] Wherein, the category tag includes the keyword tag.
[0030] Optionally, in the ciphertext storage and ciphertext retrieval open cloud service method described in the present application, the inputting the encrypted retrieval information package, the keyword tag and the category tag into a preset matching model for matching processing to obtain matching retrieval information specifically includes:
[0031] User account login retrieval terminal;
[0032] Obtain search information, and obtain search category labels and search keyword labels through a preset text annotation model;
[0033] The search category label and the search keyword label are encrypted by the search account private key to obtain the encrypted search category label and the encrypted search keyword label;
[0034] Sending the encrypted search category tag and the encrypted search keyword tag to the cloud server, and obtaining the category tag according to the encrypted search category tag;
[0035] The encrypted search keyword tag and the keyword tag are input into a preset matching model for processing to obtain matching search information, including matching similarity information and corresponding keyword tag information.
[0036] Optionally, in the ciphertext storage and ciphertext retrieval open cloud service method described in the present application, obtaining storage account information and corresponding storage account public key information according to the effective matching retrieval information, and sending the effective matching retrieval information and storage account public key information to the retrieval terminal specifically includes:
[0037] Obtaining valid keyword tag information corresponding to the valid matching search information;
[0038] Obtaining corresponding encrypted signature text keywords and encrypted signature text content according to the valid keyword tag information;
[0039] Obtain storage account information, storage account public key information and retrieval terminal information according to the encrypted signature text keywords and the encrypted signature text content;
[0040] The encrypted signature text content and the storage account public key information are sent to the retrieval terminal.
[0041] Optionally, the ciphertext storage and ciphertext retrieval open cloud service method described in the present application further includes:
[0042] Counting the number of times the search terminal searches for the same search category tag within a preset time;
[0043] Compare the number of times with a preset search threshold to obtain search frequency status information, including frequent or infrequent;
[0044] If the retrieval frequency status information is frequent, the storage location of the category tag matching the retrieval category tag is sent to the retrieval terminal;
[0045] When the retrieval terminal retrieves the same retrieval category tag, the storage location is directly read at the retrieval terminal, and the cloud server is accessed according to the storage location.
[0046] Optionally, the ciphertext storage and ciphertext retrieval open cloud service method described in the present application further includes:
[0047] Obtaining each search category tag that the search terminal completes the search within a preset time, and obtaining the number of types of search keyword tags contained in each search category tag, and storing them as the number of search category keyword tags;
[0048] Obtain the number of keyword tag types under each category tag, and store it as the number of category keyword tag types;
[0049] Compare the number of the search category keyword tags with the number of the category keyword tags to obtain the category keyword tag coverage index;
[0050] Compare the category keyword label coverage index with a preset search coverage threshold to obtain category keyword label coverage status information, including wide coverage or narrow coverage;
[0051] If the category keyword label coverage status information is wide coverage, the public key information of all user storage accounts under the corresponding category label will be sent to the retrieval terminal.
[0052] In a second aspect, the present application provides an open cloud service system for ciphertext storage and ciphertext retrieval, the system comprising: a memory and a processor, the memory comprising a program of an open cloud service method for ciphertext storage and ciphertext retrieval, and the program of the open cloud service method for ciphertext storage and ciphertext retrieval is executed by the processor to implement the following steps:
[0053] Obtain user account information, input the user account information into a preset key generator model to obtain corresponding key information, and establish an account key corresponding database;
[0054] The user account logs in to the access terminal and obtains the text content to be encrypted, and obtains text keywords and text category labels through a preset text annotation model;
[0055] The access terminal encrypts the text content, text keywords and text category labels according to the storage account private key to obtain an encrypted signature file information package, and sends the encrypted signature file information package to the cloud server;
[0056] The cloud server constructs a text database according to the encrypted signature file information package, processes the text database according to preset rules, and obtains keyword tags and category tags;
[0057] Acquire search information, extract search category tags and search keyword tags, encrypt the search category tags and search keyword tags to obtain an encrypted search information package, and send it to the cloud server;
[0058] Inputting the encrypted search information package, the keyword tag and the category tag into a preset matching model for matching processing to obtain matching search information;
[0059] Extract the matching degree value of the matching search information and compare it with a preset matching threshold to obtain valid matching search information;
[0060] Obtain storage account information and storage account public key information according to the valid matching retrieval information, and send the valid matching retrieval information and storage account public key information to the retrieval terminal;
[0061] The retrieval terminal decrypts the valid matching retrieval information according to the storage account public key information.
[0062] In a third aspect, the present application also provides a readable storage medium, which includes an open cloud service method program for ciphertext storage and ciphertext retrieval. When the open cloud service method program for ciphertext storage and ciphertext retrieval is executed by a processor, the steps of an open cloud service method for ciphertext storage and ciphertext retrieval are implemented as described in any one of the above items.
[0063] As can be seen from the above, the ciphertext storage and ciphertext retrieval open cloud service method, system and medium provided by the present application. The method processes the user account information to establish an account key corresponding database. After logging in to the access terminal, the user account obtains the text content to be encrypted and extracts the text keywords and text category labels. The text content, text keywords and text category labels are encrypted according to the storage account private key to obtain an encrypted signature file information package, which is then uploaded to the cloud server. The encrypted signature file information package uploaded by each user account constitutes a text database, obtains the database keyword label and category label, extracts the retrieval category label and retrieval keyword label according to the retrieval information, encrypts them and sends them to the cloud server, and then matches them with the keyword label and category label to obtain matching retrieval information. The effective matching retrieval information is obtained by threshold comparison, and then the storage account and storage account public key information are obtained and sent to the retrieval terminal, thereby realizing the technology of ciphertext storage and ciphertext retrieval open cloud service.
[0064] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures particularly pointed out in the written description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0066] Figure 1 A flowchart of an open cloud service method for ciphertext storage and ciphertext retrieval provided in an embodiment of the present application;
[0067] Figure 2 A flowchart of obtaining a database corresponding to an account key in a ciphertext storage and ciphertext retrieval open cloud service method provided in an embodiment of the present application;
[0068] Figure 3 A flowchart of obtaining an encrypted signature file information package in an open cloud service method for ciphertext storage and ciphertext retrieval provided in an embodiment of the present application.
[0069] Figure 4 A flowchart of obtaining matching retrieval information for a ciphertext storage and ciphertext retrieval open cloud service method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0070] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0071] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0072] Please refer to Figure 1 , Figure 1The flowchart of the ciphertext storage and ciphertext retrieval open cloud service method in some embodiments of the present application. The ciphertext storage and ciphertext retrieval open cloud service method is used in terminal devices, such as mobile phones, computers, etc. The ciphertext storage and ciphertext retrieval open cloud service method includes the following steps:
[0073] S11, obtaining user account information, inputting the user account information into a preset key generator model for processing to obtain corresponding key information, and establishing an account key corresponding database;
[0074] S12, the user account logs in to the access terminal and obtains the text content to be encrypted, and obtains text keywords and text category labels through a preset text annotation model;
[0075] S13, the access terminal encrypts the text content, text keywords and text category labels according to the storage account private key to obtain an encrypted signature file information package, and sends the encrypted signature file information package to the cloud server;
[0076] S14, the cloud server constructs a text database according to the encrypted signature file information package, processes the text database according to preset rules, and obtains keyword tags and category tags;
[0077] S15, obtaining search information, extracting search category tags and search keyword tags, encrypting the search category tags and search keyword tags to obtain an encrypted search information package, and sending the encrypted search information package to the cloud server;
[0078] S16, inputting the encrypted search information package, the keyword tag and the category tag into a preset matching model for matching processing to obtain matching search information;
[0079] S17, extracting the matching degree value of the matching search information and comparing it with a preset matching threshold to obtain valid matching search information;
[0080] S18, obtaining storage account information and storage account public key information according to the valid matching retrieval information, and sending the valid matching retrieval information and storage account public key information to the retrieval terminal;
[0081] S19. The retrieval terminal decrypts the valid matching retrieval information according to the storage account public key information.
[0082] Among them, in order to realize the open cloud service of ciphertext storage and ciphertext retrieval, user account information must be established first. Each user account information is processed through a preset key generator model to obtain the corresponding key information, including public key information and private key information. An account key corresponding database is established according to the account and the corresponding key information. After the user account logs in to the access terminal, the text content to be encrypted is obtained, and the text content is input into the preset text annotation model to obtain text keywords and text category labels. The access terminal encrypts the text content, text keywords and text category labels according to the storage account private key, and then obtains an encrypted signature file information package, including encrypted signature text content, encrypted signature text keywords and encrypted signature. Text category label, and then send the encrypted signature file information package to the cloud server. After receiving the encrypted signature file information package of each user account, the cloud server builds a text database, processes the text database according to the preset rules, obtains the keyword label and category label, and the search terminal obtains the search information, and extracts the search category label and the search keyword label according to the search information. The search category label and the search keyword label are encrypted to obtain the encrypted search information package, and sent to the cloud server; in the cloud server, the encrypted search information package, the keyword label and the category label are input into the preset matching model for matching processing to obtain the matching search information, including the matching similarity information and the corresponding keyword label information. The matching value in the matching search information is extracted and compared with the preset matching threshold value, and the information exceeding the threshold value is the valid matching search information; according to the corresponding valid matching search information, the valid keyword label can be obtained, and the encrypted signature text keyword can be obtained according to the valid keyword, so as to obtain the encrypted signature text content. Since the signature of each user account is different, the storage account information and the storage account public key information can be obtained. At the same time, the valid matching search information and the storage account public key information are sent to the search terminal, and the search terminal decrypts according to the storage account public key information to finally obtain the search content.
[0083] Please refer to Figure 2 , Figure 2 The flowchart of obtaining the account key corresponding database of a ciphertext storage and ciphertext retrieval open cloud service method provided by the embodiment of the present application. According to the embodiment of the present invention, the user account information is obtained, the user account information is input into the preset key generator model for processing to obtain the corresponding key information, and the account key corresponding database is established, specifically including:
[0084] S21, obtaining user account information, and inputting the user account information into a preset key generator model for processing to obtain corresponding key information;
[0085] S22, the key information includes public key information and private key information;
[0086] S23, establishing a corresponding account key corresponding database according to the user account information, public key information and private key information;
[0087] S24. Send the private key information to the corresponding user account, and store the account key corresponding database in the cloud server.
[0088] Among them, the user account information is the user account registered by the user in the ciphertext storage and ciphertext retrieval open cloud service system. The account is unique and the account is authorized and managed by the administrator. The user account information is input into the key generator model. The model processes and obtains the corresponding unique key information according to the different user accounts, including public key information and private key information. After the private key is encrypted, the public key can be decrypted. In order to ensure the security of text or data, each account has a corresponding unique public key and private key. The user account and key information corresponding to each account are stored one by one, and an account key correspondence database is established. The key information can be queried according to the user account through the database, and the user account can also be queried according to the key information. After the key is generated, the private key will be sent to the user account for encryption, and the account key correspondence database is stored in the cloud server.
[0089] Please refer to Figure 3 , Figure 3 The flowchart of obtaining an encrypted signature file information package of an open cloud service method for ciphertext storage and ciphertext retrieval provided by an embodiment of the present application. According to an embodiment of the present invention, the access terminal encrypts the text content, text keywords and text category labels according to the storage account private key to obtain an encrypted signature file information package, and sends the encrypted signature file information package to the cloud server, specifically including:
[0090] S31, the access terminal encrypts the text content, text keywords and text category labels according to the storage account private key to obtain an encrypted signature file information package;
[0091] S32, the encrypted signature file information package includes encrypted signature text content, encrypted signature text keywords and encrypted signature text category labels;
[0092] S33, sending the encrypted signature file information package to the cloud server and storing it;
[0093] S34, wherein the text content corresponds to the encrypted signature text content, the text keywords correspond to the encrypted signature text keywords, and the text category label corresponds to the encrypted signature text category label.
[0094] Among them, in the ciphertext storage link, after the user account logs in to the access terminal, the text content, text keywords and text category labels are obtained. The text keywords are key words extracted from the text that can express the text content. The text category labels classify the text keywords, and the text keywords belonging to the same category are aggregated into text category labels. The above content is encrypted according to the storage account private key to obtain an encrypted signature file information package. In this embodiment, during the encryption process, the signature of the user account is also added to the encrypted text to trace and confirm the source of the text. The encrypted signature file information package includes the encrypted signature text content, the encrypted signature text keywords and the encrypted signature text category labels. The corresponding relationship between them is: the text content corresponds to the encrypted signature text content, the text keywords correspond to the encrypted signature text keywords, and the text category labels correspond to the encrypted signature text category labels. The encrypted signature file information package is sent to the cloud server and stored. Encryption at the access terminal is to prevent security risks such as leakage of data or text during transmission.
[0095] According to an embodiment of the present invention, the cloud server constructs a text database according to the encrypted signature file information package, processes the text database according to preset rules, and obtains keyword tags and category tags, specifically including:
[0096] The cloud server centrally stores the encrypted signature file information package to form a text database;
[0097] Classify and store the text database according to preset rules and obtain keyword tags and category tags;
[0098] Establishing a corresponding subordinate relationship between the keyword tag and the category tag;
[0099] Wherein, the category tag includes the keyword tag.
[0100] It should be noted that after receiving the encrypted signature file information package, the cloud server stores it centrally to form a text database. The text database stores a large amount of encrypted signature text content, encrypted signature text keywords and encrypted signature text category labels. In order to facilitate searching, the text database is classified and stored according to preset rules to obtain keyword tags and category tags, and the keyword tags are matched with the corresponding category tags according to the attribute relationship. In terms of subordinate relationship, the keyword tag is subordinate to the category tag, and there can be many keyword tags of the same category under the category tag.
[0101] Please refer to Figure 4 , Figure 4The flowchart of obtaining matching search information of a ciphertext storage and ciphertext retrieval open cloud service method provided by an embodiment of the present application. According to an embodiment of the present invention, the encrypted search information package, the keyword tag and the category tag are input into a preset matching model for matching processing to obtain matching search information, specifically including:
[0102] S41, user account logs in to the retrieval terminal;
[0103] S42, obtaining search information, and obtaining search category labels and search keyword labels through a preset text annotation model;
[0104] S43, the search category label and the search keyword label are encrypted by the search account private key to obtain an encrypted search category label and an encrypted search keyword label;
[0105] S44, sending the encrypted search category tag and the encrypted search keyword tag to the cloud server, and obtaining the category tag according to the encrypted search category tag;
[0106] S45: Input the encrypted search keyword tag and the keyword tag into a preset matching model for processing to obtain matching search information, including matching similarity information and corresponding keyword tag information.
[0107] Among them, the user account logs in to the search terminal, obtains the search information after successful login, and inputs the search information into the preset text annotation model for processing to obtain the search category label and the search keyword label. The search keyword label refers to the key words in the search information that can reflect the search meaning, and the search category label is the attribute of the search information category. Since the text or data stored in the cloud server is encrypted, in order to prevent the search information from being leaked during transmission or to be able to match it better and faster in the cloud, the search information is also encrypted in the search terminal, and the search category label and the search keyword label are encrypted by the search account private key to obtain the encrypted search category label and the encrypted search keyword label, and then the encrypted search The search category label and the encrypted search keyword label are sent to the cloud server, and the category label is obtained according to the encrypted search category label. After obtaining the category label, the relationship between the encrypted search keyword label and the keyword label is confirmed, so that the corresponding keywords can be matched more quickly. After matching, the encrypted search keyword label and the keyword label are input into the preset matching model for processing, including comparing the similarity of the search keyword label with the keyword label to obtain the matching similarity. The higher the similarity, the more similar the keyword label is to the encrypted search keyword label, and the greater the possibility of the desired search result. After processing, the matching search information is obtained, including the matching similarity information and the corresponding keyword label information.
[0108] According to an embodiment of the present invention, obtaining storage account information and corresponding storage account public key information according to the effective matching retrieval information, and sending the effective matching retrieval information and storage account public key information to the retrieval terminal specifically includes:
[0109] Obtaining valid keyword tag information corresponding to the valid matching search information;
[0110] Obtaining corresponding encrypted signature text keywords and encrypted signature text content according to the valid keyword tag information;
[0111] Obtain storage account information, storage account public key information and retrieval terminal information according to the encrypted signature text keywords and the encrypted signature text content;
[0112] The encrypted signature text content and the storage account public key information are sent to the retrieval terminal.
[0113] It should be noted that effective matching retrieval information refers to matching retrieval information that is closer to the retrieval information after comparison with the preset matching threshold. After obtaining the effective matching retrieval information, the effective keyword label information is obtained according to the effective matching retrieval information. The effective keyword label information is the keyword label in the effective matching retrieval information. Then, the corresponding encrypted signature text keyword and encrypted signature text content are obtained according to the effective keyword label information. Then, according to the signature information therein, the storage account information, storage account public key information and retrieval terminal information can be traced back. The encrypted signature text content and storage account public key information obtained by tracing back are sent to the retrieval terminal, and the retrieval terminal decrypts and reads according to the information obtained.
[0114] According to an embodiment of the present invention, it also includes:
[0115] Counting the number of times the search terminal searches for the same search category tag within a preset time;
[0116] Compare the number of times with a preset search threshold to obtain search frequency status information, including frequent or infrequent;
[0117] If the retrieval frequency status information is frequent, the storage location of the category tag matching the retrieval category tag is sent to the retrieval terminal;
[0118] When the retrieval terminal retrieves the same retrieval category tag, the storage location is directly read at the retrieval terminal, and the cloud server is accessed according to the storage location.
[0119] Among them, when the user account frequently searches for the same search category tag in the retrieval terminal, it means that the user has more needs for this search category tag and wants to understand the category tag in depth and in many aspects. In order to allow users to retrieve the required category tags more conveniently and quickly, the number of times the retrieval terminal retrieves the same retrieval category tag within a preset time is counted. In this embodiment, the preset time is set to 7 days. The management user can customize the time limit according to needs, compare the statistical number with the preset retrieval threshold, and obtain retrieval frequency status information, including frequent or infrequent. In this embodiment, the retrieval threshold is 5. When the number of retrievals counted within 7 days is greater than 5 times, the retrieval frequency status information is frequent. When the number of retrievals counted within 7 days is less than or equal to 5 times, the retrieval frequency status information is infrequent. If the retrieval frequency status information is frequent, the storage location of the category tag corresponding to the retrieval category tag is sent to the retrieval terminal and stored. When the retrieval terminal retrieves the same retrieval category tag, the storage location information can be directly read locally at the retrieval terminal, and the cloud server can be directly accessed according to the read storage location information.
[0120] According to an embodiment of the present invention, it also includes:
[0121] Obtaining each search category tag that the search terminal completes the search within a preset time, and obtaining the number of types of search keyword tags contained in each search category tag, and storing them as the number of search category keyword tags;
[0122] Obtain the number of keyword tag types under each category tag, and store it as the number of category keyword tag types;
[0123] Compare the number of the search category keyword tags with the number of the category keyword tags to obtain the category keyword tag coverage index;
[0124] Compare the category keyword label coverage index with a preset search coverage threshold to obtain category keyword label coverage status information, including wide coverage or narrow coverage;
[0125] If the category keyword label coverage status information is wide coverage, the public key information of all user storage accounts under the corresponding category label will be sent to the retrieval terminal.
[0126] Among them, the number of types of search keyword tags under each search category tag searched by the search terminal within a preset time is counted and stored as the number of search category keyword tags. The number of search category keyword tags is the number of types of search keyword tags contained under a search category tag. The number of keyword tag types under each category tag is obtained and stored as the number of category keyword tags. The number of category keyword tags is the number of types of keyword tags contained under a category tag. The number of search category keyword tags is compared with the number of category keyword tags, wherein the number of search category keyword tags is the numerator and the number of category keyword tags is the denominator. The category keyword tag coverage index is calculated, that is, the keyword tags that have been searched under the category tag. The ratio of the number of keyword tags under the category tag to the number of keyword tags under the category tag, compare the category keyword tag coverage index with the preset retrieval coverage threshold, and obtain the category keyword tag coverage status information, including wide coverage or narrow coverage. Wide coverage means that the category keyword tag coverage index is high. In this embodiment, the preset time is 30 days, and it can also be customized according to user needs. The retrieval coverage threshold is set to: [0, 0.6), the category keyword tag coverage status information is narrow coverage; [0.6, 1]. When the calculated category keyword tag coverage index is 0.85, the category keyword tag coverage status information is wide coverage. If the category keyword tag coverage status information is wide coverage, all user storage account public key information under the corresponding category tag will be sent to the retrieval terminal.
[0127] The present invention also discloses an open cloud service system for ciphertext storage and ciphertext retrieval, comprising a memory and a processor, wherein the memory comprises an open cloud service method program for ciphertext storage and ciphertext retrieval, and when the open cloud service method program for ciphertext storage and ciphertext retrieval is executed by the processor, the following steps are implemented:
[0128] Obtain user account information, input the user account information into a preset key generator model to obtain corresponding key information, and establish an account key corresponding database;
[0129] The user account logs in to the access terminal and obtains the text content to be encrypted, and obtains text keywords and text category labels through a preset text annotation model;
[0130] The access terminal encrypts the text content, text keywords and text category labels according to the storage account private key to obtain an encrypted signature file information package, and sends the encrypted signature file information package to the cloud server;
[0131] The cloud server constructs a text database according to the encrypted signature file information package, processes the text database according to preset rules, and obtains keyword tags and category tags;
[0132] Acquire search information, extract search category tags and search keyword tags, encrypt the search category tags and search keyword tags to obtain an encrypted search information package, and send it to the cloud server;
[0133] Inputting the encrypted search information package, the keyword tag and the category tag into a preset matching model for matching processing to obtain matching search information;
[0134] Extract the matching degree value of the matching search information and compare it with a preset matching threshold to obtain valid matching search information;
[0135] Obtain storage account information and storage account public key information according to the valid matching retrieval information, and send the valid matching retrieval information and storage account public key information to the retrieval terminal;
[0136] The retrieval terminal decrypts the valid matching retrieval information according to the storage account public key information.
[0137] Among them, in order to realize the open cloud service of ciphertext storage and ciphertext retrieval, user account information must be established first. Each user account information is processed through a preset key generator model to obtain the corresponding key information, including public key information and private key information. An account key corresponding database is established according to the account and the corresponding key information. After the user account logs in to the access terminal, the text content to be encrypted is obtained, and the text content is input into the preset text annotation model to obtain text keywords and text category labels. The access terminal encrypts the text content, text keywords and text category labels according to the storage account private key, and then obtains an encrypted signature file information package, including encrypted signature text content, encrypted signature text keywords and encrypted signature. Text category label, and then send the encrypted signature file information package to the cloud server. After receiving the encrypted signature file information package of each user account, the cloud server builds a text database, processes the text database according to the preset rules, obtains the keyword label and category label, and the search terminal obtains the search information, and extracts the search category label and the search keyword label according to the search information. The search category label and the search keyword label are encrypted to obtain the encrypted search information package, and sent to the cloud server; in the cloud server, the encrypted search information package, the keyword label and the category label are input into the preset matching model for matching processing to obtain the matching search information, including the matching similarity information and the corresponding keyword label information. The matching value in the matching search information is extracted and compared with the preset matching threshold value, and the information exceeding the threshold value is the valid matching search information; according to the corresponding valid matching search information, the valid keyword label can be obtained, and the encrypted signature text keyword can be obtained according to the valid keyword, so as to obtain the encrypted signature text content. Since the signature of each user account is different, the storage account information and the storage account public key information can be obtained. At the same time, the valid matching search information and the storage account public key information are sent to the search terminal, and the search terminal decrypts according to the storage account public key information to finally obtain the search content.
[0138] According to an embodiment of the present invention, the obtaining of user account information, inputting the user account information into a preset key generator model for processing to obtain corresponding key information, and establishing an account key correspondence database specifically includes:
[0139] Obtain user account information, and input the user account information into a preset key generator model for processing to obtain corresponding key information;
[0140] The key information includes public key information and private key information;
[0141] According to the user account information, public key information and private key information, a corresponding account key corresponding database is established;
[0142] The private key information is sent to the corresponding user account, and the account key corresponding database is stored in the cloud server.
[0143] Among them, the user account information is the user account registered by the user in the ciphertext storage and ciphertext retrieval open cloud service system. The account is unique and the account is authorized and managed by the administrator. The user account information is input into the key generator model. The model processes and obtains the corresponding unique key information according to the different user accounts, including public key information and private key information. After the private key is encrypted, the public key can be decrypted. In order to ensure the security of text or data, each account has a corresponding unique public key and private key. The user account and key information corresponding to each account are stored one by one, and an account key correspondence database is established. The key information can be queried according to the user account through the database, and the user account can also be queried according to the key information. After the key is generated, the private key will be sent to the user account for encryption, and the account key correspondence database is stored in the cloud server.
[0144] According to an embodiment of the present invention, the access terminal encrypts the text content, text keywords and text category labels according to the storage account private key to obtain an encrypted signature file information package, and sends the encrypted signature file information package to the cloud server, specifically including:
[0145] The access terminal encrypts the text content, text keywords and text category labels according to the storage account private key to obtain an encrypted signature file information package;
[0146] The encrypted signature file information package includes encrypted signature text content, encrypted signature text keywords and encrypted signature text category labels;
[0147] Sending the encrypted signature file information package to the cloud server and storing it;
[0148] Among them, the text content corresponds to the encrypted signature text content, the text keywords correspond to the encrypted signature text keywords, and the text category label corresponds to the encrypted signature text category label.
[0149] Among them, in the ciphertext storage link, after the user account logs in to the access terminal, the text content, text keywords and text category labels are obtained. The text keywords are key words extracted from the text that can express the text content. The text category labels classify the text keywords, and the text keywords belonging to the same category are aggregated into text category labels. The above content is encrypted according to the storage account private key to obtain an encrypted signature file information package. In this embodiment, during the encryption process, the signature of the user account is also added to the encrypted text to trace and confirm the source of the text. The encrypted signature file information package includes the encrypted signature text content, the encrypted signature text keywords and the encrypted signature text category labels. The corresponding relationship between them is: the text content corresponds to the encrypted signature text content, the text keywords correspond to the encrypted signature text keywords, and the text category labels correspond to the encrypted signature text category labels. The encrypted signature file information package is sent to the cloud server and stored. Encryption at the access terminal is to prevent security risks such as leakage of data or text during transmission.
[0150] According to an embodiment of the present invention, the cloud server constructs a text database according to the encrypted signature file information package, processes the text database according to preset rules, and obtains keyword tags and category tags, specifically including:
[0151] The cloud server centrally stores the encrypted signature file information package to form a text database;
[0152] Classify and store the text database according to preset rules and obtain keyword tags and category tags;
[0153] Establishing a corresponding subordinate relationship between the keyword tag and the category tag;
[0154] Wherein, the category tag includes the keyword tag.
[0155] It should be noted that after receiving the encrypted signature file information package, the cloud server stores it centrally to form a text database. The text database stores a large amount of encrypted signature text content, encrypted signature text keywords and encrypted signature text category labels. In order to facilitate search,
[0156] The text database is classified and stored according to preset rules to obtain keyword tags and category tags, and the keyword tags are matched with the corresponding category tags according to the attribute relationship. In terms of subordinate relationship, the keyword tag is subordinate to the category tag, and there can be many keyword tags of the same category under the category tag.
[0157] According to an embodiment of the present invention, the step of inputting the encrypted search information package, the keyword tag, and the category tag into a preset matching model for matching processing to obtain matching search information specifically includes:
[0158] User account login retrieval terminal;
[0159] Obtain search information, and obtain search category labels and search keyword labels through a preset text annotation model;
[0160] The search category label and the search keyword label are encrypted by the search account private key to obtain the encrypted search category label and the encrypted search keyword label;
[0161] Sending the encrypted search category tag and the encrypted search keyword tag to the cloud server, and obtaining the category tag according to the encrypted search category tag;
[0162] The encrypted search keyword tag and the keyword tag are input into a preset matching model for processing to obtain matching search information, including matching similarity information and corresponding keyword tag information.
[0163] Among them, the user account logs in to the search terminal, obtains the search information after successful login, and inputs the search information into the preset text annotation model for processing to obtain the search category label and the search keyword label. The search keyword label refers to the key words in the search information that can reflect the search meaning, and the search category label is the attribute of the search information category. Since the text or data stored in the cloud server is encrypted, in order to prevent the search information from being leaked during transmission or to be able to match it better and faster in the cloud, the search information is also encrypted in the search terminal, and the search category label and the search keyword label are encrypted by the search account private key to obtain the encrypted search category label and the encrypted search keyword label, and then the encrypted search The search category label and the encrypted search keyword label are sent to the cloud server, and the category label is obtained according to the encrypted search category label. After obtaining the category label, the relationship between the encrypted search keyword label and the keyword label is confirmed, so that the corresponding keywords can be matched more quickly. After matching, the encrypted search keyword label and the keyword label are input into the preset matching model for processing, including comparing the similarity of the search keyword label with the keyword label to obtain the matching similarity. The higher the similarity, the more similar the keyword label is to the encrypted search keyword label, and the greater the possibility of the desired search result. After processing, the matching search information is obtained, including the matching similarity information and the corresponding keyword label information.
[0164] According to an embodiment of the present invention, obtaining storage account information and corresponding storage account public key information according to the effective matching retrieval information, and sending the effective matching retrieval information and storage account public key information to the retrieval terminal specifically includes:
[0165] Obtaining valid keyword tag information corresponding to the valid matching search information;
[0166] Obtaining corresponding encrypted signature text keywords and encrypted signature text content according to the valid keyword tag information;
[0167] Obtain storage account information, storage account public key information and retrieval terminal information according to the encrypted signature text keywords and the encrypted signature text content;
[0168] The encrypted signature text content and the storage account public key information are sent to the retrieval terminal.
[0169] It should be noted that effective matching retrieval information refers to matching retrieval information that is closer to the retrieval information after comparison with the preset matching threshold. After obtaining the effective matching retrieval information, the effective keyword label information is obtained according to the effective matching retrieval information. The effective keyword label information is the keyword label in the effective matching retrieval information. Then, the corresponding encrypted signature text keyword and encrypted signature text content are obtained according to the effective keyword label information. Then, according to the signature information therein, the storage account information, storage account public key information and retrieval terminal information can be traced back. The encrypted signature text content and storage account public key information obtained by tracing back are sent to the retrieval terminal, and the retrieval terminal decrypts and reads according to the information obtained.
[0170] According to an embodiment of the present invention, it also includes:
[0171] Counting the number of times the search terminal searches for the same search category tag within a preset time;
[0172] Compare the number of times with a preset search threshold to obtain search frequency status information, including frequent or infrequent;
[0173] If the retrieval frequency status information is frequent, the storage location of the category tag matching the retrieval category tag is sent to the retrieval terminal;
[0174] When the retrieval terminal retrieves the same retrieval category tag, the storage location is directly read at the retrieval terminal, and the cloud server is accessed according to the storage location.
[0175] Among them, when the user account frequently searches for the same search category tag in the retrieval terminal, it means that the user has more needs for this search category tag and wants to understand the category tag in depth and in many aspects. In order to allow users to retrieve the required category tags more conveniently and quickly, the number of times the retrieval terminal retrieves the same retrieval category tag within a preset time is counted. In this embodiment, the preset time is set to 7 days. The management user can customize the time limit according to needs, compare the statistical number with the preset retrieval threshold, and obtain retrieval frequency status information, including frequent or infrequent. In this embodiment, the retrieval threshold is 5. When the number of retrievals counted within 7 days is greater than 5 times, the retrieval frequency status information is frequent. When the number of retrievals counted within 7 days is less than or equal to 5 times, the retrieval frequency status information is infrequent. If the retrieval frequency status information is frequent, the storage location of the category tag corresponding to the retrieval category tag is sent to the retrieval terminal and stored. When the retrieval terminal retrieves the same retrieval category tag, the storage location information can be directly read locally at the retrieval terminal, and the cloud server can be directly accessed according to the read storage location information.
[0176] According to an embodiment of the present invention, it also includes:
[0177] Obtaining each search category tag that the search terminal completes the search within a preset time, and obtaining the number of types of search keyword tags contained in each search category tag, and storing them as the number of search category keyword tags;
[0178] Obtain the number of keyword tag types under each category tag, and store it as the number of category keyword tag types;
[0179] Compare the number of the search category keyword tags with the number of the category keyword tags to obtain the category keyword tag coverage index;
[0180] Compare the category keyword label coverage index with a preset search coverage threshold to obtain category keyword label coverage status information, including wide coverage or narrow coverage;
[0181] If the category keyword label coverage status information is wide coverage, the public key information of all user storage accounts under the corresponding category label will be sent to the retrieval terminal.
[0182] Among them, the number of types of search keyword tags under each search category tag searched by the search terminal within a preset time is counted and stored as the number of search category keyword tags. The number of search category keyword tags is the number of types of search keyword tags contained under a search category tag. The number of keyword tag types under each category tag is obtained and stored as the number of category keyword tags. The number of category keyword tags is the number of types of keyword tags contained under a category tag. The number of search category keyword tags is compared with the number of category keyword tags, wherein the number of search category keyword tags is the numerator and the number of category keyword tags is the denominator. The category keyword tag coverage index is calculated, that is, the keyword tags that have been searched under the category tag. The ratio of the number of keyword tags under the category tag to the number of keyword tags under the category tag, compare the category keyword tag coverage index with the preset retrieval coverage threshold, and obtain the category keyword tag coverage status information, including wide coverage or narrow coverage. Wide coverage means that the category keyword tag coverage index is high. In this embodiment, the preset time is 30 days, and it can also be customized according to user needs. The retrieval coverage threshold is set to: [0, 0.6), the category keyword tag coverage status information is narrow coverage; [0.6, 1]. When the calculated category keyword tag coverage index is 0.85, the category keyword tag coverage status information is wide coverage. If the category keyword tag coverage status information is wide coverage, all user storage account public key information under the corresponding category tag will be sent to the retrieval terminal.
[0183] A third aspect of the present invention provides a readable storage medium, which includes a ciphertext storage and ciphertext retrieval open cloud service method program. When the ciphertext storage and ciphertext retrieval open cloud service method program is executed by a processor, the steps of a ciphertext storage and ciphertext retrieval open cloud service method as described in any one of the above items are implemented.
[0184] The present invention discloses an open cloud service method, system and medium for ciphertext storage and ciphertext retrieval, which processes user account information to establish an account key corresponding database, obtains text content to be encrypted and extracts text keywords and text category labels after logging in to an access terminal, encrypts the text content, text keywords and text category labels according to a storage account private key to obtain an encrypted signature file information package, which is then uploaded to a cloud server, and the encrypted signature file information packages uploaded by each user account constitute a text database, obtain database keyword labels and category labels, extract retrieval category labels and retrieval keyword labels according to retrieval information, encrypt and send to the cloud server, and then match with keyword labels and category labels to obtain matching retrieval information, obtain effective matching retrieval information through threshold comparison, and then obtain the storage account and storage account public key information and send to the retrieval terminal.
[0185] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0186] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0187] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0188] Those skilled in the art can understand that: all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a readable storage medium. When the program is executed, it executes the steps of the above method embodiments; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), disks or optical disks, and other media that can store program codes.
[0189] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
Claims
1. A method for open cloud service of ciphertext storage and ciphertext retrieval, It is characterized in that include: Obtain user account information, input the user account information into a preset key generator model to obtain corresponding key information, and establish an account key corresponding database; The user account logs in to the access terminal and obtains the text content to be encrypted, and obtains text keywords and text category labels through a preset text annotation model; The access terminal encrypts the text content, text keywords and text category labels according to the storage account private key to obtain an encrypted signature file information package, and sends the encrypted signature file information package to the cloud server; The cloud server constructs a text database according to the encrypted signature file information package, processes the text database according to preset rules, and obtains keyword tags and category tags; Acquire search information, extract search category tags and search keyword tags, encrypt the search category tags and search keyword tags to obtain an encrypted search information package, and send it to the cloud server; Inputting the encrypted search information package, the keyword tag and the category tag into a preset matching model for matching processing to obtain matching search information; Extract the matching degree value of the matching search information and compare it with a preset matching threshold to obtain valid matching search information; Obtain storage account information and storage account public key information according to the valid matching retrieval information, and send the valid matching retrieval information and storage account public key information to the retrieval terminal; The retrieval terminal decrypts the valid matching retrieval information according to the storage account public key information; The obtaining of user account information, inputting the user account information into a preset key generator model for processing to obtain corresponding key information, and establishing an account key corresponding database specifically includes: Obtain user account information, and input the user account information into a preset key generator model for processing to obtain corresponding key information; The key information includes public key information and private key information; According to the user account information, public key information and private key information, a corresponding account key corresponding database is established; The private key information is sent to the corresponding user account, and the account key corresponding database is stored in the cloud server; The cloud server constructs a text database according to the encrypted signature file information package, processes the text database according to preset rules, and obtains keyword tags and category tags, specifically including: The cloud server centrally stores the encrypted signature file information package to form a text database; Classify and store the text database according to preset rules and obtain keyword tags and category tags; Establishing a corresponding subordinate relationship between the keyword tag and the category tag; The category tag includes the keyword tag, that is, the text keywords are classified; The step of inputting the encrypted search information package, the keyword tag and the category tag into a preset matching model for matching processing to obtain matching search information specifically includes: User account login retrieval terminal; Obtain search information, and obtain search category labels and search keyword labels through a preset text annotation model; The search category label and the search keyword label are encrypted by the search account private key to obtain the encrypted search category label and the encrypted search keyword label; Sending the encrypted search category tag and the encrypted search keyword tag to the cloud server, and obtaining the category tag according to the encrypted search category tag; The encrypted search keyword tag and the keyword tag are input into a preset matching model for processing to obtain matching search information, including matching similarity information and corresponding keyword tag information.
2. The ciphertext storage and ciphertext retrieval open cloud service method according to claim 1, It is characterized in that The access terminal encrypts the text content, text keywords and text category labels according to the storage account private key to obtain an encrypted signature file information package, and sends the encrypted signature file information package to the cloud server, specifically including: The access terminal encrypts the text content, text keywords and text category labels according to the storage account private key to obtain an encrypted signature file information package; The encrypted signature file information package includes encrypted signature text content, encrypted signature text keywords and encrypted signature text category labels; Sending the encrypted signature file information package to the cloud server and storing it; Among them, the text content corresponds to the encrypted signature text content, the text keywords correspond to the encrypted signature text keywords, and the text category label corresponds to the encrypted signature text category label.
3. The method for storing and retrieving encrypted text in an open cloud service according to claim 2, It is characterized in that The obtaining storage account information and corresponding storage account public key information according to the effective matching retrieval information, and sending the effective matching retrieval information and storage account public key information to the retrieval terminal specifically includes: Obtaining valid keyword tag information corresponding to the valid matching search information; Obtaining corresponding encrypted signature text keywords and encrypted signature text content according to the valid keyword tag information; Obtain storage account information, storage account public key information and retrieval terminal information according to the encrypted signature text keywords and the encrypted signature text content; The encrypted signature text content and the storage account public key information are sent to the retrieval terminal.
4. The method for storing and retrieving encrypted text in an open cloud service according to claim 3, It is characterized in that Also includes: Counting the number of times the search terminal searches for the same search category tag within a preset time; Compare the number of times with a preset search threshold to obtain search frequency status information, including frequent or infrequent; If the retrieval frequency status information is frequent, the storage location of the category tag matching the retrieval category tag is sent to the retrieval terminal; When the retrieval terminal retrieves the same retrieval category tag, the storage location is directly read at the retrieval terminal, and the cloud server is accessed according to the storage location.
5. The method for storing and retrieving encrypted text in an open cloud service according to claim 4, It is characterized in that Also includes: Counting the number of types of search keyword tags of each search category tag of the search terminal within a preset time, and storing it as the number of search category keyword tags; Obtain the number of keyword tag types under each category tag, and store it as the number of category keyword tag types; Compare the number of the search category keyword tags with the number of the category keyword tags to obtain the category keyword tag coverage index; Compare the category keyword label coverage index with a preset search coverage threshold to obtain category keyword label coverage status information, including wide coverage and narrow coverage; If the category keyword label coverage status information is wide coverage, the public key information of all user storage accounts under the corresponding category label will be sent to the retrieval terminal.
6. An open cloud service system for ciphertext storage and ciphertext retrieval, It is characterized in that The method comprises a memory and a processor, wherein the memory comprises a ciphertext storage and ciphertext retrieval open cloud service method program, and when the ciphertext storage and ciphertext retrieval open cloud service method program is executed by the processor, the following steps are implemented: Obtain user account information, input the user account information into a preset key generator model to obtain corresponding key information, and establish an account key corresponding database; The user account logs in to the access terminal and obtains the text content to be encrypted, and obtains text keywords and text category labels through a preset text annotation model; The access terminal encrypts the text content, text keywords and text category labels according to the storage account private key to obtain an encrypted signature file information package, and sends the encrypted signature file information package to the cloud server; The cloud server constructs a text database according to the encrypted signature file information package, processes the text database according to preset rules, and obtains keyword tags and category tags; Acquire search information, extract search category tags and search keyword tags, encrypt the search category tags and search keyword tags to obtain an encrypted search information package, and send it to the cloud server; Inputting the encrypted search information package, the keyword tag and the category tag into a preset matching model for matching processing to obtain matching search information; Extract the matching degree value of the matching search information and compare it with a preset matching threshold to obtain valid matching search information; Obtain storage account information and storage account public key information according to the valid matching retrieval information, and send the valid matching retrieval information and storage account public key information to the retrieval terminal; The retrieval terminal decrypts the valid matching retrieval information according to the storage account public key information; The obtaining of user account information, inputting the user account information into a preset key generator model for processing to obtain corresponding key information, and establishing an account key corresponding database specifically includes: Obtain user account information, and input the user account information into a preset key generator model for processing to obtain corresponding key information; The key information includes public key information and private key information; According to the user account information, public key information and private key information, a corresponding account key corresponding database is established; The private key information is sent to the corresponding user account, and the account key corresponding database is stored in the cloud server; The cloud server constructs a text database according to the encrypted signature file information package, processes the text database according to preset rules, and obtains keyword tags and category tags, specifically including: The cloud server centrally stores the encrypted signature file information package to form a text database; Classify and store the text database according to preset rules and obtain keyword tags and category tags; Establishing a corresponding subordinate relationship between the keyword tag and the category tag; The category tag includes the keyword tag, that is, the text keywords are classified; The step of inputting the encrypted search information package, the keyword tag and the category tag into a preset matching model for matching processing to obtain matching search information specifically includes: User account login retrieval terminal; Obtain search information, and obtain search category labels and search keyword labels through a preset text annotation model; The search category label and the search keyword label are encrypted by the search account private key to obtain the encrypted search category label and the encrypted search keyword label; Sending the encrypted search category tag and the encrypted search keyword tag to the cloud server, and obtaining the category tag according to the encrypted search category tag; The encrypted search keyword tag and the keyword tag are input into a preset matching model for processing to obtain matching search information, including matching similarity information and corresponding keyword tag information.
7. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a ciphertext storage and ciphertext retrieval open cloud service method program. When the ciphertext storage and ciphertext retrieval open cloud service method program is executed by a processor, the steps of the ciphertext storage and ciphertext retrieval open cloud service method as described in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Data secure sharing method and device based on cloud environment
CN108881195A
Keyword ciphertext generation method and device for cloud storage data
CN110266490A
Searchable encryption method and system capable of flexibly replacing ciphertexts, and computer equipment
CN113626484A
Ciphertext data encryption and secure retrieval method and device for cloud storage system
CN115174600A
File digital information management system
CN116402477A
