CN115361680B - Medical insurance data intelligent sharing and exchanging system - Google Patents

Medical insurance data intelligent sharing and exchanging system Download PDF

Info

Publication number
CN115361680B
CN115361680B CN202211284419.5A CN202211284419A CN115361680B CN 115361680 B CN115361680 B CN 115361680B CN 202211284419 A CN202211284419 A CN 202211284419A CN 115361680 B CN115361680 B CN 115361680B
Authority
CN
China
Prior art keywords
bit binary
splitting
medical insurance
split
numbers
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211284419.5A
Other languages
Chinese (zh)
Other versions
CN115361680A (en
Inventor
王辉
章建聪
梁鲭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huaxin Consulting Co Ltd
Original Assignee
Huaxin Consulting Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huaxin Consulting Co Ltd filed Critical Huaxin Consulting Co Ltd
Priority to CN202211284419.5A priority Critical patent/CN115361680B/en
Publication of CN115361680A publication Critical patent/CN115361680A/en
Application granted granted Critical
Publication of CN115361680B publication Critical patent/CN115361680B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/009Security arrangements; Authentication; Protecting privacy or anonymity specially adapted for networks, e.g. wireless sensor networks, ad-hoc networks, RFID networks or cloud networks

Abstract

The invention relates to the technical field of data encryption, in particular to an intelligent medical insurance data sharing and exchanging system, which comprises: client and server, client and server wireless communication connect, and the client includes: the medical insurance data transmission system comprises a data processing module, a full binary tree building module, an encryption dictionary setting module, an encryption reconstruction module and a transmission sharing module, wherein the data processing module of a client splits data, then the full binary tree building module and the encryption dictionary setting module are used for acquiring a first encryption dictionary, the encryption reconstruction module is used for encrypting binary data obtained by splitting binary data of medical insurance data by using the first encryption dictionary to obtain ciphertext data, and the ciphertext data is transmitted to a server.

Description

Medical insurance data intelligent sharing and exchanging system
Technical Field
The invention relates to the technical field of data encryption, in particular to an intelligent medical insurance data sharing and exchanging system.
Background
The medical insurance is basic medical insurance, and is a social insurance system established for compensating economic loss of workers caused by disease risks. Can make the sick social members obtain necessary material help from the society, and reduce the burden of medical expenses.
As an information sharing society in the modern society, many industries have an information sharing system, and for medical institutions, they also have their own information sharing system, and for an intelligent medical insurance information sharing and exchanging system, medical institutions are used to share the generated medical insurance change data of users through the intelligent medical insurance sharing and exchanging system, that is, each medical institution is equipped with an intelligent medical insurance data sharing and exchanging system, a client of the system is used to transmit the medical insurance data changed by each medical institution to a server of the intelligent medical insurance data sharing and exchanging system through the client, and the server updates and stores the medical insurance data of users, so as to ensure that other institutions can obtain the latest medical insurance data of users.
However, the medical insurance data includes personal basic information, illness information and medicine purchasing information of the user, which all belong to personal privacy data, and encryption is needed to prevent the privacy of the user from being leaked in the process of transmitting the client of each institution to the server of the medical insurance data intelligent sharing and exchanging system.
Therefore, in the prior art, the medical insurance data is encrypted by using the AES encryption method, and the same plaintext is encrypted into the same ciphertext by using the AES encryption method, so that the encrypted ciphertext has certain regularity, and therefore, when the medical insurance data faces a cracking mode of statistical analysis, the safety of the medical insurance data is not high.
Therefore, it is desirable to provide an intelligent medical insurance data sharing and exchanging system to solve the above problems.
Disclosure of Invention
The invention provides an intelligent medical insurance data sharing and exchanging system, which aims to solve the existing problems.
The medical insurance data intelligent sharing and exchanging system adopts the following technical scheme:
the system comprises: the client side is in wireless communication connection with the server;
the client comprises: the data processing module is used for converting the medical insurance data in the client into binary data, dividing the binary data of the medical insurance data into a plurality of 8-bit binary numbers, and dividing each 8-bit binary number into two binary numbers with different lengths;
the full binary tree building module is used for building a full binary tree with the depth of 8, wherein the left path of each node of the full binary tree is marked as 1, the right path of each node of the full binary tree is marked as 0, and a node binary number corresponding to each node is obtained according to the path mark from the root node of the full binary tree to each node and is used as a code;
the encryption dictionary setting module is used for acquiring a value range of a decimal number corresponding to the 8-bit binary number, randomly selecting 254 decimal numbers from the value range, randomly allocating the decimal numbers to nodes of a full binary tree, enabling each node to correspond to one decimal number, and taking the corresponding relation between the code of each node and the decimal number as a first encryption dictionary;
the encryption reconstruction module is used for respectively acquiring decimal numbers corresponding to two binary numbers of each 8-bit binary number in the second encryption dictionary, converting the decimal numbers into 8-bit binary numbers to serve as final 8-bit binary numbers, and obtaining ciphertext data of the medical insurance data according to the two final 8-bit binary numbers corresponding to all the 8-bit binary numbers;
and the transmission sharing module is used for transmitting the ciphertext data and the corresponding first encryption dictionary to the server, and sharing the medical insurance data of each medical institution through the server.
Preferably, the data processing module includes:
the data processing unit is used for taking the first digit value of each 8-digit binary number of the medical insurance data and the 6 following 8-digit binary numbers as the split code of each 8-digit binary number;
the encryption dictionary setting unit is used for acquiring all 8-bit binary numbers with leading bits of 1, and taking the position with the value of 1 as the splitting position of the 8-bit binary numbers to obtain a plurality of splitting templates, wherein each splitting template corresponds to one splitting code, and the relation between the splitting codes and the splitting templates is taken as a second encryption dictionary;
the splitting unit is used for obtaining a splitting code corresponding to each 8-bit binary number of the medical insurance data, obtaining a splitting template corresponding to each splitting code in the first encryption dictionary, and splitting the 8-bit binary number according to the splitting template to obtain two binary numbers corresponding to each 8-bit binary number of the medical insurance data.
Preferably, the obtaining of the plurality of splitting templates by using each position with a value of 1 as a splitting position of an 8-bit binary number includes:
taking an 8-bit binary number with the first bit being 1 as a target 8-bit binary number;
taking all positions with the numerical value of 1 in the target 8-bit binary number as the split positions of the binary number with the first length after the 8-bit binary number of the medical insurance data is split in the 8-bit binary number;
the position with the numerical value of 0 is used as the split position of the binary number with the second length after the 8-bit binary number of the medical insurance data is split at the 8-bit binary number;
and acquiring a splitting template according to the splitting position.
Preferably, the step of corresponding each splitting template to a splitting code includes:
acquiring the total number of the split templates and the total number of split codes, wherein the number of the split templates is 126, and the number of the split codes is 128 if the split codes are 7-bit binary numbers;
after each split template randomly corresponds to one split code, the remaining two split codes are randomly allocated to any two of the 126 split templates.
Preferably, all the splitting templates and all the splitting codes are respectively sequenced to obtain sequencing serial numbers, and the splitting templates and the splitting codes with the same sequencing serial numbers are in one-to-one correspondence.
Preferably, [0,255] is taken as the value range of the decimal number corresponding to the 8-bit binary number.
Preferably, according to the sequence of all the 8-bit binary numbers in the data sequence, sequentially splicing two final 8-bit binary numbers corresponding to all the 8-bit binary numbers to obtain the ciphertext data of the medical insurance data.
Preferably, the server includes:
the receiving module is used for receiving the ciphertext data;
the decryption module is used for sequentially dividing the ciphertext data into binary numbers to be decrypted with the length of 8 bits, converting each binary number of 8 bits into a decimal number to be decrypted, and acquiring a code corresponding to the decimal number to be decrypted in the first encryption dictionary according to the decimal number to be decrypted;
splicing the codes corresponding to two adjacent decimal numbers to be decrypted to obtain a target 8-bit binary number;
obtaining a split code of each target 8-bit binary number according to the first digit value of each target 8-bit binary number and 6 target 8-bit binary numbers after the first digit value;
acquiring a split code of each target 8-bit binary number in a second encryption dictionary, wherein the split code corresponds to a split template;
obtaining an 8-bit binary number before splitting according to the positions with the numerical value of 1 and the numerical value of 2 in the splitting template corresponding to the target 8-bit binary number and using the 8-bit binary number as decryption data;
and acquiring medical insurance data according to all the 8-bit binary numbers before splitting.
Preferably, when the 8-bit binary number after a certain 8-bit binary number of the medical insurance data is less than 6, the 6 8-bit binary numbers are complemented starting from the 1 st 8-bit binary number of the medical insurance data.
The invention has the beneficial effects that: the medical insurance data intelligent sharing and exchanging system breaks up the original relevance of the medical insurance data by splitting the binary number of the medical insurance data and then reconstructing the split binary number, namely, the split process is encrypted by using the second encryption dictionary in the split process of the binary number, and as the split codes of each 8-bit binary number are different in the encryption process, the corresponding split templates in the second encryption dictionary are different, so that the final encryption result is different, the complexity of the split is increased, the original data rule is destroyed, an attacker cannot carry out statistical analysis to carry out brute force attack, and the safety of the medical insurance data transmission is further ensured, secondly, on the basis of obtaining the split binary number on the basis of the first encryption dictionary, the binary number is used for realizing data reconstruction by utilizing the decimal number corresponding to the binary number in the first encryption dictionary, so that encryption is completed, the influence of the split binary number in the process is avoided, and the decimal number in the first encryption dictionary is different when the binary number is different, so that the complexity in the process of obtaining the ciphertext data by encrypting the binary number is increased, namely the data is jointly encrypted by utilizing the first encryption dictionary and the second encryption dictionary, so that the situation that the ciphertext data is cracked by brute force attack by utilizing statistical analysis is further avoided, and the safety in the process of transmitting the medical insurance data is ensured to the greatest extent.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart showing the general steps of embodiment 1 of the intelligent sharing and exchanging system for medical insurance data of the present invention;
fig. 2 is a schematic structural diagram of a full binary tree corresponding to a first encryption dictionary in the embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a split code of 8-bit binary number 10010011 for acquiring medical insurance data in an embodiment of the present invention;
fig. 4 is a flowchart of the general steps of embodiment 2 of the medical insurance data intelligent sharing and exchanging system of the present invention.
Detailed Description
The technical scheme of the invention is further specifically described by the following embodiments and the accompanying drawings.
Example 1:
the application scenario of this embodiment is as follows: because the medical insurance data comprises personal basic information, illness information and medicine purchasing information, which belong to personal privacy data, when the medical insurance data intelligent sharing and exchanging system is used for sharing information, the information is transmitted to a server of the medical insurance data intelligent sharing and exchanging system through clients of various organizations, encryption is required in the process to prevent privacy disclosure of users, AES is used as a block encryption mode, the encryption mode has the same encryption result for blocks with the same content, and therefore, the encryption result can be decrypted by statistical analysis, so the embodiment of the medical insurance data intelligent sharing and exchanging system disclosed by the invention comprises the following steps:
embodiment 1 as shown in fig. 1, an intelligent sharing and exchanging system for medical insurance data includes: the client and the server are in wireless communication connection, namely, the client and the server of the medical insurance data intelligent sharing and exchanging system encrypt and transmit medical insurance data to be transmitted to the server through the client, and the server is used as a server for sharing information of each medical institution, wherein the encryption process of the medical insurance data is performed in the client, and specifically, the client comprises: the medical insurance data comprises a data processing module, a full binary tree construction module, an encryption dictionary setting module, an encryption reconstruction module and a transmission sharing module, wherein the medical insurance data specifically comprises personal basic information, illness information and medicine purchasing information of a user.
The data processing module is used for converting the medical insurance data in the client into binary data, then dividing the binary data of the medical insurance data into a plurality of 8-bit binary numbers according to the sequence of the binary data, and dividing each 8-bit binary number into two binary numbers with different lengths.
Specifically, in this embodiment, the manner of splitting each 8-bit binary number into two binary numbers with different lengths is as follows: selecting several positions in the 8-bit binary number according to the splitting length, wherein the numerical values of the binary numbers of all the selected positions form the first binary number after splitting, and the binary numbers of the rest positions are the first binary number after splitting, such as an 8-bit binary number: 011101100, if a binary number with a length of 1 and a length of 7 is to be split, then 8-bit binary numbers are selected: 011101100, if the number of the first position is selected as the first binary number with length 1, that is 0, then the second binary number with length 7 is 11101100, and if the binary numbers with length 3 and length 5 are selected, then the binary number with 8 bits is needed: 5363 and arbitrarily selecting the numbers of three positions as the first binary number in 011101100, for example, the selected three positions are 8-bit binary numbers: 011101100, the two binary numbers after splitting obtained from the 1, 5 and 6 good positions from left to right are 001 and 111100 in turn, and all the possible types of splitting are carried out.
The full binary tree building module is used for building a full binary tree with a depth of 8, wherein a left path of each node of the full binary tree is marked as 1, a right path of each node of the full binary tree is marked as 0, a node binary number corresponding to each node is obtained according to the path mark from a root node of the full binary tree to each node and is used as a code, and as shown in fig. 2, a binary number corresponding to each node is obtained according to the path mark of each node and is used as a corresponding code of the node; and the encryption dictionary setting module is used for acquiring a value range of the corresponding decimal number according to the 8-bit binary number, randomly selecting 254 decimal numbers from the value range, randomly allocating the decimal numbers to nodes of a full binary tree, enabling each node to correspond to one decimal number, and taking the corresponding relation between the code of each node and the decimal number as a first encryption dictionary.
Specifically, as shown in fig. 2, fig. 2 is a full binary tree with a depth of 8, the topmost node of the full binary tree is the root node, and the rest are nodes, wherein because the maximum binary number of 8 bits is 256, the [0,255] will be obtained]As the value range of the decimal number corresponding to the 8-bit binary number, 254 decimal numbers are randomly selected and randomly allocated to each node of the full binary tree, and C is shared 1 256 ×C 1 255 ×C 1 254 ×…×C 1 3 After each node is allocated with decimal numbers, obtaining binary numbers corresponding to each node according to the path mark of each node, namely, the binary numbers are used as corresponding codes of the nodes, and each node corresponds to one [0,255] simultaneously]The decimal numbers in the range and the codes of the nodes are coded, therefore, the relation between the codes of each node and the corresponding decimal numbers can be obtained according to one of the distribution formulas, and the relation is used as a first encryption dictionary.
The encryption reconstruction module is used for respectively obtaining decimal numbers corresponding to two binary numbers of each 8-bit binary number in the second encryption dictionary, converting the decimal numbers into 8-bit binary numbers to serve as final 8-bit binary numbers, and obtaining ciphertext data of the medical insurance data according to the two final 8-bit binary numbers corresponding to all the 8-bit binary numbers.
Specifically, in order to further ensure the security of the medical insurance data, in the embodiment, on the basis of the two binary numbers of each 8-bit binary number acquired by the data processing module, the decimal number corresponding to each split binary number is found in the second encryption dictionary by using the encryption reconstruction module and the second encryption dictionary, the two split binary numbers are encrypted by using the corresponding decimal number of the split binary number, that is, the corresponding decimal number of the split binary number is converted into the final 8-bit binary number, and then all the final 8-bit binary numbers are sequentially spliced, that is, the ciphertext data of the medical insurance data is reconstructed.
Specifically, for example, an 8-bit binary number 10010011 is taken as an example, the corresponding split code is 1000011, and if the split code 1000011 is 11011010 in the split template corresponding to the second encryption dictionary, at this time, binary numbers of 1, 2, 4, 5, and 7 bits in the binary numbers to be split are selected as a first split binary number 10101 according to the split template, and the remaining positions in the binary numbers to be split, that is, binary numbers of 3, 6, and 6 bits, are selected as a second split binary number 001 according to the split template, and if the decimal number corresponding to the first binary number 10101 in the first encryption dictionary is 77, the decimal number corresponding to the second binary number 001 is 9, and the final 8-bit binary number obtained by converting 77 is 01001101,9 is converted to obtain a final 8-bit binary number of 00001001, then the encryption result corresponding to data 10010011 is 0100110100001001.
And the transmission sharing module is used for transmitting the ciphertext data and the corresponding first encryption dictionary to the server and passing the server.
The server of the medical insurance data intelligent sharing and exchanging system comprises: the receiving module is used for receiving ciphertext data transmitted by the transmission sharing module of the client; the decryption module is used for sequentially dividing the ciphertext data into binary numbers to be decrypted with the length of 8 bits, converting each binary number to be decrypted of 8 bits into a decimal number to be decrypted, and acquiring a code corresponding to the decimal number to be decrypted in the first encryption dictionary according to the decimal number to be decrypted; splicing the codes corresponding to two adjacent decimal numbers to be decrypted to obtain a target 8-bit binary number; obtaining a split code of each target 8-bit binary number according to the first digit value of each target 8-bit binary number and the 6 following target 8-bit binary numbers; acquiring a split code of each target 8-bit binary number in a second encryption dictionary, wherein the split code corresponds to a split template; obtaining an 8-bit binary number before splitting according to the positions with the numerical value of 1 and the numerical value of 2 in the splitting template corresponding to the target 8-bit binary number and using the 8-bit binary number as decryption data; and acquiring medical insurance data according to all the 8-bit binary numbers before splitting.
Specifically, an empty 8-bit binary system is constructed, a first indefinite length code in the data set is filled into a position, corresponding to the empty 8-bit binary system, of a position, corresponding to the 1, in the splitting template, and a second indefinite length code in the data set is filled into a position, corresponding to the empty 8-bit binary system, of a position, corresponding to the 0, in the splitting template. The 8-bit binary system obtained by padding is the decryption result of each data group.
It should be noted that, when the number of target 8-bit binary numbers following a certain target 8-bit binary number is less than 6 in decryption, 6 target 8-bit binary numbers are complemented starting from the 1 st target 8-bit binary number in all target 8-bit binary numbers, so as to satisfy the requirement that the obtained split code of the target 8-bit binary number is a 7-bit binary number.
Example 2
Specifically, as shown in fig. 4, in this embodiment 2, the manner of obtaining each 8-bit binary number in embodiment 1 and splitting it into two binary numbers with indefinite lengths is replaced by the following manner for obtaining, that is, the data processing module includes: the medical insurance data processing system comprises a data processing unit, an encryption dictionary setting unit and a splitting unit, wherein the data processing unit is used for taking each 8-bit binary number of the medical insurance data and the first digit value of 6 8-bit binary numbers behind the 8-bit binary number as a split code of each 8-bit binary number as shown in figure 3; the encryption dictionary setting unit is used for acquiring all 8-bit binary numbers with leading bits of 1, and taking the position with the value of 1 as the splitting position of the 8-bit binary numbers to obtain a plurality of splitting templates, wherein each splitting template corresponds to a splitting code, and the relation between the splitting code and the splitting template is taken as a second encryption dictionary; the splitting unit is used for obtaining a splitting code corresponding to each 8-bit binary number of the medical insurance data, obtaining a splitting template corresponding to each splitting code in the first encryption dictionary, and splitting the 8-bit binary number according to the splitting template to obtain two binary numbers corresponding to each 8-bit binary number of the medical insurance data.
As shown in fig. 3, when the splitting codes of all the 8-bit binary numbers of the medical insurance data are obtained, the splitting codes are obtained according to the obtained splitting codesThe code rule is that when the number of 8-bit binary number after a certain 8-bit binary number of the medical insurance data is less than 6, the number of the 8-bit binary number of the medical insurance data is the second one
Figure DEST_PATH_IMAGE001
Starting from 8-bit binary number, complement 6 8-bit binary numbers to ensure that each acquired split code is 7-bit binary number, and since the first position of the 8-bit binary number of the splitting template must be 1 in this embodiment, there is C in total 1 7 + C 2 7 + C 3 7 + C 4 7 + C 5 7 + C 6 7 =126 split templates, and the split codes are 7-bit binary numbers, that is, the number of the split codes is 128; therefore, after each splitting template randomly corresponds to one splitting code, the remaining two splitting codes are randomly allocated to any two of the 126 splitting templates, that is, the possible allocation modes for randomly allocating the splitting codes to the splitting templates include:
(C 2 128 ×C 1 126 )×(C 2 126 ×C 1 125 ) ×C 1 124 ×C 1 123 ×…×C 1 2 by using the method of =7875 × 128 | and/or 2, the corresponding relationship between the split code and the split template in one of the distribution methods is used as the second encryption dictionary, and it should be noted that the distribution methods of the medical institutions may be set to different methods, thereby further improving the security.
As shown in fig. 3, in binary data
100100110110011101000101000101000001100111101110 for example, the first 8-bit binary number of the binary data corresponding to the medical insurance data is 10010011 split code, so the first numerical value of each 8-bit binary number and the first numerical value of 6 8-bit binary numbers following the 8-bit binary number form the 8-bit binary number 10010011 split code: 1000011.
in embodiment 2, the process of obtaining the template by splitting each 8-bit binary number into two binary numbers with indefinite lengths is as follows: taking an 8-bit binary number with the first bit being 1 as a target 8-bit binary number; taking the positions with the numerical values of 1 in the target 8-bit binary number as the split positions of the binary number with the first length after the split of the 8-bit binary number of the medical insurance data at the 8-bit binary number; the position with the numerical value of 0 is used as the split position of the binary number with the second length after the 8-bit binary number of the medical insurance data is split at the 8-bit binary number; acquiring a splitting template according to the splitting position, specifically, according to a target 8-bit binary number: 10110110 is described as an example, that is, if the target 8-bit binary number 10110110 is obtained, first, all positions with a value of 1 are selected, that is, positions 1, 3, 4, 6, and 7 from left to right in the target 8-bit binary number 10110110 are obtained, then positions 2, 5, and 8 from left to right in the target 8-bit binary number 10110110 are obtained, a position corresponding to a value of 1 and a position corresponding to 0 are taken as a splitting template for splitting the 8-bit binary number, specifically, 01001101 is taken as an 8-bit binary number to be split, and if the template corresponding to the 8-bit binary number to be split is taken as a target 8-bit binary number 10110110, then the two split binary numbers are sequentially: 00010 and 100, similarly, as long as the splitting code corresponding to each 8-bit binary number is obtained, the corresponding splitting template can be obtained according to the splitting code corresponding to the 8-bit binary number, so as to split the 8-bit binary number by using the splitting template.
It should be noted that, when an 8-bit binary number is split into two binary numbers with indefinite lengths, the split binary numbers with different lengths are 7 bits at the longest and 1 bit at the shortest, and a binary number with a bit 0 and a bit 8 is not possible to appear, so that the obtained split templates are 126 in total, and secondly, the split codes are 7-bit binary numbers, so that the split codes are 128 in total; therefore, after each splitting template randomly corresponds to one splitting code, the remaining two splitting codes are required to be randomly distributed to any two of the 126 splitting templates, when the splitting templates correspond to the splitting codes, two splitting templates respectively correspond to the two splitting templates, the splitting templates corresponding to the remaining two splitting codes are set by self according to actual conditions, specifically, the self-set correspondence relationship between the splitting templates and the splitting codes is used as a second encryption dictionary for clients of different medical institutions, so that the data splitting modes of each medical institution are different, the security of subsequent data transmission is improved, and secondly, the complexity of the second encryption dictionary is high, so that an attacker using a traditional brute force attack means has high difficulty in cracking.
Then, a full binary tree with a depth of 8 is constructed by using the full binary tree construction module in embodiment 1, where a left path of each node of the full binary tree is marked as 1, a right path of each node of the full binary tree is marked as 0, a node binary number corresponding to each node is obtained according to a path mark from a root node of the full binary tree to each node and is used as a code, and as shown in fig. 2, a binary number corresponding to each node is obtained according to the path mark of each node and is used as a corresponding code of the node; acquiring a value range of decimal numbers corresponding to each 8-bit binary number by using an encryption dictionary setting module, randomly selecting 254 decimal numbers from the value range, randomly allocating the decimal numbers to nodes of a full binary tree, enabling each node to correspond to one decimal number, and taking the corresponding relation between the code of each node and the decimal number as a first encryption dictionary; the encryption reconstruction module is used for respectively acquiring decimal numbers corresponding to two binary numbers of each 8-bit binary number in the second encryption dictionary, converting the decimal numbers into 8-bit binary numbers to serve as final 8-bit binary numbers, and obtaining ciphertext data of the medical insurance data according to the two final 8-bit binary numbers corresponding to all the 8-bit binary numbers; and the transmission sharing module is used for transmitting the ciphertext data and the corresponding first encryption dictionary to the server, and sharing of medical insurance data of each medical institution is realized through the server.
In summary, the invention provides an intelligent sharing and exchanging system for medical insurance data, which breaks up the original relevance of the medical insurance data by splitting the binary number of the medical insurance data and then reconstructing the split binary number, namely, a second encryption dictionary is used for encrypting the splitting process in the splitting process of the binary number, and as the splitting codes of each 8-bit binary number are different in the encryption process, the corresponding splitting templates in the second encryption dictionary are different, so that the final encryption result is different, the complexity of the splitting is increased, the rule of the original data is destroyed, so that an attacker cannot perform statistical analysis to perform brute force attack, the security during the transmission of the medical insurance data is further ensured, and secondly, on the basis of obtaining the split binary number on the basis of the first encryption dictionary, the decimal number corresponding to the binary number in the first encryption dictionary is used for reconstructing the data, so that the encryption data is reconstructed, the encryption is completed, the influence of the split binary number on the binary number in the first encryption dictionary is different, the complexity of the binary number in the first encryption dictionary is different, the encryption dictionary is also used for further avoiding the attack of the encryption of the encrypted data in the second encryption dictionary, and the encryption dictionary, so that the attack of the encrypted data is further performed by using the encryption dictionary encryption of the encryption dictionary.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (9)

1. An intelligent sharing and exchanging system for medical insurance data, which is characterized in that the system comprises: the client side is in wireless communication connection with the server;
the client comprises: the data processing module is used for converting the medical insurance data in the client into binary data, dividing the binary data of the medical insurance data into a plurality of 8-bit binary numbers, and dividing each 8-bit binary number into two binary numbers with different lengths;
the full binary tree building module is used for building a full binary tree with the depth of 8, wherein the left path of each node of the full binary tree is marked as 1, the right path of each node of the full binary tree is marked as 0, and a node binary number corresponding to each node is obtained according to the path mark from the root node of the full binary tree to each node and is used as a code;
the encryption dictionary setting module is used for acquiring a value range of a decimal number corresponding to the 8-bit binary number, randomly selecting 254 decimal numbers from the value range, randomly allocating the decimal numbers to nodes of a full binary tree, enabling each node to correspond to one decimal number, and taking the corresponding relation between the code of each node and the decimal number as a first encryption dictionary;
the encryption reconstruction module is used for respectively acquiring decimal numbers corresponding to two binary numbers of each 8-bit binary number in the first encryption dictionary, converting the decimal numbers into 8-bit binary numbers to serve as final 8-bit binary numbers, and obtaining ciphertext data of the medical insurance data according to the two final 8-bit binary numbers corresponding to all the 8-bit binary numbers;
and the transmission sharing module is used for transmitting the ciphertext data and the corresponding first encryption dictionary to the server, and sharing the medical insurance data of each medical institution through the server.
2. The medical insurance data intelligent sharing and exchanging system according to claim 1, wherein the data processing module comprises:
the data processing unit is used for taking the first digit value of each 8-digit binary number of the medical insurance data and the 6 following 8-digit binary numbers as the split code of each 8-digit binary number;
the encryption dictionary setting unit is used for acquiring all 8-bit binary numbers with leading bits of 1, and taking the position with the value of 1 as the splitting position of the 8-bit binary numbers to obtain a plurality of splitting templates, wherein each splitting template corresponds to one splitting code, and the relation between the splitting codes and the splitting templates is taken as a second encryption dictionary;
the splitting unit is used for obtaining a splitting code corresponding to each 8-bit binary number of the medical insurance data, obtaining a splitting template corresponding to each splitting code in the second encryption dictionary, and splitting the 8-bit binary number according to the splitting template to obtain two binary numbers corresponding to each 8-bit binary number of the medical insurance data.
3. The medical insurance data intelligent sharing and exchanging system of claim 2, wherein the step of obtaining a plurality of splitting templates by using each position with a value of 1 as a splitting position of an 8-bit binary number comprises:
taking an 8-bit binary number with a first bit of 1 as a target 8-bit binary number;
taking all positions with the numerical value of 1 in the target 8-bit binary number as the split positions of the binary number with the first length after the 8-bit binary number of the medical insurance data is split in the 8-bit binary number;
the position with the numerical value of 0 is used as the split position of the binary number with the second length after the 8-bit binary number of the medical insurance data is split at the 8-bit binary number;
and acquiring a splitting template according to the splitting position.
4. The medical insurance data intelligent sharing and exchanging system of claim 2, wherein each splitting template corresponds to a splitting code, comprising:
acquiring the total number of the split templates and the total number of the split codes, wherein the total number of the split templates is 126, and the total number of the split codes is 128 if the split codes are 7-bit binary numbers;
after each split template randomly corresponds to one split code, the remaining two split codes are randomly allocated to any two of the 126 split templates.
5. The medical insurance data intelligent sharing and exchanging system according to claim 2, wherein all the split templates and all the split codes are sorted respectively to obtain sorting serial numbers, and the split templates and the split codes with the same sorting serial numbers are in one-to-one correspondence.
6. The medical insurance data intelligent sharing and exchanging system according to claim 1, wherein [0,255] is taken as a value range of decimal numbers corresponding to 8-bit binary numbers.
7. The medical insurance data intelligent sharing and exchanging system of claim 1, wherein two final 8-bit binary numbers corresponding to all 8-bit binary numbers are sequentially spliced according to the sequence of all 8-bit binary numbers in the data sequence to obtain the ciphertext data of the medical insurance data.
8. The medical insurance data intelligent sharing and exchanging system according to claim 2, wherein the server includes:
the receiving module is used for receiving the ciphertext data;
the decryption module is used for sequentially dividing the ciphertext data into binary numbers to be decrypted with the length of 8 bits, converting each binary number to be decrypted of 8 bits into a decimal number to be decrypted, and acquiring a code corresponding to the decimal number to be decrypted in the first encryption dictionary according to the decimal number to be decrypted;
splicing the codes corresponding to two adjacent decimal numbers to be decrypted to obtain a target 8-bit binary number;
obtaining a split code of each target 8-bit binary number according to the first digit value of each target 8-bit binary number and the 6 following target 8-bit binary numbers;
acquiring a split code of each target 8-bit binary number in a second encryption dictionary, wherein the split code corresponds to a split template;
obtaining an 8-bit binary number before splitting according to the positions with the numerical value of 1 and the numerical value of 2 in the splitting template corresponding to the target 8-bit binary number and using the 8-bit binary number as decryption data;
and acquiring medical insurance data according to all the 8-bit binary numbers before splitting.
9. The medical insurance data intelligent sharing and exchanging system of claim 1, wherein when the number of 8-bit binary numbers following a certain 8-bit binary number of the medical insurance data is less than 6, the 6 8-bit binary numbers are complemented starting from the 1 st 8-bit binary number of the medical insurance data.
CN202211284419.5A 2022-10-20 2022-10-20 Medical insurance data intelligent sharing and exchanging system Active CN115361680B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211284419.5A CN115361680B (en) 2022-10-20 2022-10-20 Medical insurance data intelligent sharing and exchanging system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211284419.5A CN115361680B (en) 2022-10-20 2022-10-20 Medical insurance data intelligent sharing and exchanging system

Publications (2)

Publication Number Publication Date
CN115361680A CN115361680A (en) 2022-11-18
CN115361680B true CN115361680B (en) 2023-02-17

Family

ID=84008229

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211284419.5A Active CN115361680B (en) 2022-10-20 2022-10-20 Medical insurance data intelligent sharing and exchanging system

Country Status (1)

Country Link
CN (1) CN115361680B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108075879A (en) * 2016-11-10 2018-05-25 中国移动通信集团安徽有限公司 The method, apparatus and system of a kind of data encryption and decryption
JP2019040047A (en) * 2017-08-24 2019-03-14 Kddi株式会社 Computation system, computation method and computation program
CN112837770A (en) * 2021-01-21 2021-05-25 北京理工大学 Privacy protection similar medical record query method in large-scale electronic medical system
CN115174036A (en) * 2022-09-06 2022-10-11 华信咨询设计研究院有限公司 Medical insurance data security transmission system and method based on data processing
CN115206496A (en) * 2022-07-26 2022-10-18 河南天一智能信息有限公司 Real-time transmission method of cardiovascular detection data

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112165380A (en) * 2019-04-24 2021-01-01 吕志强 Split type binary data encryption method
US20220284129A1 (en) * 2021-03-07 2022-09-08 Guardtime Sa Verifiable Splitting of Single-Instance Data Using Sharded Blockchain

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108075879A (en) * 2016-11-10 2018-05-25 中国移动通信集团安徽有限公司 The method, apparatus and system of a kind of data encryption and decryption
JP2019040047A (en) * 2017-08-24 2019-03-14 Kddi株式会社 Computation system, computation method and computation program
CN112837770A (en) * 2021-01-21 2021-05-25 北京理工大学 Privacy protection similar medical record query method in large-scale electronic medical system
CN115206496A (en) * 2022-07-26 2022-10-18 河南天一智能信息有限公司 Real-time transmission method of cardiovascular detection data
CN115174036A (en) * 2022-09-06 2022-10-11 华信咨询设计研究院有限公司 Medical insurance data security transmission system and method based on data processing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种改进的数据加密解密算法;王玉琼;《阜阳职业技术学院学报》;20171220;全文 *

Also Published As

Publication number Publication date
CN115361680A (en) 2022-11-18

Similar Documents

Publication Publication Date Title
CN113824728B (en) Network communication method and system based on data encryption
US7346160B2 (en) Randomization-based encryption apparatus and method
CN105160210B (en) A kind of software authorization method and system, software terminal and software manager
EP0422230A1 (en) Data carrier and data communication apparatus using the same
CN113515760B (en) Horizontal federal learning method, apparatus, computer device, and storage medium
CN1279851A (en) Virtual matrix encryption (VME) and virtual key cryptographic method and aparatus
CN112580072B (en) Data set intersection method and device
CN115842621B (en) Intelligent medical system based on big data and cloud edge cooperation
CN1489338A (en) Enciphering method using double keys and its wireless local network system
KR100727387B1 (en) Key Management Method in Network System
CN1551559A (en) Method and device for organising public key based on user_defined identification code cryptographic system
CN115296862A (en) Network data secure transmission method based on data coding
CN114154196A (en) Heterogeneous data processing method and device and electronic equipment
CN117278324B (en) Message encryption transmission method and system
CN113328851B (en) Method and system for randomly transmitting secret key under multilink condition
CN115361680B (en) Medical insurance data intelligent sharing and exchanging system
CN104753918A (en) Mobile phone off-line authentication method
CN106487761B (en) Message transmission method and network equipment
CN114363094B (en) Data sharing method, device, equipment and storage medium
CN110351289A (en) The method and device of data encryption
CN109951417B (en) Identity authentication method, system and terminal equipment
CN113094731B (en) Block chain privacy protection method based on different distribution recombination scheme
IL294643A (en) A method for symmetric asynchronous generative encryption
CN110365468A (en) Anonymization processing method, device, equipment and storage medium
Sukhanova et al. The Method of the Cryptographic Information Protection in IT-Systems

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant