A method and system for protecting sensitive information

By performing fence encryption and AES encryption on sensitive information, and combining it with a hash algorithm to generate a derived key, the problems of sensitive information access control and resource consumption in the existing technology are solved, and efficient data security protection is achieved.

CN118233095BActive Publication Date: 2024-09-13SHANGHAI YUANHUA INFORMATION SECURITY TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410521804.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-28
Publication Date
2024-09-13
Estimated Expiration
2044-04-28

AI Technical Summary

Technical Problem

Existing technology cannot effectively control access to sensitive information for specific fields or individual content, and encryption and desensitization processes involve high resource consumption and the risk of key leakage.

Method used

By obtaining the original data and preset key input by the user, perform barrier encryption and base32 encoding conversion to generate core data, and use the predefined fixed salt value and hash algorithm to generate the derived key, combined with the AES encryption algorithm to double-layer the data. Encrypted, stored in secure and business databases, and processed with https encryption when data is called.

Benefits of technology

It achieves double-layer encryption protection, reduces server resource consumption, prevents unauthorized access and logical loopholes, ensures data security and integrity, and makes it difficult to decipher the data content even when the key is leaked.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118233095B
    Figure CN118233095B
Patent Text Reader

Abstract

The present invention belongs to the field of information security technology, and discloses a sensitive information protection method and system, the method comprising: obtaining original data and preset keys input by a user; encrypting and encoding the original data in sequence to generate core data; configuring the preset key through a predefined fixed salt value, and obtaining a derived key after the configuration is completed; and encrypting the core data with the derived key in combination with an encryption algorithm to generate mixed data; storing the core data and the mixed data in corresponding databases respectively, and setting a security barrier in the database to verify the security of the mixed data when it is called. The present invention combines fence encryption with the AES encryption algorithm, and can flexibly adjust the number of fence columns and the length of the key according to different security requirements and data volume.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information security technology, and in particular to a sensitive information protection method and system. Background Art

[0002] In recent years, people's demand for online shopping has been increasing. Business data usually contains a lot of sensitive information, such as customer name, mobile phone number, home address, account number, card number, balance, etc. In recent years, problems of sensitive information leakage have emerged one after another. Therefore, in order to better protect sensitive information, many protection measures have been spawned.

[0003] With the current development of information security technology, the mainstream response measures for sensitive data protection are: database permission control; field encryption and storage; information desensitization or encryption during transmission. With current technical means, database permission control can usually only be granted across the entire database or table, and it is impossible to control and restrict access to specific fields or individual content. It usually leads to unauthorized loopholes and logical loopholes, which makes it difficult to achieve full control and refined control in a practical sense.

[0004] Field encryption storage requires a lot of reading and writing during normal use for ordinary users, which will occupy a large amount of server resources during the encryption and decryption process. At the same time, once the algorithm is cracked or the key is leaked, the attacker can completely restore the entire database. Desensitizing or encrypting information during transmission is actually encrypting the process. In addition, users need to see the actual content to facilitate modification and verification. The key is usually stored on the front end and can be easily obtained through some technical means.

[0005] Therefore, how to provide a sensitive information protection method and system is a problem that needs to be solved urgently. Summary of the invention

[0006] The embodiments of the present invention provide a sensitive information protection method and system to solve the problem in the prior art that it is impossible to control and restrict access to specific fields or individual content.

[0007] In order to have a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. This summary is not a general review, nor is it intended to identify key / important components or to describe the scope of protection of these embodiments. Its only purpose is to present some concepts in a simple form as a prelude to the detailed description that follows.

[0008] According to a first aspect of an embodiment of the present invention, a sensitive information protection method is provided.

[0009] In one embodiment, the sensitive information protection method includes:

[0010] Obtain the original data and preset key input by the user; encrypt and encode the original data in sequence to generate core data;

[0011] The preset key is configured through a predefined fixed salt value to obtain a derived key after the configuration is completed; and the derived key is combined with an encryption algorithm to encrypt the core data to generate mixed data;

[0012] The core data and hybrid data are stored in corresponding databases respectively, and a security barrier is set in the database to verify the security of the hybrid data when it is called.

[0013] In one embodiment, encrypting and encoding the original data in sequence to generate core data includes:

[0014] Convert the Chinese characters in the original data into Pinyin format, and perform fence encryption on the converted Pinyin characters to obtain specific data values;

[0015] Perform base32 encoding conversion on specific data values, generate specific mixed values ​​after the conversion, and use the specific mixed values ​​as core data.

[0016] In one embodiment, configuring the preset key through a predefined fixed salt value, and obtaining the derived key after the configuration is completed includes:

[0017] Obtaining a preset password input by a user; fusing the preset password with a predefined fixed salt value, and using the fusion result as an input to a key derivation function;

[0018] Selecting a hash algorithm in the key derivation function to perform hash calculation on the fusion result to generate an initial intermediate value; taking the initial intermediate value as input, and performing hash calculation on the initial intermediate value using the hash algorithm to generate a second intermediate value;

[0019] The iterative process of hash calculation is repeated until the number of iterations is reached. After the iterative calculation is completed, the final intermediate value generated is used as the derived key.

[0020] In one embodiment, storing the core data and the mixed data in corresponding databases respectively includes:

[0021] Storing core data in a non-networked secure database, wherein the secure database is used to recover data when a user loses the key and the secure database does not participate in business logic processing;

[0022] The hybrid data is stored in a business database, wherein the business database is used for daily operation and processing of business logic.

[0023] In one embodiment, setting a security barrier in the database to verify the security of the mixed data when it is called includes:

[0024] When the user calls the hybrid data in the business database, the derived key is input and transmitted using https encryption to ensure the security of the hybrid data transmission process.

[0025] After receiving the derived key input by the user, the server decrypts the mixed data and transmits the decrypted mixed data back to the user through the server.

[0026] According to a second aspect of an embodiment of the present invention, a sensitive information protection system is provided.

[0027] In one embodiment, the sensitive information protection system includes:

[0028] The core data encryption module is used to obtain the original data input by the user and the preset key; encrypt and encode the original data in turn to generate core data;

[0029] The hybrid data encryption module is used to configure the preset key through a predefined fixed salt value, obtain the derived key after the configuration is completed, and encrypt the core data with the derived key in combination with the encryption algorithm to generate hybrid data;

[0030] The data call verification module is used to store the core data and the mixed data in the corresponding databases respectively, and set a security barrier in the database to verify the security of the mixed data when it is called.

[0031] In one embodiment, the core data encryption module includes a data fence encryption module and a data encoding conversion module, wherein:

[0032] The data fence encryption module is used to convert the Chinese characters in the original data into the pinyin format, and to perform fence encryption on the converted pinyin characters to obtain a specific data value;

[0033] The data encoding conversion module is used to perform base32 encoding conversion on specific data values, generate a specific mixed value after the conversion, and use the specific mixed value as the core data.

[0034] In one embodiment, the hybrid data encryption module includes a salt value generation module, a key configuration module and a key generation module, wherein:

[0035] The salt value generation module is used to obtain a preset password input by a user; merge the preset password with a predefined fixed salt value, and use the merged result as an input of a key derivation function;

[0036] The key configuration module is used to select a hash algorithm in the key derivation function to perform hash calculation on the fusion result to generate an initial intermediate value; the initial intermediate value is used as input, and the hash algorithm is used to perform hash calculation on the initial intermediate value to generate a second intermediate value;

[0037] The key generation module is used to repeatedly perform the iterative process of hash calculation until the number of iterations is reached. After the iterative calculation is completed, the finally generated intermediate value is used as the derived key.

[0038] In one embodiment, the data call verification module includes a core data storage module and a hybrid data storage module, wherein:

[0039] A core data storage module, used to store core data in a non-networked secure database, wherein the secure database is used to recover data when a user loses a key, and the secure database does not participate in business logic processing;

[0040] The hybrid data storage module is used to store the hybrid data in a business database, wherein the business database is used for daily operation and processing of business logic.

[0041] In one embodiment, the data call verification module further includes a data security verification module and a data return module, wherein:

[0042] The data security verification module is used for users to input the derived key when calling the mixed data in the business database, and perform https encryption processing during the derived key input and derived key transmission process to ensure the security of the mixed data transmission process;

[0043] The data return module is used for the server to decrypt the mixed data after receiving the derived key input by the user, and return the decrypted mixed data to the user through the server.

[0044] According to a third aspect of an embodiment of the present invention, a computer device is provided.

[0045] In some embodiments, the computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0046] The technical solution provided by the embodiment of the present invention may have the following beneficial effects:

[0047] 1. The present invention combines fence encryption and AES encryption algorithms to provide double-layer encryption protection. Fence encryption can confuse data to make it difficult to understand, thereby increasing the protection of the data, and combined with AES encryption to further enhance security, and thus can flexibly adjust the number of fence columns and the length of the key according to different security requirements and data volume.

[0048] 2. The method of combining fence encryption and AES encryption in the present invention not only ensures the confidentiality and integrity of the data, but also reduces the consumption of server resources through the keyboard encryption method. Through this calculation operation involving only characters, there is no need to render and transmit data, thereby reducing the impact on server performance. At the same time, because the encrypted data is one-way and irreversible, even if the system is hacked and the database content is obtained, the hacker cannot interpret the actual content and meaning of the data due to the lack of user-defined key information, which effectively prevents unauthorized access and logical loopholes, thereby ensuring data security. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0050] Figure 1 is a flowchart of a sensitive information protection method according to an exemplary embodiment;

[0051] Figure 2 is a principle block diagram of a sensitive information protection system according to an exemplary embodiment;

[0052] Figure 3 is a structural schematic diagram of a computer device according to an exemplary embodiment;

[0053] Figure 4 is a schematic diagram showing a specific implementation of a sensitive information protection method according to an exemplary embodiment;

[0054] Figure 5 It is a flowchart of an AES algorithm in a sensitive information protection method according to an exemplary embodiment. DETAILED DESCRIPTION

[0055] The following description and accompanying drawings fully illustrate the specific embodiments of this article so that those skilled in the art can practice them. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. The scope of the embodiments of this article includes the entire scope of the claims, as well as all available equivalents of the claims. Herein, the terms "first", "second", etc. are only used to distinguish one element from another, without requiring or implying any actual relationship or order between these elements. In fact, the first element can also be called the second element, and vice versa. Moreover, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that the structure, device or equipment including a series of elements includes not only those elements, but also other elements that are not explicitly listed, or also include elements inherent to such structure, device or equipment. In the absence of more restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the structure, device or equipment including the elements. Each embodiment is described in a progressive manner herein, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the embodiments can be referred to each other.

[0056] The terms "longitudinal", "lateral", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc. in this document indicate the orientation or position relationship based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing this document and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In the description of this document, unless otherwise specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a mechanical connection or an electrical connection, it can also be the internal communication of two elements, it can be a direct connection, or it can be an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.

[0057] As used herein, the term "plurality" means two or more than two, unless otherwise specified.

[0058] In this document, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B means: A or B.

[0059] In this article, the term "and / or" is a description of the association relationship between objects, indicating that three relationships may exist. For example, A and / or B means: A or B, or, A and B.

[0060] It should be understood that, although the various steps in the flow chart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the figure may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0061] Each module in the device or sensitive information protection method and system of the present application can be implemented in whole or in part by software, hardware, or a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0062] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0063] Figure 1 An embodiment of a sensitive information protection method of the present invention is shown.

[0064] In this optional embodiment, the sensitive information protection method includes:

[0065] Step S101, obtaining the original data input by the user and the preset key; encrypting and encoding the original data in sequence to generate core data;

[0066] Step S103: configure the preset key through the predefined fixed salt value to obtain the derived key after the configuration is completed; and encrypt the core data with the derived key in combination with the encryption algorithm to generate mixed data;

[0067] Step S105: Store the core data and the hybrid data in corresponding databases respectively, and set a security barrier in the database to verify the security of the hybrid data when it is called.

[0068] In this optional embodiment, the original data is encrypted and converted in sequence to generate core data, including:

[0069] Convert the Chinese characters in the original data into Pinyin format, and perform fence encryption on the converted Pinyin characters to obtain specific data values;

[0070] Perform base32 encoding conversion on specific data values, generate specific mixed values ​​after the conversion, and use the specific mixed values ​​as core data.

[0071] In this optional embodiment, configuring the preset key by a predefined fixed salt value, and obtaining the derived key after the configuration is completed includes:

[0072] Obtaining a preset password input by a user; fusing the preset password with a predefined fixed salt value, and using the fusion result as an input to a key derivation function;

[0073] Selecting a hash algorithm in the key derivation function to perform hash calculation on the fusion result to generate an initial intermediate value; taking the initial intermediate value as input, and performing hash calculation on the initial intermediate value using the hash algorithm to generate a second intermediate value;

[0074] The iterative process of hash calculation is repeated until the number of iterations is reached. After the iterative calculation is completed, the final intermediate value generated is used as the derived key.

[0075] In this optional embodiment, storing the core data and the mixed data in corresponding databases respectively includes:

[0076] Storing core data in a non-networked secure database, wherein the secure database is used to recover data when a user loses the key and the secure database does not participate in business logic processing;

[0077] The hybrid data is stored in a business database, wherein the business database is used for daily operation and processing of business logic.

[0078] In this optional embodiment, setting a security barrier in the database to verify the security of the mixed data when it is called includes:

[0079] When the user calls the hybrid data in the business database, the derived key is input and transmitted using https encryption to ensure the security of the hybrid data transmission process.

[0080] After receiving the derived key input by the user, the server decrypts the mixed data and transmits the decrypted mixed data back to the user through the server.

[0081] Figure 2 An embodiment of a sensitive information protection system of the present invention is shown.

[0082] In this optional embodiment, the sensitive information protection system includes:

[0083] The core data encryption module 201 is used to obtain the original data input by the user and the preset key; encrypt and convert the original data in sequence to generate core data;

[0084] The hybrid data encryption module 203 is used to configure the preset key through a predefined fixed salt value, obtain the derived key after the configuration is completed, and encrypt the core data with the derived key in combination with the encryption algorithm to generate hybrid data;

[0085] The data call verification module 205 is used to store the core data and the mixed data in corresponding databases respectively, and set a security barrier in the database to verify the security of the mixed data when it is called.

[0086] In this optional embodiment, the core data encryption module includes a data fence encryption module and a data encoding conversion module, wherein the data fence encryption module is used to convert Chinese characters in the original data into pinyin format, and perform fence encryption on the pinyin characters after the conversion to obtain a specific data value; the data encoding conversion module is used to perform base32 encoding conversion on the specific data value, generate a specific mixed value after the conversion, and use the specific mixed value as the core data.

[0087] In this optional embodiment, the hybrid data encryption module includes a salt value generation module, a key configuration module and a key generation module, wherein the salt value generation module is used to obtain a preset password input by a user; fuse the preset password with a predefined fixed salt value, and use the fusion result as the input of a key derivation function; the key configuration module is used to select a hash algorithm in the key derivation function to perform a hash calculation on the fusion result to generate an initial intermediate value; use the initial intermediate value as input, and use the hash algorithm to perform a hash calculation on the initial intermediate value to generate a second intermediate value; the key generation module is used to repeatedly execute the iterative process of hash calculation until the number of iterations is reached, and after the iterative calculation is completed, use the finally generated intermediate value as the derived key.

[0088] In this optional embodiment, the data call verification module includes a core data storage module and a hybrid data storage module, wherein the core data storage module is used to store core data in a non-networked security database, wherein the security database is used to recover data when the user loses the key, and the security database does not participate in business logic processing; the hybrid data storage module is used to store hybrid data in a business database, wherein the business database is used for daily operation and processing of business logic.

[0089] In this optional embodiment, the data call verification module also includes a data security verification module and a data return module, wherein the data security verification module is used for the user to input a derived key when calling the mixed data in the business database, and performs https encryption processing during the derived key input and derived key transmission process to ensure the security of the mixed data transmission process; the data return module is used for the server to decrypt the mixed data after receiving the derived key input by the user, and return the decrypted mixed data to the user through the server.

[0090] In specific applications, such as Figure 4-Figure 5 As shown, sensitive information protection includes:

[0091] The user enters personal information and key, and then obtains the user's original data and key, and encrypts and stores the original data through an algorithm, which specifically includes: converting the original data into pinyin and numbers, and then performing fence encryption and base32, which is the core data. When the user enters the front end, the core data and the key entered by the user (the user's original input content) are queued and another specific string of characters is returned. At this time, this string of characters is calculated by the original data encryption and the key entered by the user plus the keyboard encryption algorithm.

[0092] Specifically, the fence encryption algorithm is used to convert the user's input into a string of specific digits and permutations that have no practical meaning. The python pinyin library is used to convert the Chinese input by the user into pinyin, and then the English characters and numbers are encrypted using the fence. The number of fence encryption columns is 27, thereby forming a specific value, and then the specific value is base32-ed to obtain a mixed value.

[0093] For example, enter English characters and numbers in the order they are entered, such as " city District 13 Building 999" is converted to " shi qu13haolou999" encrypts this value using a fence, with 27 fences to form a specific value, as shown below:

[0094] 9 9 @ @ @ @ @ @s@h@i@ @ @ @ @ @q@u@1@3@h@a@o@l@o@u@9@, encode this data in base32, and the specific result is as follows:

[0095] "OM4WQOLBIBXEAZ2ANBAGCQDJIBZUA2CANFAHQQDVIBUEA5KANFAHCQDVIAYUAM2ANBAGCQDPIBWEA32AOVADSQA=", and use the data obtained by base32 as the core data.

[0096] Specifically, the fence cipher is a simple encryption method that moves the characters, with simple rules and is easy to crack. The fence cipher encryption method includes: dividing the text into multiple groups according to a certain number of characters, taking the first character of each group and connecting them to get ciphertext 1, then taking the second character of each group and connecting them to get ciphertext 2... Finally, ciphertext 1, ciphertext 2... are connected to form a whole ciphertext.

[0097] The user's key is then introduced based on the core data, and the key entered by the user is transformed through the PBKDF2 function and the hash algorithm, including: a fixed salt value is added to the password entered by the user, and the password and salt value are used as input to derive the key through the PBKDF2 function.

[0098] Specifically, select the SHA-256 hash algorithm in the PBKDF2 function. The hash algorithm can take the password and salt value as input and output a 256-bit key. At this time, use the AES algorithm (aes256, hex encoding, ctr mode, padding iso10126, the key is the 256 key after the user input is deformed, and the offset is 3232) on the original data to obtain the encrypted mixed data through the key.

[0099] Specifically, the core data and the password entered by the user are used as the original input, and a fixed salt value salt is introduced to increase the complexity of the password. The salt value is a random or fixed string, which is used in conjunction with the password to generate a derived key, and the key is derived from the password and the salt value by using the PBKDF2 function. PBKDF2 generates the key by performing multiple iterations (10,000 iterations) of pseudo-random function calculations on the password and the salt value.

[0100] At the same time, the SHA-256 algorithm is selected to generate a pseudo-random function. It is a secure hash algorithm suitable for key derivation. The PBKDF2 function takes the password and salt value as input, and then uses the hash algorithm to generate the key. The generated hash result is keyboard encrypted. Specifically, by setting q to 1, a to 2, and c to 3, the original hash results are replaced in batches. The replacement results are as follows: 'q': '11', 'w': '12', 'e': '13', 'r': '14', 't': '15', 'y': '16', 'u': '17', 'i': '18', 'o': '19', 'p': '20', 'a': '21', 's': '22', 'd': '23', 'f': '24', 'g': '25', 'h': '26', 'j': '27', 'k': '28', 'l': '29', 'z': '30', 'x': '3 1', 'c': '32', 'v': '33', 'b': '34', 'n': '35', 'm': '36', '1': '37', '2': '38' , '3':'39', '4':'40', '5':'41', '6':'42', '7':'43', '8':'44', '9':'45', '0':'46', ' ':'47', '.':'48', ', ':'49', '?':'50', '!':'51', the result after replacement is called mixed data.

[0101] For example, input a Chinese string: No. 1, enter the key: abc123, the encrypted data (original value): fc38d67c3b4f6f1c8078d4671252be77f350edb69c578e4efbdabbb4d10883d4, the encrypted data (after keyboard encryption) is:

[0102] 24323944234243323934402442243732444643442340424337384138341343432439414613233442453241434413401324342321343434402337464444392340.

[0103] Specifically, key derivation is a cryptographic concept that refers to deriving a key required for an encryption process from an initial input (usually a password provided by the user). The purpose of key derivation is to increase the complexity and security of the key to prevent the password from being cracked.

[0104] In the process of key derivation, an algorithm called a key derivation function (KDF) is usually used. These functions take one or more inputs, such as a password and a salt value, and generate an output key. The generation of derived keys is usually a complex process involving multiple iterations, mixing, and hashing operations to increase the randomness and unpredictability of the generated key.

[0105] Specifically, it needs to be explained that AES is a block encryption standard, also known as Rijndael encryption in cryptography. This standard is used to replace the original DES, and AES has become one of the most popular algorithms in symmetric key encryption. AES supports three key lengths: 128 bits, 192 bits, and 256 bits.

[0106] The core data is stored independently in a database that does not participate in any query and processing (not connected to the Internet, not involved in the business) and is saved separately for recovery when the user retrieves the key; mixed data is stored in the database, which is related to the business and participates in the daily logic of the business.

[0107] When users call hybrid data for business purposes, it is necessary for the user to initiate the call and enter the key set by the user. The entire input process and key transfer process are encrypted using https and are not stored in any database.

[0108] The server processes the user's key and restores the data, and sends the data to the user for use.

[0109] Specifically, only mixed data is stored in the database. When viewing the data, users need to enter their own keys before decrypting the data and returning it to the front end, thus solving the problem of sensitive information protection. Even if data leakage occurs, each piece of data is composed of a specific key and will not cause large-scale leakage.

[0110] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 3 As shown. The computer device includes a processor, a memory and a network interface connected through a sensitive information protection method and a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operation sensitive information protection method and system, a computer program and a database. The internal memory provides an environment for the operation of the operation sensitive information protection method and system and the computer program in the non-volatile storage medium. The database of the computer device is used to store static information and dynamic information data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the steps in the above method embodiment are implemented.

[0111] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0112] In addition, the present invention also provides a computer device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiment when executing the computer program.

[0113] In addition, the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiment are implemented.

[0114] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0115] The present invention is not limited to the structures which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A sensitive information protection method, characterized in that: include: Obtain the original data and preset key input by the user; Encrypt and convert the original data in sequence to generate core data; The preset key is configured through a predefined fixed salt value to obtain a derived key after the configuration is completed; and the derived key is combined with an encryption algorithm to encrypt the core data to generate mixed data; Store core data and hybrid data in corresponding databases respectively, and set up security barriers in the database to verify the security of hybrid data when it is called; The original data is encrypted and converted in sequence to generate core data including: Convert the Chinese characters in the original data into Pinyin format, and perform fence encryption on the converted Pinyin characters to obtain specific data values; Perform encoding conversion on specific data values, generate specific mixed values ​​after the conversion, and use the specific mixed values ​​as core data; Configure the preset key with a predefined fixed salt value. The derived key after configuration is obtained includes: Obtaining a preset password input by a user; fusing the preset password with a predefined fixed salt value, and using the fusion result as an input to a key derivation function; Selecting a hash algorithm in the key derivation function to perform hash calculation on the fusion result to generate an initial intermediate value; taking the initial intermediate value as input, and performing hash calculation on the initial intermediate value using the hash algorithm to generate a second intermediate value; The iterative process of hash calculation is repeated until the number of iterations is reached. After the iterative calculation is completed, the final intermediate value generated is used as the derived key.

2. The sensitive information protection method according to claim 1, characterized in that: Storing core data and mixed data in corresponding databases includes: Storing core data in a non-networked secure database, wherein the secure database is used to recover data when a user loses the key and the secure database does not participate in business logic processing; The hybrid data is stored in a business database, wherein the business database is used for daily operation and processing of business logic.

3. The sensitive information protection method according to claim 2, characterized in that: Setting up security barriers in the database to verify the safety of mixed data when it is called includes: When the user calls the mixed data in the business database, the derived key is input and encrypted during the derived key input and derived key transmission process to ensure the security of the mixed data transmission process; After receiving the derived key input by the user, the server decrypts the mixed data and transmits the decrypted mixed data back to the user through the server.

4. A sensitive information protection system, characterized in that: include: The core data encryption module is used to obtain the original data input by the user and the preset key; encrypt and encode the original data in turn to generate core data; The hybrid data encryption module is used to configure the preset key through a predefined fixed salt value, obtain the derived key after the configuration is completed, and encrypt the core data with the derived key in combination with the encryption algorithm to generate hybrid data; The data call verification module is used to store the core data and the mixed data in the corresponding databases respectively, and set a security barrier in the database to verify the security of the mixed data when it is called; The core data encryption module includes a data fence encryption module and a data encoding conversion module, wherein: The data fence encryption module is used to convert the Chinese characters in the original data into the pinyin format, and to perform fence encryption on the converted pinyin characters to obtain a specific data value; A data encoding conversion module is used to perform encoding conversion on a specific data value, generate a specific mixed value after the conversion, and use the specific mixed value as the core data; The hybrid data encryption module includes a salt value generation module, a key configuration module and a key generation module, wherein: The salt value generation module is used to obtain a preset password input by a user; merge the preset password with a predefined fixed salt value, and use the merged result as an input of a key derivation function; The key configuration module is used to select a hash algorithm in the key derivation function to perform hash calculation on the fusion result to generate an initial intermediate value; the initial intermediate value is used as input, and the hash algorithm is used to perform hash calculation on the initial intermediate value to generate a second intermediate value; The key generation module is used to repeatedly perform the iterative process of hash calculation until the number of iterations is reached. After the iterative calculation is completed, the finally generated intermediate value is used as the derived key.

5. The sensitive information protection system according to claim 4, characterized in that: The data call verification module includes a core data storage module and a hybrid data storage module, wherein: A core data storage module, used to store core data in a non-networked secure database, wherein the secure database is used to recover data when a user loses a key, and the secure database does not participate in business logic processing; The hybrid data storage module is used to store the hybrid data in a business database, wherein the business database is used for daily operation and processing of business logic.

6. The sensitive information protection system according to claim 5, characterized in that: The data call verification module also includes a data security verification module and a data return module, wherein: The data security verification module is used for users to input the derived key when calling the mixed data in the business database, and encrypt the derived key input and derived key transmission process to ensure the security of the mixed data transmission process; The data return module is used for the server to decrypt the mixed data after receiving the derived key input by the user, and return the decrypted mixed data to the user through the server.

Citation Information

Cited By

  • Sensitive data detection

    US20260080081A1