Data calling method, device, electronic device and storage medium

By splitting the key into multiple segments and encrypting and protecting it, the problem of low security and universality of data access caused by so file and encryption machine storage keys is solved, and high security and universality of data access are achieved. , reducing system maintenance and costs.

CN114710274BActive Publication Date: 2024-11-05EVERSEC BEIJING TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210313003.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-28
Publication Date
2024-11-05
Estimated Expiration
2042-03-28

AI Technical Summary

Technical Problem

In the prior art, storing keys through so files and crypto machines leads to low security and universality in data access. The keys of so files can be obtained through reverse engineering decompilation, and the crypto machine is costly and difficult to popularize on a large scale.

Method used

Split the key into multiple segments, store it in segments and protect it encryptedly, and ensure the trusted authentication of the caller who accesses encrypted data through identity authentication, improving the security and universality of data access.

Benefits of technology

Through the storage and synthesis of segmented encryption keys, high security and universality of data access are achieved, the risk of reverse engineering of keys is avoided, and system maintenance and costs are reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114710274B_ABST
    Figure CN114710274B_ABST
Patent Text Reader

Abstract

The present invention discloses a data calling method, device, electronic device and storage medium. The method comprises: upon receiving a data acquisition request sent by a business server, verifying the identity identifier to be verified in the data acquisition request to obtain a verification result; if the verification result is that the verification is passed, retrieving the data to be fed back corresponding to the data acquisition request from the data storage server; decrypting the data to be fed back based on the key to be used corresponding to the data storage server to obtain the target feedback data, and sending the target feedback data to the business server. The technical solution of the present invention solves the problem of low data access security and universality caused by storing keys through so files and encryption machines in the prior art to encrypt data. By splitting the key into multiple segments, storing them in segments, and encrypting them for protection, the caller who accesses the encrypted data is authenticated for identity trust, thereby improving the security of data access and the universality of the access method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a data calling method, device, electronic device and storage medium. Background Art

[0002] Data has become an important network asset and an important means of production in today's era. At present, a large amount of data has different security risks in different links of the entire life cycle of collection, storage, processing, transmission, exchange, and destruction. Once stolen or leaked, it will cause immeasurable losses. Therefore, it is very necessary to protect data security through encryption technology.

[0003] In the prior art, symmetric algorithms are generally used to encrypt and decrypt data. The key is generally written into a SO reinforcement file or stored in a cryptographic machine. When used, the SO reinforcement file or the cryptographic machine encryption and decryption algorithm interface can be directly loaded.

[0004] However, the so file is generated by native engineering, which is essentially implemented in C / C++ language. The key stored in it can be obtained by reverse engineering and decompilation. Therefore, once the so file is obtained by criminals, the security of the key is difficult to guarantee. Even if the key in the so file cannot be obtained directly, the encryption and decryption of data can be achieved by calling the program interface provided by the so file. The existing protection method of storing keys in a cipher machine, because the key and data encryption and decryption processes are all executed inside the cipher machine, the key does not leave the cipher machine, but the cipher machine is a hardware device, and the system construction requires additional funds. After the system goes online, the cipher machine needs to be maintained on a daily basis, which is costly and generally only applicable to specific scenarios. It is difficult to popularize and apply on a large scale. Therefore, it is necessary to improve the existing data call and storage. Summary of the invention

[0005] The present invention provides a data calling method, device, electronic equipment and storage medium to solve the problem.

[0006] According to one aspect of the present invention, a data calling method is provided, the method comprising:

[0007] Upon receiving a data acquisition request sent by a business server, verifying the identity identifier to be verified in the data acquisition request to obtain a verification result;

[0008] If the verification result is that the verification is passed, the data to be fed back corresponding to the data acquisition request is retrieved from the data storage server;

[0009] decrypting the data to be fed back based on the to-be-used key corresponding to the data storage server to obtain target feedback data, and sending the target feedback data to the business server;

[0010] The key to be used is obtained by restoring and synthesizing the segmented encryption keys pre-stored in different locations.

[0011] According to another aspect of the present invention, a data calling device is provided, the device comprising:

[0012] A verification module, configured to verify the identity identifier to be verified in the data acquisition request when receiving the data acquisition request sent by the business server, and obtain a verification result;

[0013] A calling module, configured to call the to-be-feedback data corresponding to the data acquisition request from the data storage server if the verification result is that the verification is passed;

[0014] a decryption module, configured to decrypt the data to be fed back based on a to-be-used key corresponding to the data storage server to obtain target feedback data, and send the target feedback data to the business server;

[0015] The key to be used is obtained by restoring and synthesizing the segmented encryption keys pre-stored in different locations.

[0016] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0017] at least one processor; and

[0018] a memory communicatively connected to the at least one processor; wherein,

[0019] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the data calling method described in any embodiment of the present invention.

[0020] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data calling method described in any embodiment of the present invention when executed.

[0021] The technical solution of the embodiment of the present invention solves the problem of low data access security and low universality caused by storing keys in so files and encryption machines in the prior art to encrypt data. By splitting the key into multiple segments, storing them in segments, and encrypting them, the identity of the caller accessing the encrypted data is authenticated, thereby improving the security of data access and the universality of the access method.

[0022] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0024] Figure 1 is a flow chart of a data calling method provided according to the first embodiment of the present invention;

[0025] Figure 2 is a flow chart of a data calling method provided according to Embodiment 2 of the present invention;

[0026] Figure 3 is a flow chart of a data calling method provided according to Embodiment 3 of the present invention;

[0027] Figure 4 is a logical relationship diagram of key components of a system applicable to Embodiment 3 of the present invention;

[0028] Figure 5 is a structural block diagram of a data calling device provided according to a fourth embodiment of the present invention;

[0029] Figure 6 It is a structural schematic diagram of an electronic device for implementing the data calling method according to an embodiment of the present invention; DETAILED DESCRIPTION

[0030] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0031] It should be noted that the terms "first", "second", etc. 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 of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "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.

[0032] Embodiment 1

[0033] Figure 1 A flowchart of a data calling method is provided for the first embodiment of the present invention. This embodiment is applicable to situations where a business application server needs to obtain encrypted data in a data storage server. The method can be executed by a data calling device, which can be implemented in the form of hardware and / or software, and the device can be configured in the data storage server.

[0034] like Figure 1 As shown, the method includes:

[0035] S110: When receiving a data acquisition request sent by a business server, verify the identity to be verified in the data acquisition request to obtain a verification result.

[0036] The identity to be verified may be the unique identity information of the user using the service server, which can be used to distinguish different users; and may include: user name and user ID.

[0037] Specifically, when the data storage server receives the data acquisition request sent by the business server, it indicates that the user needs to obtain the data stored in the data storage server. Based on this, the data storage server can parse the data acquisition request and extract the identity information to be verified in the data acquisition request to verify the user's information and determine whether the user has the authority to obtain the data. After verification, the verification result is obtained, that is, verification passed / verification failed.

[0038] Optionally, when a data acquisition request sent by a business server is received, the identity identifier to be verified in the data acquisition request is verified to obtain a verification result, including: when a data acquisition request is generated by receiving a user identifier, user name and request timestamp based on the business server, determining whether the request timestamp in the data acquisition request is within a preset valid time range; if so, retrieving the user identifier to be matched corresponding to the user name, and processing the user identifier to be matched and the request timestamp to obtain summary information to be matched; if the summary information to be matched is consistent with the summary information in the data acquisition request, determining that the verification is successful.

[0039] The user ID is generated and issued based on the data storage server. The data acquisition request includes summary information, which is determined based on the user ID and the request timestamp. The request timestamp is the validity period of the data acquisition request. The preset validity period is the time preset by the backend personnel. If the request timestamp is within the preset validity period, it means that the request corresponding to the request timestamp is valid. The user ID to be matched can be the user ID pre-stored in the data storage server.

[0040] Specifically, after receiving the data service request sent by the business server, the data storage server can parse the data acquisition request, because the data acquisition request is generated based on the user identification, user name and request timestamp of the business server. Therefore, the data storage server can obtain the user identification, user name and request timestamp after parsing the data acquisition request. Further, the data storage server can first determine whether the request timestamp is less than the preset valid time range. If it is greater, it means that the data acquisition request is invalid. If it is less than, it means that the data acquisition request is valid, and the user identification to be matched can be searched in the data storage server according to the user name in the data acquisition request. In the data storage server, the user names and user identifications of some specific users, i.e., the user identifications to be matched, are pre-stored. Specific users are all trusted users of the data storage server and have the authority to acquire data from the data storage server. Furthermore, the user ID and request timestamp to be matched are processed by hash algorithm to obtain the summary information to be matched; at the same time, the user ID and request timestamp contained in the data acquisition request are processed by hash algorithm to obtain the summary information corresponding to the data acquisition request, and the summary information is compared with the summary information to be matched. If the summary information of the data acquisition request is consistent with the summary information to be matched, if they are consistent, it means that the verification is passed. This process is to determine whether the user in the data acquisition request belongs to a specific trusted user pre-stored in the data storage server.

[0041] S120: If the verification result is that the verification is passed, the data to be fed back corresponding to the data acquisition request is retrieved from the data storage server.

[0042] The data to be fed back is the encrypted data stored in the data storage server and the data that the user wants to obtain. The data can be decrypted and fed back to the business server.

[0043] Specifically, if the verification result is passed, it means that the data storage server has passed the legitimacy verification of the business server. Data can be obtained from the data storage server, but only a part of the data stored in the data storage server is the data that the user needs to obtain. Therefore, a part of the data corresponding to the data acquisition request can be obtained from the data storage server as the data to be fed back, and the data is stored in the data storage server in an encrypted form.

[0044] Optionally, retrieving the data to be fed back corresponding to the data acquisition request from the data storage server includes: retrieving the data to be fed back corresponding to the request identifier from the data storage server according to the request identifier in the data acquisition request.

[0045] The request identifier may be a storage address of the data in the data storage server, and the corresponding data may be obtained from the data storage server based on the identifier.

[0046] Specifically, the data acquisition request includes a request identifier. After obtaining the request identifier, the data storage server can find the data stored at the address in the internal storage based on the request identifier, that is, the storage address, and use the found data as the data to be fed back.

[0047] Exemplarily, the request identifier is storage address A. In the data storage server, the data stored in storage address A is data a, data b, and data c. Then data a, b, and c are used as data to be fed back.

[0048] S130 , decrypt the feedback data to be used based on the to-be-used key corresponding to the data storage server to obtain target feedback data, and send the target feedback data to the business server.

[0049] The key to be used is obtained by restoring and synthesizing the segmented encryption keys pre-stored in different locations. The target feedback data is the plaintext data that needs to be fed back to the service server in the end.

[0050] It should be noted that, for the sake of data security, the data stored in the data storage server is encrypted data, and when the data is fed back to the business security server, the data needs to be decrypted first.

[0051] Specifically, the data storage server can synthesize the segmented encryption keys stored in different locations inside it to obtain the key to be used. The key to be used can be used to decrypt the retrieved data to be fed back to obtain the data in plain text, i.e., the target feedback data, and send the data to the business server so that the user can use the data.

[0052] The technical solution of the embodiment of the present invention verifies the identity identifier to be verified in the data acquisition request when receiving the data acquisition request sent by the business server to obtain a verification result; if the verification result is verification passed, the data to be fed back corresponding to the data acquisition request is retrieved from the data storage server; the data to be fed back is decrypted based on the to-be-used key corresponding to the data storage server to obtain the target feedback data, and the target feedback data is sent to the business server. The technical solution of the present invention solves the problem of low data access security and universality caused by storing keys in so files and encryption machines in the prior art to encrypt data. By splitting the key into multiple segments, storing them in segments, and encrypting them for protection, the caller who accesses the encrypted data is authenticated for identity trust, thereby improving the security of data access and the universality of the access method.

[0053] Embodiment 2

[0054] Figure 2 This is a flow chart of a data calling method provided in Embodiment 2 of the present invention. Based on the above embodiment, this embodiment further introduces the generation and storage of segmented keys. The specific implementation method can refer to the technical solution of this embodiment. Among them, the technical terms that are the same or corresponding to the above embodiment are not repeated here.

[0055] like Figure 2 As shown, the method includes:

[0056] S210: Generate a key to be used by an encryption algorithm based on a key generator, and segment the key to be used to obtain at least two segment keys.

[0057] The key to be used is a key generated by a key generator, and the key can be used to encrypt and decrypt data.

[0058] Specifically, the key generator can generate a key through a symmetric encryption algorithm as a key to be used, and the key can be used to encrypt or decrypt data in the data storage server. In order to ensure the security of the key to be used, the key to be used can be segmented, and can be split according to the length into two or more segments, and the key obtained after segmentation is used as the segment key.

[0059] Exemplarily, a key A generated by the key generator is 128 bits. The key can be divided into three segments, the first segment is 43 bits, the second segment is 43 bits, and the third segment is 42 bits, resulting in segment key one being 43 bits, segment key two being 43 bits, and segment key three being 42 bits.

[0060] S220: Encrypt at least two segment keys respectively based on the user strong password to obtain a segment encryption key corresponding to each segment key.

[0061] The strong password may be a certain number of characters generated by a random number generator, and may contain at least numbers, uppercase letters, lowercase letters, and special symbols.

[0062] Specifically, in order to ensure the security of the segmentation key, the segmentation key can be encrypted using an encryption algorithm. In the data storage server, different strong passwords correspond to different encryption algorithms. After the random number generator generates the user's strong password, the data storage server retrieves the encryption algorithm corresponding to the user's strong password from the storage, and uses the retrieved encryption algorithm to encrypt the segmentation key, and uses the encrypted segmentation key as the segmentation encryption key.

[0063] Optionally, at least two segment keys are encrypted separately based on the user strong password to obtain a segment encryption key corresponding to each segment key, including: generating a user strong password corresponding to each segment key based on a random number generator; encrypting the user strong password corresponding to each segment key and the corresponding segment key based on an encryption algorithm to obtain a segment encryption key corresponding to each segment key.

[0064] Specifically, the random number generator will generate a user strong password corresponding to each segment key. The data storage server will retrieve the encryption algorithm corresponding to each user strong password from the internal storage, and use the encryption algorithm corresponding to each segment key to encrypt each segment key to obtain the segment encryption key.

[0065] Exemplarily, for segment key 1, segment key 2, and segment key 3, the strong passwords generated by the random number generator are A, B, and C, respectively. Among them, strong password A corresponds to secret algorithm x, strong password B corresponds to encryption algorithm y, and strong password C corresponds to encryption algorithm z. Based on the above content, segment key 1 can be encrypted using encryption algorithm x to obtain segment encryption key 1, segment key 2 can be encrypted using encryption algorithm y to obtain segment encryption key 2, and segment key 3 can be encrypted using encryption algorithm z to obtain segment encryption key 3.

[0066] S230, storing each segment encryption key in different locations in the data storage server respectively, so that when the verification result is that the verification is passed, the segment keys stored in different locations are restored and synthesized to obtain the key to be used.

[0067] Specifically, each segmented encryption key can be stored in different locations of the data storage server, which can further increase the security of the segmented key. After the business server is verified, the segmented encryption key can be restored and synthesized through a key synthesis algorithm to obtain the key to be used.

[0068] Exemplarily, segment encryption key 1 is stored in storage space A of the data server, segment encryption key 2 is stored in storage space B of the data storage server, and segment encryption key 3 is stored in storage space C of the data storage server. When the verification is passed, the segment encryption keys 1, 2, and 3 are decrypted and synthesized using the key synthesis algorithm to obtain the key to be stored.

[0069] Optionally, the segment encryption key includes at least three, and each segment encryption key is stored in a different location in the data storage server, including: storing one of the segment encryption keys in the hardening program, storing one segment key in the database, and storing another segment key in the server file.

[0070] Exemplarily, segment encryption key 1, segment encryption key 2, and segment encryption key 3. Segment encryption key 1 is stored in the firmware, segment encryption key 2 is stored in the database, and segment encryption key 3 is stored in the server file.

[0071] S240: When receiving the data acquisition request sent by the business server, verify the identity to be verified in the data acquisition request to obtain a verification result.

[0072] S250: If the verification result is that the verification is passed, retrieve the data to be fed back corresponding to the data acquisition request from the data storage server.

[0073] S260: Decrypt the feedback data based on the to-be-used key corresponding to the data storage server to obtain target feedback data, and send the target feedback data to the business server.

[0074] The key to be used is obtained by restoring and synthesizing the segmented encryption keys pre-stored in different locations.

[0075] Optionally, when a data storage request is received, the identity identifier to be verified in the data storage request is verified, and when the verification is passed, the key to be used is retrieved to encrypt the storage data carried in the storage request to obtain the encrypted data and store it, so that when a data retrieval request is received, the data to be fed back corresponding to the data retrieval request is retrieved, and the data to be fed back is decrypted based on the key to be used to obtain the target feedback data.

[0076] The data storage request may be a request sent by a business server. After receiving the request, the data storage server may encrypt and store the data contained in the request.

[0077] The identity to be verified is the identity of a user who uses the business server and requires data storage services.

[0078] In the technical solution of this embodiment, the business server can not only obtain the encrypted data stored in the data storage server, but also send the data to be stored to the data storage server so that the data storage service encrypts and stores the data.

[0079] Specifically, when receiving a storage request, the data storage server can parse the storage request, obtain the identity to be verified in the storage request, verify the identity to be verified, and determine whether the user who uses the business server to issue the storage request has the authority to store data on the data storage server. If the verification is successful, it means that the user can store the data in the data storage server. Furthermore, the data storage server encrypts and stores the data carried by the storage request, so that when the next data retrieval request is received, the data to be fed back corresponding to the data retrieval request can be retrieved, and the data to be fed back is decrypted using the key to be used to obtain the target feedback data.

[0080] The technical solution of the embodiment of the present invention verifies the identity identifier to be verified in the data acquisition request when receiving the data acquisition request sent by the business server to obtain a verification result; if the verification result is verification passed, the data to be fed back corresponding to the data acquisition request is retrieved from the data storage server; the data to be fed back is decrypted based on the to-be-used key corresponding to the data storage server to obtain the target feedback data, and the target feedback data is sent to the business server. The technical solution of the present invention solves the problem of low data access security and universality caused by storing keys in so files and encryption machines in the prior art to encrypt data. By splitting the key into multiple segments, storing them in segments, and encrypting them for protection, the caller who accesses the encrypted data is authenticated for identity trust, thereby improving the security of data access and the universality of the access method.

[0081] Embodiment 3

[0082] Figure 3 A flowchart of a data calling method provided in Embodiment 3 of the present invention is provided. Figure 4 This is a logical relationship diagram of key components of the system applicable to the embodiment of the present invention. The embodiment of the present invention provides a preferred implementation method based on the technical solutions of the above embodiments.

[0083] like Figure 3 As shown, the method includes:

[0084] The data security service program server is deployed on the data storage server and the data security service program client is deployed on the business application server; a unique identity ID is generated and issued for a specific user through the data storage server; an encryption algorithm key is generated through a key generator, and the key is encrypted in segments and stored in different locations of the system; when the system starts, the user enters a strong password, and the data encryption and decryption key is restored through the encryption key synthesis algorithm; the business application server uses the unique identity ID to initiate an identity legitimacy authentication request to the data storage server; the business application server completes the identity legitimacy verification of the business application server through the data storage server; through the business application server with legal identity authentication, the data access interface of the data security service program client is called to realize data encryption storage and decryption application operations between the data storage server and the data storage server.

[0085] The specific instructions are as follows:

[0086] Step 1: Use the key generator to generate the key used by the encryption algorithm and split the key into multiple segments.

[0087] Step 2: Use a random number generator to generate a strong user password for segment key encryption.

[0088] Step 3: Use the encryption algorithm to encrypt multiple key segments with the user's strong password.

[0089] Step 4: Store the encrypted multi-segment ciphertext keys in different locations of the data storage server.

[0090] Step 5: Deploy the data security service program client on the business application server.

[0091] Step 6: Deploy the data security service program server on the data storage server.

[0092] Step 7: The data storage server, based on the strong password entered by the user, reads the ciphertext key stored in different locations of the data storage server, and calls the encryption key synthesis algorithm to complete the decryption and restoration of the ciphertext key.

[0093] Step 8: The data storage server generates a unique ID string for the user based on known user information and issues it to the user.

[0094] Step 9: The business application server uses the unique identity ID to call the data security service program client identity authentication request interface and initiates an identity legitimacy authentication request to the data storage server.

[0095] Step 10: The data storage server authenticates the requester's identity.

[0096] Step 11: The business application server that has passed the legality authentication calls the data encryption interface of the data security service program client and initiates a data encryption storage request to the data storage server.

[0097] Step 12: The data security service program server of the data storage server calls the encryption algorithm to encrypt the data in response to the data storage request of the business application server and then stores it in the database.

[0098] Step 13: The business application server that has passed the legality authentication calls the data decryption interface of the data security service program client and initiates a data decryption and reading request to the data storage server.

[0099] Step 14: The data security service program server of the data storage server responds to the data read request of the business application server, calls the encryption algorithm to decrypt the specific data in the database and returns it to the business application server.

[0100] Step 15: The business application server that has passed the legality authentication calls the session termination request interface to end the communication session between the business application server and the data storage server.

[0101] In particular, the key length used by the encryption algorithm generated by the key generator must meet the key requirements of the encryption algorithm used.

[0102] In particular, the key encryption algorithm used is a symmetric encryption algorithm, including but not limited to SM4, AES, IDEA and other high-intensity security algorithms.

[0103] In particular, the key length of the SM4 algorithm is 128 bits, the key length of the AES algorithm is 128 bits, 192 bits, or 256 bits, and the key length of the IDEA algorithm is 128 bits.

[0104] In particular, the strong password generated by the random number generator must be at least 12 characters long and contain at least numbers, uppercase letters, lowercase letters, and special symbols.

[0105] In particular, the user's strong password is not stored in the server or system, but is only entered by the user when the system starts.

[0106] In particular, the key used in the encryption algorithm is divided into three or more segments. If it is divided into N segments, the length of each key segment shall not be shorter than 1 / (N+1) of the total key length.

[0107] In particular, for the encrypted segmented key, at least one segment is fixed to the program, one segment is written to the database, and one segment is stored in the server file.

[0108] In particular, the information required to generate the user's unique identity ID includes but is not limited to the user name Username, the user number UserID, the system timestamp Systemtime, and the random code Randnum.

[0109] In particular, the identity authentication request initiated by the business application server includes the user name Username, the digest value Hash1, and the current timestamp Timestamp.

[0110] In particular, the calculation method of the digest value Hash1 is Hash1 = MD5 (user unique identifier ID, Timestamp).

[0111] In particular, the data storage server determines whether the Timestamp validity period of the request parameter is less than the set time range (such as 30 seconds) for the received authentication request. If so, it performs calculation and comparison of the summary value. Otherwise, it ends the communication session and terminates subsequent operations.

[0112] In particular, after determining that the validity period of the Timestamp of the request parameter is less than the set time range (such as 30 seconds), the data storage server finds the unique identity ID corresponding to the user from the system based on the Username of the request parameter, and calculates the digest value Hash2 Hash2 = MD5 (user unique identity ID, Timestamp).

[0113] In particular, the data storage server compares the digest value Hash1 of the request parameter with the digest value Hash2 calculated by this system. If they are equal, the business application server's identity legitimacy authentication request is passed, otherwise the authentication fails, the communication session ends, and subsequent operations are terminated.

[0114] In particular, after the data encryption communication and the data decryption communication between the business application server and the data storage server are completed, the session termination request interface of the data security service program is called to terminate the current session between the two parties.

[0115] In particular, if there is no data communication between the business application server and the data storage server for more than a set time (such as 1 minute), the communication session between the two parties will be automatically terminated.

[0116] Component composition:

[0117] The system constructed by the key security protection and encrypted data authentication access method described above is mainly composed of data access service system, database system, file library system, business application service system, etc.

[0118] Figure 4 The logical relationship between the key components of the system is shown.

[0119] The specific instructions are as follows:

[0120] Data access service system: deployed on the data storage server, including basic service program components, data encryption key synthesis program components, and data security service program server components. Among them, the basic service program components are responsible for system startup, communication with the database system, communication with the file library system, and communication with the business application service system; the data encryption key synthesis program component is responsible for decryption and restoration of data encryption and decryption keys; the data security service program server component is responsible for the identity legitimacy authentication of the business application server, encryption and storage of plaintext data, and reading and decryption of ciphertext data.

[0121] Database system: deployed on the data storage server, responsible for the secure storage of structured data of business applications.

[0122] File library system: deployed on the data storage server, responsible for the secure storage of unstructured files and some segmented keys.

[0123] Business application service system: deployed on the business application server side, including business application components and data security service program client components. Among them, the business application component is responsible for starting the business application system and processing the business application of specific data; the data security service program client component is responsible for initiating identity legitimacy authentication requests, business data encryption storage requests, ciphertext data reading and use requests, and communication session termination requests between the two parties to the data storage server.

[0124] This technical solution divides the data encryption key into multiple segments, encrypts the segmented keys, and stores the segmented encryption keys in different locations of the system. This can ensure that the data encryption key does not appear in the system in plain text or as a single complete body, thereby ensuring the security of the data encryption key.

[0125] This technical solution completes the decryption and restoration of data encryption keys through a strong password input by the user. The strong password is manually entered by the user when the system starts and will not be stored anywhere in the system. Even if criminals obtain all segmented encryption keys and the decryption and restoration logic of the encryption keys, they cannot obtain the keys used for data encryption and decryption due to the lack of the user's strong password, thereby ensuring the security of data encryption keys and data access.

[0126] The technical solution of this embodiment can realize the trusted identity authentication of the business application service system by the data storage service system through the identity authentication mechanism, and can ensure that only the legitimate business application service system can use the data encryption storage and ciphertext data decryption of the data storage service system. The identity authentication mechanism used adds a timestamp parameter, and the validity period of each identity authentication is limited and short, which can prevent replay attacks and ensure the stability and security of the system. In addition, data encryption and data decryption use a pure software mode, which is easier to maintain and has lower costs than the hardware cipher machine mode, and has wider universality.

[0127] The technical solution of the embodiment of the present invention verifies the identity identifier to be verified in the data acquisition request when receiving the data acquisition request sent by the business server to obtain a verification result; if the verification result is verification passed, the data to be fed back corresponding to the data acquisition request is retrieved from the data storage server; the data to be fed back is decrypted based on the to-be-used key corresponding to the data storage server to obtain the target feedback data, and the target feedback data is sent to the business server. The technical solution of the present invention solves the problem of low data access security and universality caused by storing keys in so files and encryption machines in the prior art to encrypt data. By splitting the key into multiple segments, storing them in segments, and encrypting them for protection, the caller who accesses the encrypted data is authenticated for identity trust, thereby improving the security of data access and the universality of the access method.

[0128] Embodiment 4

[0129] Figure 4 This is a schematic diagram of the structure of a data calling device provided by Embodiment 4 of the present invention. Figure 4 As shown, the device comprises:

[0130] The verification module 410 is used to verify the identity to be verified in the data acquisition request when receiving the data acquisition request sent by the business server, and obtain a verification result;

[0131] The retrieving module 420 is configured to retrieve the to-be-feedback data corresponding to the data acquisition request from the data storage server if the verification result is that the verification is passed;

[0132] A decryption module 430, configured to decrypt the data to be fed back based on a to-be-used key corresponding to the data storage server to obtain target feedback data, and send the target feedback data to the business server;

[0133] The key to be used is obtained by restoring and synthesizing the segmented encryption keys pre-stored in different locations.

[0134] Optionally, the verification module 410 includes:

[0135] A timestamp determination module, configured to determine whether the request timestamp in the data acquisition request is within a preset valid time range when receiving the data acquisition request generated by the user identifier, user name and request timestamp based on the business server; wherein the user identifier is generated and issued based on the data storage server, the data acquisition request includes summary information, and the summary information is determined based on the user identifier and the request timestamp;

[0136] a module for acquiring summary information to be matched, for retrieving the user identifier to be matched corresponding to the user name, and processing the user identifier to be matched and the request timestamp to obtain summary information to be matched;

[0137] The summary information verification module is used to determine that the verification is passed if the summary information to be matched is consistent with the summary information in the data acquisition request.

[0138] Optionally, the calling module 420 includes:

[0139] The retrieving unit is used to retrieve the to-be-feedback data corresponding to the request identifier from the data storage server according to the request identifier in the data acquisition request.

[0140] Optionally, the device further includes:

[0141] A key segmentation processing module, used to generate a to-be-used key used by an encryption algorithm based on a key generator, and to segment the to-be-used key to obtain at least two segmentation keys;

[0142] A segment key encryption module, used for encrypting the at least two segment keys respectively based on the user strong password to obtain a segment encryption key corresponding to each segment key;

[0143] The segmented key storage module is used to store each segmented encryption key in different locations in the data storage server, so that when the verification result is verification passed, the segmented keys stored in different locations are restored and synthesized to obtain the key to be used.

[0144] Optionally, the segment key encryption module includes:

[0145] A single end for generating strong passwords is used to generate strong user passwords corresponding to each segment key based on a random number generator;

[0146] The segment key encryption unit is used to encrypt the user strong password corresponding to each segment key and the corresponding segment key based on the encryption algorithm to obtain the segment encryption key corresponding to each segment key.

[0147] Optionally, the segment encryption key includes at least three, and the segment key storage module includes:

[0148] The segment key storage unit is used to store one of the segment encryption keys in the hardening program, store one segment key in the database, and store another segment key in the server file.

[0149] Optionally, the device further includes:

[0150] The data storage and retrieval module is used to verify the identity to be verified in the data storage request when a data storage request is received, and when the verification is passed, retrieve the key to be used to encrypt the storage data carried in the storage request to obtain the encrypted data and store it, so as to retrieve the data to be fed back corresponding to the data retrieval request when a data retrieval request is received, and encrypt the data to be fed back based on the key to be used to obtain the target feedback data.

[0151] The technical solution of the embodiment of the present invention verifies the identity identifier to be verified in the data acquisition request when receiving the data acquisition request sent by the business server to obtain a verification result; if the verification result is verification passed, the data to be fed back corresponding to the data acquisition request is retrieved from the data storage server; the data to be fed back is decrypted based on the to-be-used key corresponding to the data storage server to obtain the target feedback data, and the target feedback data is sent to the business server. The technical solution of the present invention solves the problem of low data access security and universality caused by storing keys in so files and encryption machines in the prior art to encrypt data. By splitting the key into multiple segments, storing them in segments, and encrypting them for protection, the caller who accesses the encrypted data is authenticated for identity trust, thereby improving the security of data access and the universality of the access method.

[0152] The data calling device provided in the embodiment of the present invention can execute the data calling method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0153] Embodiment 5

[0154] Figure 5A schematic diagram of an electronic device 50 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0155] like Figure 5 As shown, the electronic device 50 includes at least one processor 51, and a memory connected to the at least one processor 51 in communication, such as a read-only memory (ROM) 52, a random access memory (RAM) 53, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 51 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 52 or the computer program loaded from the storage unit 58 to the random access memory (RAM) 53. In the RAM 53, various programs and data required for the operation of the electronic device 50 can also be stored. The processor 51, the ROM 52, and the RAM 53 are connected to each other via a bus 54. An input / output (I / O) interface 55 is also connected to the bus 54.

[0156] A number of components in the electronic device 50 are connected to the I / O interface 55, including: an input unit 56, such as a keyboard, a mouse, etc.; an output unit 57, such as various types of displays, speakers, etc.; a storage unit 58, such as a disk, an optical disk, etc.; and a communication unit 59, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 59 allows the electronic device 50 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0157] The processor 51 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 51 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 51 executes the various methods and processes described above, such as a data call method.

[0158] In some embodiments, the data calling method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 58. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 50 via the ROM 52 and / or the communication unit 59. When the computer program is loaded into the RAM 53 and executed by the processor 51, one or more steps of the data calling method described above may be performed. Alternatively, in other embodiments, the processor 51 may be configured to execute the data calling method in any other appropriate manner (e.g., by means of firmware).

[0159] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0160] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0161] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0162] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0163] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0164] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0165] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0166] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A data calling method, characterized in that: Applied to data storage servers, including: Upon receiving a data acquisition request sent by a business server, verifying the identity identifier to be verified in the data acquisition request to obtain a verification result; If the verification result is that the verification is passed, the data to be fed back corresponding to the data acquisition request is retrieved from the data storage server; decrypting the data to be fed back based on the to-be-used key corresponding to the data storage server to obtain target feedback data, and sending the target feedback data to the business server; The key to be used is obtained by restoring and synthesizing the segmented encryption keys pre-stored in different locations; When receiving the data acquisition request sent by the business server, verifying the identity to be verified in the data acquisition request to obtain a verification result includes: When receiving the user identifier, user name and request timestamp based on the business server and generating the data acquisition request, determining whether the request timestamp in the data acquisition request is within a preset valid time range; wherein the user identifier is generated and issued based on the data storage server, and the data acquisition request includes summary information, and the summary information is determined based on the user identifier and the request timestamp; If yes, retrieve the to-be-matched user identifier corresponding to the user name, and process the to-be-matched user identifier and the request timestamp to obtain the to-be-matched summary information; If the summary information to be matched is consistent with the summary information in the data acquisition request, it is determined that the verification is passed; Generate a key to be used by the encryption algorithm based on a key generator, and process the key to be used in segments to obtain at least two segment keys; The at least two segment keys are encrypted based on the user strong password to obtain a segment encryption key corresponding to each segment key; wherein the random number generator generates a user strong password corresponding to each segment key for each segment key; The segmented encryption keys are stored in different locations in the data storage server respectively, so that when the verification result is that the verification is passed, the segmented keys stored in different locations are restored and synthesized to obtain the key to be used; The step of encrypting the at least two segment keys based on the user strong password to obtain a segment encryption key corresponding to each segment key includes: Generate a strong user password corresponding to each segment key based on a random number generator; Encrypting the user strong password corresponding to each segment key and the corresponding segment key based on the encryption algorithm to obtain the segment encryption key corresponding to each segment key; The segment encryption keys include at least three, and the storing of the segment encryption keys in different locations in the data storage server includes: One of the segment encryption keys is stored in the hard disk, one segment key is stored in the database, and another segment key is stored in the server file.

2. The method according to claim 1, characterized in that The retrieving the data to be fed back corresponding to the data acquisition request from the data storage server includes: According to the request identifier in the data acquisition request, the to-be-feedback data corresponding to the request identifier is retrieved from the data storage server.

3. The method according to claim 1, characterized in that Also includes: When a data storage request is received, the identity identifier to be verified in the data storage request is verified, and when the verification is passed, the key to be used is retrieved to encrypt the storage data carried in the storage request to obtain the encrypted data and store it, so that when a data retrieval request is received, the data to be fed back corresponding to the data retrieval request is retrieved, and the data to be fed back is decrypted based on the key to be used to obtain the target feedback data.

4. A data calling device, characterized in that: include: A verification module, configured to verify the identity identifier to be verified in the data acquisition request when receiving the data acquisition request sent by the business server, and obtain a verification result; A calling module, configured to call the to-be-feedback data corresponding to the data acquisition request from the data storage server if the verification result is that the verification is passed; a decryption module, configured to decrypt the data to be fed back based on a to-be-used key corresponding to the data storage server to obtain target feedback data, and send the target feedback data to the business server; The key to be used is obtained by restoring and synthesizing the segmented encryption keys pre-stored in different locations; The verification module includes the following submodules: a timestamp determination module, a to-be-matched summary information acquisition module, and a summary information verification module; The timestamp determination module is used to determine whether the request timestamp in the data acquisition request is within a preset valid time range when receiving the data acquisition request generated by the user identifier, user name and request timestamp based on the business server; wherein the user identifier is generated and issued based on the data storage server, the data acquisition request includes summary information, and the summary information is determined based on the user identifier and the request timestamp; The to-be-matched summary information acquisition module is used to retrieve the to-be-matched user identifier corresponding to the user name, and process the to-be-matched user identifier and the request timestamp to obtain the to-be-matched summary information; The summary information verification module is used to determine that the verification is passed if the summary information to be matched is consistent with the summary information in the data acquisition request; A key segmentation processing module, used to generate a to-be-used key used by an encryption algorithm based on a key generator, and to segment the to-be-used key to obtain at least two segmentation keys; The segment key encryption module is used to encrypt the at least two segment keys based on the user strong password to obtain a segment encryption key corresponding to each segment key; wherein the random number generator generates a user strong password corresponding to each segment key for each segment key; A segmented key storage module is used to store each segmented encryption key in different locations in the data storage server, so that when the verification result is that the verification is passed, the segmented keys stored in different locations are restored and synthesized to obtain the key to be used; The segment key encryption module includes a strong password generation single end and a segment key encryption unit; The strong password generating single end is used to generate a user strong password corresponding to each segment key based on a random number generator; The segment key encryption unit is used to encrypt the user strong password corresponding to each segment key and the corresponding segment key based on the encryption algorithm to obtain the segment encryption key corresponding to each segment key; the segment encryption key includes at least three; The segment key storage module includes a segment key storage unit, which is used to store one of the segment encryption keys in the hardening program, store one segment key in the database, and store another segment key in the server file.

5. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the data calling method according to any one of claims 1 to 3.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data calling method according to any one of claims 1 to 3 when executed.