Patient data privacy protection encryption method for medical system

Medical data is processed through the iterative grouped DES encryption algorithm and the round function Feistel architecture, which solves the problems of user privacy leakage and resource waste in cloud computing, and improves data security and calculation accuracy.

CN118779919AInactive Publication Date: 2024-10-15GUANGXI UNIV
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202410936875.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-10-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When existing technology uses cloud computing to process medical data, there is a potential risk of leaking user privacy information, and the key length of the DES algorithm is too short and easy to be deciphered, resulting in waste of resources and increased complexity.

Method used

It uses the iterative grouped DES encryption algorithm and round function Feistel architecture to encrypt medical data to ensure data security and reduce resource waste. It processes plaintext data through iterative 16 rounds of Feistel functions, combined with E-box expansion, circle key modulus two addition and S Box function to implement encryption and decryption.

Benefits of technology

It ensures the security of user data and the accuracy of calculation results, while reducing costs, simplifying maintenance and upgrades, and solving the problem of resource waste caused by data complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779919A_ABST
    Figure CN118779919A_ABST
Patent Text Reader

Abstract

The invention discloses a patient data privacy protection encryption method for a medical system. The method comprises the following steps: S1, establishing a medical institution account and a patient file management account; s2, performing basic data protection on the medical data in the patient archive management account; s3, marking privacy data in the medical data needing to be shared, and encrypting and generalizing the marked privacy data; and S4, decrypting the encrypted privacy data to obtain plaintext medical data. According to the privacy protection encryption method for the patient data of the medical system, the DES adopts a round function Feistel architecture, so that the accuracy of a calculation result is ensured on the premise of ensuring the safety of user data, and the problem of resource waste caused by data complexity is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of medical data privacy processing, and in particular to a medical system patient data privacy protection encryption method. Background Art

[0002] With the continuous integration and breakthrough of medical technology and information technology, a continuous source of power has been provided for the generation of medical data. Medical data has the characteristics of large data volume, fast growth rate, diversified data structure and high application value. Using cloud computing technology to obtain and calculate valuable information from medical data can promote the development of clinical research, health management, public health and other aspects. However, while cloud computing provides convenient services to society and individuals, it also has potential risks such as user privacy information leakage. Therefore, how to use the powerful computing power of cloud computing to solve practical problems while ensuring the security of user data has attracted more and more attention.

[0003] In the 20 years since DES was released, many departments and organizations have used it to encrypt data. Cryptographers from various countries have also conducted in-depth analysis of the algorithm, searched for traps in the S-box, studied attack methods, and expanded DES. It is one of the most widely used block ciphers to date. However, DES has a natural disadvantage: the key length is too short and it can no longer resist exhaustive key search attacks. DES was cracked in 1997 [5]. At the same time, in real applications, the block length of the text to be encrypted often exceeds the block length of DES. Therefore, in some important occasions, improved DES algorithms such as triple DES are often used. However, triple DES increases data complexity and leads to a waste of resources. Summary of the invention

[0004] The purpose of the present invention is to provide a medical system patient data privacy protection encryption method. DES adopts the round function Feistel architecture to ensure the accuracy of calculation results under the premise of ensuring user data security, and reduces costs, facilitates maintenance and upgrading, and solves the problem of resource waste caused by complex data.

[0005] To achieve the above object, the present invention provides a medical system patient data privacy protection encryption method, comprising the following steps:

[0006] S1. Establish medical institution accounts and patient file management accounts;

[0007] S2. Provide basic data protection for medical data in patient file management accounts;

[0008] S3, marking the private data in the medical data that needs to be shared, and encrypting and generalizing the marked private data;

[0009] S4. Decrypt the encrypted private data to obtain plaintext medical data.

[0010] Preferably, in step S2, the basic data protection specifically includes using a storage device to perform backup, archiving and log analysis operations on the medical data.

[0011] Preferably, the privacy data in the medical data in step S3 includes personal health data, medical diagnosis data and drug usage data, the personal health data includes personal health records and individual vital signs data, the medical diagnosis data includes the patient's electronic medical record data, medical imaging data and test data when seeking medical treatment, and the drug usage data includes the patient's personal medication records and allergy conditions.

[0012] Preferably, in step S3, the marked medical data is encrypted using an iterative block DES encryption algorithm, wherein the DES encryption algorithm uses a round function Feistel architecture, divides the input plaintext into left and right halves, and performs n rounds of iterations;

[0013] The structural parameters of each round of Feistel function include group length, number of iterations, round function, key length and subkey generation algorithm. The mathematical expression of Feistel function is:

[0014] L i =R i-1

[0015]

[0016] Preferably, in step S3, using DES encryption specifically includes the following steps:

[0017] S31, initial replacement IP: shuffle the plaintext input and rearrange it so that the input and output lengths are the same;

[0018] S32, round function Feistel is used to fuse the sub-key pair R in the i-th round. i-1 The round output is encrypted, and the left and right sides are not swapped in the last round, and are directly output;

[0019] S33. Rearrange the data by inverse initial permutation to obtain ciphertext of the same length.

[0020] Preferably, in step S32, the construction process of the round function Feistel is as follows:

[0021] S321, E-box expansion: E-box expansion expands the variable R to obtain the variable E(R). After the R variable is input, it is evenly grouped, each group is copied and pasted, and the last bit of the previous group is pasted before the first bit of the current group; the first bit of the next group is pasted after the last bit of the current group;

[0022] S322, modulo-2 addition of the circle key: the expanded key is modulo-2 added to the round function on the field F2, and the corresponding bits are output. In the DES component, the mathematical expression of modulo-2 addition of the circle key is:

[0023] B=E(R)⊕K;

[0024] S323, nonlinear component, namely S-box function:

[0025] The bits after the P-box permutation process are grouped from left to right, and each group passes through the S-box in parallel: the first bit and the last bit of each group from left to right are connected to form a binary number, which is converted to hexadecimal for checking the row number; the middle four bits are combined into a binary number, which is converted to hexadecimal for checking the column number.

[0026] Preferably, in step S323, the input of the P-box permutation function is a bit variable C, and the output is a bit variable P(C), and the P-box permutation diffusion complies with the following rule:

[0027] The bit variable C of the P-box input block is distributed to different S-boxes in the next round, and the bit variable P(C) of each output block of the P-box comes from different input blocks; the input of two adjacent S-boxes comes from the S-boxes in the previous round; there are always two bits in the output of each S-box after the previous round of transformation that are diffused to other S-boxes, and the remaining bits will not be diffused.

[0028] Therefore, the present invention adopts the above-mentioned medical system patient data privacy protection encryption method. DES adopts the round function Feistel architecture to ensure the accuracy of calculation results while ensuring the security of user data, and reduces costs, facilitates maintenance and upgrades, and solves the problems of difficult protection and waste of resources caused by the complexity of medical data.

[0029] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is an overall flow chart of an embodiment of a medical system patient data privacy protection encryption method of the present invention;

[0031] Figure 2 It is a schematic diagram of an encryption function of an embodiment of a medical system patient data privacy protection encryption method of the present invention;

[0032] Figure 3 It is a Feistel structure diagram of an embodiment of a medical system patient data privacy protection encryption method of the present invention;

[0033] Figure 4 It is a schematic diagram of a DES encryption process of an embodiment of a medical system patient data privacy protection encryption method of the present invention;

[0034] Figure 5 It is a schematic diagram of the process of constructing an F function in an embodiment of a medical system patient data privacy protection encryption method of the present invention;

[0035] Figure 6 It is a schematic diagram of an E-box expansion of an embodiment of a medical system patient data privacy protection encryption method of the present invention. DETAILED DESCRIPTION

[0036] The technical solution of the present invention is further described below through the accompanying drawings and embodiments.

[0037] Unless otherwise defined, technical or scientific terms used in the present invention shall have the common meanings understood by one having ordinary skills in the field to which the present invention belongs.

[0038] like Figure 1 As shown, a medical system patient data privacy protection encryption method includes the following steps:

[0039] S1. Establish medical institution accounts and patient file management accounts;

[0040] S2. Use a data crawler tool to crawl the medical data stored in the patient file management account, perform basic data protection on the medical data in the patient file management account and upload it to the cloud;

[0041] Basic data protection specifically involves using storage devices to back up, archive, and perform log analysis operations on medical data, and using local storage and cloud backup to form data disaster recovery to further enhance data security.

[0042] S3, marking the private data in the medical data that needs to be shared, and encrypting and generalizing the marked private data;

[0043] Privacy data in medical data includes personal health data, medical diagnosis data and drug usage data. The personal health data includes personal health records and individual vital signs data. The medical diagnosis data includes the patient's electronic medical record data, medical imaging data and test data when seeking medical treatment. The drug usage data includes the patient's personal medication records and allergies.

[0044] The encryption process of a password is a process in which an encryption function acts on plain text. Figure 2 As shown, the plaintext input is encrypted by the E function to obtain the ciphertext, that is, the expression:

[0045] y0y1…y n =Ek(x0x1…x n )

[0046] Expand the encryption function, taking the first digit of the ciphertext as an example, each coefficient and constant term are functions f0 of the key K,

[0047]

[0048] From the expansion, we can see that the number of terms in the encryption function is ∑n-1(n)=2 n-1-1 , and the codeword length n is usually 128 or 256. This encryption function is difficult to implement in both hardware and software. Therefore, n is divided into blocks, assuming it is divided into n / q blocks, each block is q in length, and the corresponding permutation S-boxes are used in parallel to achieve chaos.

[0049] Since each group does not affect each other through the permutation of the S-box, the statistical characteristics are obvious, and the cryptographic system is still insecure. Therefore, after the permutation of the S-box, a diffusion function is applied to link each block. However, the maximum number of such a single-round structure is q-1, which is not enough to ensure security. Therefore, multiple iterations are performed to achieve a multi-round structure. It is assumed that the relationship between the ciphertext and the plaintext is very complicated by iterating r rounds. During the iteration process, it should be noted that if r is too small, the confusion effect will still not be achieved; if r is too large, the encryption efficiency will be low. From this point of view, the choice of r is very important.

[0050] The present invention adopts an iterative group DES encryption algorithm to encrypt the marked medical data. The DES algorithm adopts a round function Feistel architecture, divides the input plaintext into left and right halves R0 and L0, and performs n=16 rounds of iterations;

[0051] Among them, Figure 3 As shown in the figure, the structural parameters of each round of Feistel function include group length, number of iterations, round function, key length and subkey generation algorithm. The mathematical expression of Feistel function is:

[0052] L i =R i-1

[0053]

[0054] like Figure 4 As shown, using DES encryption specifically includes the following steps:

[0055] S31, initial permutation IP: shuffle and rearrange the plaintext input, the input and output lengths are the same, both 64 bits; the initial permutation table shows that the 58th bit of the input is permuted to the 1st bit of the input, the 50th bit of the output is permuted to the 2nd bit... and so on.

[0056] S32, round function Feistel is the core of the DES encryption process, used to fuse the sub-key pair R in the i-th round i-1The round output is encrypted, and the left and right sides are not swapped in the last round (16 rounds), and are directly output;

[0057] S33, rearrange the data through inverse initial permutation to obtain a ciphertext of the same length of 64 bits,

[0058] Initial replacement IP and initial reverse replacement IP -1 See Table 1 and Table 2 below:

[0059]

[0060] like Figure 5 As shown, the construction process of the round function Feistel is as follows:

[0061] S321, E-box expansion: E-box expansion expands the variable R to obtain the variable E(R). After the R variable is input, it is evenly grouped, and each group is copied and pasted. The last bit of the previous group is pasted before the first bit of the current group; the first bit of the next group is pasted after the last bit of the current group, such as Figure 6 As shown;

[0062] The substitution table is shown in Table 3 below:

[0063] Table 3 E-box extension substitution table

[0064]

[0065] The meaning of this extended permutation table is to permute 32 bits to the first bit of the output, permute 1 bit to the second bit of the output, and so on. All the permutation tables mentioned below work in the same way as this table.

[0066] S322, modulo-2 addition of the circle key: the expanded 48-bit key is modulo-2 added to the 48-bit round function on the field F2, and the corresponding 48 bits are output. In the DES component, the mathematical expression of modulo-2 addition of the circle key is:

[0067]

[0068] S323, nonlinear component, namely S-box function:

[0069] DES has 8 S-boxes, each of which has "6 inputs and 4 outputs (6 bits input, 4 bits output)" and is therefore also called a compression function.

[0070] The 48 bits after the P-box permutation are divided into 8 groups from left to right, each with 6 bits, and each group passes through 8 S-boxes in parallel:

[0071] The first bit and the last bit (i.e. the sixth bit) of each group from left to right are connected to form a binary number, which is converted into hexadecimal for checking the row number; the middle four bits are combined into a binary number, which is converted into hexadecimal for checking the column number.

[0072] The S-box compression part table is shown in Table 4 below:

[0073] For example, if we look up the S1 table and input 1010012, we combine the first bit with the sixth bit: 11 2= 3 x , locked in the row 3 corresponding to S1; the middle 4-bit combination is 0100 2= 4 x , locked in the column where 4 is located corresponding to S1. The intersection of the row and column is 4 x , converted to binary 4 x = 01002, and the output of the first block is obtained. Similarly, the remaining 7 S-boxes look up the table to obtain the output, as shown in Table 4 below.

[0074] Table 4 S box compression part table

[0075]

[0076] The input of the P-box permutation function is a bit variable C, and the output is a bit variable P(C), as shown in Table 5 below:

[0077] Table 5 P box replacement table

[0078]

[0079] P-box replacement provides an avalanche effect, and the diffusion of P-box replacement conforms to the following rules, as shown in Table 5:

[0080]

[0081] It is observed that the 4-bit variable C of the P-box input block is distributed to different 6 S-boxes in the next round, and the 4-bit variable P(C) of each output block of the P-box comes from different input blocks; the input of two adjacent S-boxes comes from the 8 S-boxes in the previous round; there are always two bits in the output of each S-box after the previous round of transformation that diffuse to other S-boxes, and the remaining two bits will not diffuse.

[0082] S4. Decrypt the encrypted private data to obtain plaintext medical data.

[0083] Since the Feistel structure used by DES ensures the consistency of encryption and decryption, the decryption process only needs to convert the decryption key of the decryption process into the reverse order of the key of the process:

[0084] The final round of encryption:

[0085] LE 16 =RE 15

[0086]

[0087] Round 1 of the decryption process:

[0088]

[0089] Output of the first round of decryption process:

[0090] LE 15 / / RE 15

[0091] Rounds 1-15 of the encryption process:

[0092] LE i =RE i-1

[0093]

[0094] Corresponding to each round of the decryption process:

[0095] RE i-1 =LE i

[0096]

[0097] Therefore, the present invention adopts the above-mentioned medical system patient data privacy protection encryption method. DES adopts the round function Feistel architecture to ensure the accuracy of calculation results while ensuring the security of user data, and reduces costs, facilitates maintenance and upgrades, and solves the problems of difficult protection and waste of resources caused by the complexity of medical data.

[0098] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that they can still modify or replace the technical solution of the present invention with equivalents, and these modifications or equivalent replacements cannot cause the modified technical solution to deviate from the spirit and scope of the technical solution of the present invention.

Claims

1. A privacy protection encryption method for patient data in a medical system. It is characterized in that The following steps are involved: S1. Establish medical institution accounts and patient file management accounts; S2. Provide basic data protection for medical data in patient file management accounts; S3, marking the private data in the medical data that needs to be shared, and encrypting and generalizing the marked private data; S4. Decrypt the encrypted private data to obtain plaintext medical data.

2. A medical system patient data privacy protection encryption method according to claim 1, It is characterized in that In step S2, the basic data protection specifically involves using storage devices to perform backup, archiving and log analysis operations on medical data.

3. A medical system patient data privacy protection encryption method according to claim 2, It is characterized in that The privacy data in the medical data described in step S3 includes personal health data, medical diagnosis data and drug usage data. The personal health data includes personal health records and individual vital signs data. The medical diagnosis data includes the electronic medical record data, medical imaging data and test data of the patient during medical treatment. The drug usage data includes the patient's personal medication records and allergy conditions.

4. According to claim 3, a medical system patient data privacy protection encryption method, It is characterized in that In step S3, the marked medical data is encrypted using an iterative grouped DES encryption algorithm, wherein the DES encryption algorithm uses a round function Feistel architecture, divides the input plaintext into left and right halves, and performs n rounds of iterations; The structural parameters of each round of Feistel function include group length, number of iterations, round function, key length and subkey generation algorithm. The mathematical expression of Feistel function is: L i =R i-1 5. A medical system patient data privacy protection encryption method according to claim 4, It is characterized in that In step S3, using DES encryption specifically includes the following steps: S31, initial replacement IP: shuffle the plaintext input and rearrange it so that the input and output lengths are the same; S32, round function Feistel is used to fuse the sub-key pair R in the i-th round. i-1 The round output is encrypted, and the left and right sides are not swapped in the last round, and are directly output; S33. Rearrange the data by inverse initial permutation to obtain ciphertext of the same length.

6. A medical system patient data privacy protection encryption method according to claim 5, It is characterized in that In step S32, the construction process of the round function Feistel is as follows: S321, E-box expansion: E-box expansion expands the variable R to obtain the variable E(R). After the R variable is input, it is evenly grouped, each group is copied and pasted, and the last bit of the previous group is pasted before the first bit of the current group; the first bit of the next group is pasted after the last bit of the current group; S322, circle key modulo two addition: the expanded key and the round function are added in the field F 2 Add the modulo 2 above and output the corresponding bits. In the DES component, the mathematical expression of the circle key modulo 2 addition is: S323, nonlinear component, namely S-box function: The bits after the P-box permutation process are grouped from left to right, and each group passes through the S-box in parallel: the first bit and the last bit of each group from left to right are connected to form a binary number, which is converted to hexadecimal for checking the row number; the middle four bits are combined into a binary number, which is converted to hexadecimal for checking the column number.

7. A medical system patient data privacy protection encryption method according to claim 6, It is characterized in that In step S323, the input of the P-box permutation function is a bit variable C, and the output is a bit variable P(C). The P-box permutation diffusion conforms to the following rules: The bit variable C of the P-box input block is distributed to different S-boxes in the next round. The bit variable P(C) of each P-box output block comes from different input blocks. The input of two adjacent S-boxes comes from the S-box of the previous round. There are always two bits in the output of each S-box after the last round of transformation that are diffused to other S-boxes, and the remaining bits are not diffused.

Citation Information

Patent Citations

  • Data fuzzy processing method and device

    CN104679781A

  • Mobile security electronic health record access control system

    CN105915567A

  • Hospital data privacy protection method and device

    CN115270190A

  • Medical data privacy protection method based on homomorphic encryption

    CN115828298A

  • DES-based urine test paper image encryption method

    CN116055650A