A method and system for processing medical beauty data

By performing text analysis, image segmentation and encryption processing on medical beauty data, forming a combined encrypted string and performing asymmetric encryption, and entering it into the medical beauty database, the problem of insufficient security and confidentiality of the existing traditional Chinese medicine beauty data storage management is solved, and the data is safe, reliable and traceable.

CN119442281BActive Publication Date: 2025-05-13北京同励健康科技集团有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411541149.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-05-13
Estimated Expiration
2044-10-31

AI Technical Summary

Technical Problem

When existing medical beauty institutions store and manage medical beauty data, their security and confidentiality are insufficient, making it difficult for them to effectively protect customers' personal privacy.

Method used

By analyzing the text data in the medical beauty record data, image identification information, personal identity information and medical number information are extracted, and the image data is segmented and filled based on this information, encrypted, forming a combined encrypted string and asymmetrically encrypted, and the encryption results are entered into the medical beauty database.

Benefits of technology

It realizes safe and reliable storage management of medical beauty data, improves data confidentiality and traceability, and ensures that customers' personal privacy is not violated.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119442281B_ABST
    Figure CN119442281B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of data processing technology, and specifically discloses a method and system for processing medical beauty data, which parses the text data in the medical beauty record data of the target object to determine the image identification information, and then uses the image identification information to segment and fill the image data in the medical beauty record data to obtain two types of segmented image data, and then encrypts and combines the text data and the two types of image data based on the text data extraction information to obtain a combined encrypted string, and finally asymmetrically encrypts the combined encrypted string, and enters the encryption result into the corresponding data table in the medical beauty database according to the data table number determined by the combination information. The present invention can effectively improve the security and reliability of the storage and management of medical beauty data, and can realize the complete storage of medical beauty data, which is convenient for reverse analysis and tracing, and fully meets the confidentiality, integrity and traceability requirements of medical beauty data storage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of data processing technology, and specifically relates to a method and system for processing medical aesthetics data. Background Art

[0002] With the rapid development of medical cosmetology technology, the demand for medical cosmetology services is also growing. This growth in demand has directly promoted the development of the medical cosmetology industry, and has generated a large amount of medical cosmetology data. Medical cosmetology data usually includes some process record image data and text data, which will involve the customer's personal privacy, such as identity information, health status, body part images, etc. If this information is improperly leaked, it may cause the customer to suffer property loss, harassment, or even mental distress. Therefore, it is an important task for medical cosmetology institutions to store and manage customers' medical cosmetology data safely and effectively. It is necessary to ensure that the relevant medical cosmetology data can be traced while ensuring that the customer's personal privacy is not violated. However, when existing medical cosmetology institutions store and manage customers' medical cosmetology data, most of them use the method of direct storage without encryption or one-time simple encryption storage, and only perform permission verification when accessing the data. This method needs to be improved in terms of security and confidentiality. Summary of the invention

[0003] The purpose of the present invention is to provide a method and system for processing medical aesthetic data to solve the above-mentioned problems existing in the prior art.

[0004] In order to achieve the above object, the present invention adopts the following technical solutions:

[0005] In a first aspect, the present invention provides a method for processing medical aesthetic data, comprising:

[0006] Acquire medical beauty record data of a target object, wherein the medical beauty record data includes mutually related text data and initial image data;

[0007] Parse the text data to extract image identification information, personal identification information, and medical number information from the text data;

[0008] Segmenting the initial image data based on the image identification information to obtain segmented first image data, and determining image position parameters corresponding to the first image data;

[0009] Performing data filling on the segmented part of the initial image data to obtain second image data;

[0010] Calculating a first key based on personal identification information, calculating a second key based on medical number information, combining the personal identification information with the medical number information to obtain combined information, and calculating a combined key based on the combined information;

[0011] Performing a first encryption process on the first image data using the first key to obtain a first encrypted string, performing a second encryption process on the second image data using the second key to obtain a second encrypted string, and performing a third encryption process on the image position parameter and the text data using the combined key to obtain a third encrypted string and a fourth encrypted string;

[0012] Combining the first encrypted string, the second encrypted string, the third encrypted string, and the fourth encrypted string to obtain a combined encrypted string;

[0013] Use the set public key to perform asymmetric encryption on the combined encrypted string to obtain the corresponding medical beauty record encrypted string;

[0014] The data table number is determined according to the combined information, and the encrypted character string of the medical beauty record is entered into the corresponding data table in the medical beauty database according to the data table number.

[0015] In a possible design, segmenting the initial image data based on the image identification information to obtain segmented first image data, and determining image position parameters corresponding to the first image data includes:

[0016] Constructing a corresponding medical beauty record image based on the initial image data, and determining an image identification area and image position parameters of the image identification area in the medical beauty record image according to the image identification information;

[0017] An image identification area is segmented from the medical beauty record image to obtain corresponding first image data, and image position parameters of the image identification area are associated with the first image data.

[0018] In a possible design, performing data filling on the segmented part of the initial image data to obtain the second image data includes:

[0019] The segmented part of the medical beauty record image is filled with grayscale to obtain the corresponding second image data.

[0020] In one possible design, the first key is calculated based on personal identity information, the second key is calculated based on medical number information, the personal identity information and the medical number information are combined to obtain combined information, and the combined key is calculated based on the combined information, including:

[0021] Calculate a first hash value for the personal identity information using a set message digest algorithm, and use the obtained first hash value as a first key;

[0022] Using a set message digest algorithm to calculate a second hash value for the medical number information, and using the calculated second hash value as a second key;

[0023] The personal identity information and the medical number information are combined to obtain combined information, and a third hash value is calculated for the combined information using a set message digest algorithm, and the calculated third hash value is used as a third key.

[0024] In a possible design, the first image data is first encrypted using a first key to obtain a first encrypted string, the second image data is second encrypted using a second key to obtain a second encrypted string, and the image position parameter and the text data are third encrypted using a combined key to obtain a third encrypted string and a fourth encrypted string, including:

[0025] Performing SM4 symmetric encryption calculation on the first image data using the first key to obtain a first encrypted string;

[0026] Performing IDEA symmetric encryption calculation on the second image data using the second key to obtain a second encrypted string;

[0027] The combined key is used to perform AES symmetric encryption calculation on the image position parameter and the text data respectively to obtain a third encrypted string and a fourth encrypted string.

[0028] In one possible design, the first encrypted string, the second encrypted string, the third encrypted string, and the fourth encrypted string are combined to obtain a combined encrypted string, including:

[0029] The first encrypted string, the second encrypted string, the third encrypted string and the fourth encrypted string are sequentially concatenated and combined, and a first delimiter is set between the first encrypted string and the second encrypted string, a second delimiter is set between the second encrypted string and the third encrypted string, and a third delimiter is set between the third encrypted string and the fourth encrypted string to obtain a combined encrypted string.

[0030] In a possible design, the combined encrypted string is asymmetrically encrypted using a set public key to obtain a corresponding encrypted string of medical beauty records, including:

[0031] Retrieve the pre-stored public key, and use the public key to perform SM2 asymmetric encryption calculation on the combined encrypted string to obtain the corresponding medical beauty record encrypted string.

[0032] In a possible design, determining the data table number according to the combination information includes:

[0033] The combined information is encoded to obtain a corresponding combined data string, and the combined data string is converted to obtain a corresponding data table number.

[0034] In a second aspect, the present invention provides a medical aesthetic data processing system, comprising a data acquisition unit, an information extraction unit, an image segmentation unit, an image filling unit, a key calculation unit, a first encryption unit, a character combination unit, a second encryption unit and a data recording unit, wherein:

[0035] A data acquisition unit, used to acquire medical beauty record data of a target object, wherein the medical beauty record data includes mutually related text data and initial image data;

[0036] An information extraction unit, used to parse the text data and extract image identification information, personal identity information and medical number information from the text data;

[0037] An image segmentation unit, configured to segment the initial image data based on the image identification information to obtain segmented first image data, and determine image position parameters corresponding to the first image data;

[0038] An image filling unit, used for filling the segmented part of the initial image data with data to obtain second image data;

[0039] A key calculation unit, used to calculate a first key according to personal identity information, calculate a second key according to medical number information, combine the personal identity information with the medical number information to obtain combined information, and calculate a combined key according to the combined information;

[0040] A first encryption unit is used to perform a first encryption process on the first image data using a first key to obtain a first encrypted string, perform a second encryption process on the second image data using a second key to obtain a second encrypted string, and perform a third encryption process on the image position parameter and the text data using a combined key to obtain a third encrypted string and a fourth encrypted string;

[0041] A character combining unit, used for combining the first encrypted string, the second encrypted string, the third encrypted string and the fourth encrypted string to obtain a combined encrypted string;

[0042] The second encryption unit is used to perform asymmetric encryption processing on the combined encrypted string using a set public key to obtain a corresponding medical beauty record encrypted string;

[0043] The data recording and storage unit is used to determine the data table number according to the combination information, and enter the encrypted string of the medical beauty record into the corresponding data table in the medical beauty database according to the data table number.

[0044] In a third aspect, the present invention provides a system for processing medical aesthetic data, comprising:

[0045] A memory for storing instructions;

[0046] A processor is used to read the instructions stored in the memory and execute any one of the methods described in the first aspect according to the instructions.

[0047] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein instructions are stored on the computer-readable storage medium, and when the instructions are executed on a computer, the computer executes any one of the methods described in the first aspect. At the same time, a computer program product is also provided, and when the computer program product is executed on a computer, the computer executes any one of the methods described in the first aspect.

[0048] Beneficial effects: The present invention parses the text data in the medical beauty record data of the target object to determine the image identification information, and then uses the image identification information to segment and fill the image data in the medical beauty record data to obtain two types of segmented image data, and then encrypts and combines the text data and the two types of image data based on the text data extraction information to obtain a combined encrypted string, and finally asymmetrically encrypts the combined encrypted string, and enters the encryption result into the corresponding data table in the medical beauty database according to the data table number determined by the combination information, so as to achieve safe and reliable medical beauty data storage management, so as to use the corresponding object information and key to perform effective reverse decryption in the future, and trace the required medical beauty data. The present invention can effectively improve the security and reliability of medical beauty data storage and management by segmenting the image data, and associating the object information to perform classified encryption and combined encryption of the segmented image data and text data, and can achieve complete storage of medical beauty data, which is convenient for reverse analysis and tracing, and fully meets the confidentiality, integrity and traceability requirements of medical beauty data storage. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0050] Figure 1 A schematic diagram of the method steps provided in Example 1 of the present invention;

[0051] Figure 2 A schematic diagram of the system structure provided in Example 2 of the present invention;

[0052] Figure 3 This is a schematic diagram of the system structure provided in Example 3 of the present invention. DETAILED DESCRIPTION

[0053] It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention. The specific structures and functional details disclosed herein are only used to describe the exemplary embodiments of the present invention. However, the present invention can be embodied in many alternative forms, and it should not be understood that the present invention is limited to the embodiments set forth herein.

[0054] It should be understood that, unless otherwise clearly specified and limited, the term "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the embodiments can be understood according to specific circumstances.

[0055] In the following description, certain details are provided to facilitate a complete understanding of the example embodiments. However, it will be appreciated by those of ordinary skill in the art that the example embodiments may be implemented without these certain details. For example, the system may be shown in a block diagram to avoid obscuring the example with unnecessary details. In other embodiments, well-known processes, structures, and techniques may not be shown in unnecessary detail to avoid obscuring the embodiments.

[0056] Embodiment 1:

[0057] This embodiment provides a method for processing medical aesthetics data, which can be applied to corresponding data processing terminals, such as Figure 1 As shown, the method comprises the following steps:

[0058] S1. Acquire medical beauty record data of a target object, wherein the medical beauty record data includes interrelated text data and initial image data.

[0059] During specific implementation, the data processing terminal first obtains the medical beauty record data of the target object uploaded by the cosmetic doctor. The medical beauty record data includes interrelated text data and initial image data. The initial image data contains relevant image annotation information. The text data may include surgery or rehabilitation record information, time information, personal identity information, medical number information and image identification information. The image identification information is associated with the relevant image annotation information in the corresponding initial image data.

[0060] S2. Parse the text data and extract image identification information, personal identity information, and medical number information from the text data.

[0061] During specific implementation, the data processing terminal can parse the text data and extract image identification information, personal identity information and medical number information from the text data.

[0062] S3. Segment the initial image data based on the image identification information to obtain segmented first image data, and determine image position parameters corresponding to the first image data.

[0063] During specific implementation, the data processing terminal can construct a corresponding medical beauty record image based on the initial image data. The medical beauty record image includes an image identification area marked by image annotation information, and the image identification area corresponds to a surgical area or a privacy area. Then, the image annotation information is determined according to the image identification information, and the image identification area in the medical beauty record image is distinguished according to the image annotation information, and the image position parameters of the image identification area in the medical beauty record image are determined; then, the image identification area is segmented from the medical beauty record image to obtain the corresponding first image data, and the image position parameters of the image identification area are associated with the first image data.

[0064] S4. Perform data filling on the segmented part of the initial image data to obtain second image data.

[0065] During specific implementation, the data processing terminal performs grayscale filling on the segmented portion of the medical beauty record image, such as filling the grayscale value with 255 (ie, white), to obtain the corresponding second image data.

[0066] S5. Calculate a first key based on personal identity information, calculate a second key based on medical number information, combine the personal identity information with the medical number information to obtain combined information, and calculate the combined key based on the combined information.

[0067] During specific implementation, the data processing terminal uses a set message digest algorithm, such as the MD5 algorithm, to perform a first hash value calculation on the personal identity information, and uses the obtained first hash value as the first key; uses a set message digest algorithm to perform a second hash value calculation on the medical number information, and uses the calculated second hash value as the second key; combines the personal identity information with the medical number information to obtain combined information, and uses the set message digest algorithm to perform a third hash value calculation on the combined information, and uses the calculated third hash value as the third key.

[0068] S6. Perform a first encryption process on the first image data using the first key to obtain a first encrypted string, perform a second encryption process on the second image data using the second key to obtain a second encrypted string, and perform a third encryption process on the image position parameter and the text data using the combined key to obtain a third encrypted string and a fourth encrypted string.

[0069] In specific implementation, the data processing terminal can use the first key to perform SM4 symmetric encryption calculation on the first image data to obtain the first encrypted string; use the second key to perform IDEA symmetric encryption calculation on the second image data to obtain the second encrypted string; use the combined key to perform AES symmetric encryption calculation on the image position parameters and text data respectively to obtain the third encrypted string and the fourth encrypted string. By dividing the original medical beauty record image into two parts and encrypting them separately from the text data, it can effectively prevent the leakage of stored data and the complete cracking of private information, greatly improving the security and confidentiality of medical beauty data storage.

[0070] S7. Combine the first encrypted string, the second encrypted string, the third encrypted string and the fourth encrypted string to obtain a combined encrypted string.

[0071] In a specific implementation, the data processing terminal sequentially concatenates the first encrypted string, the second encrypted string, the third encrypted string, and the fourth encrypted string, and sets a first delimiter between the first encrypted string and the second encrypted string, a second delimiter between the second encrypted string and the third encrypted string, and a third delimiter between the third encrypted string and the fourth encrypted string to obtain a combined encrypted string.

[0072] S8. Use the set public key to asymmetrically encrypt the combined encrypted string to obtain the corresponding medical beauty record encrypted string.

[0073] In specific implementation, the data processing terminal retrieves the pre-stored public key and uses the public key to perform SM2 asymmetric encryption calculation on the combined encrypted string to obtain the corresponding medical beauty record encrypted string. By encrypting the two parts of image data, image position parameters and text data separately and then combining them for asymmetric encryption, the security of medical beauty data storage and management can be further improved.

[0074] S9. Determine the data table number according to the combined information, and enter the encrypted string of the medical beauty record into the corresponding data table in the medical beauty database according to the data table number.

[0075] In specific implementation, the data processing terminal can encode the combined information to obtain the corresponding combined data string, and perform base conversion on the combined data string to obtain the corresponding data table number. Then, the encrypted string of medical beauty records is entered into the corresponding data table in the medical beauty database according to the data table number.

[0076] When the medical beauty doctor or target object needs to retrieve the corresponding data, the personal identity information and medical number information of the target object can be entered for permission verification when accessing the medical beauty database. After the permission verification is passed, the medical beauty database obtains the combination information based on the personal identity information and the medical number information, determines the data table number based on the combination information, and retrieves the medical beauty record encryption string from the corresponding data table based on the data table number. Then, the medical beauty record encryption string is decrypted using the pre-stored private key to obtain the combined encrypted string, and the first encrypted string, the second encrypted string, the third encrypted string, and the fourth encrypted string are split from the combined encrypted string according to each separator. Then, the first key is calculated according to the personal identity information, the second key is calculated according to the medical number information, and the combined key is calculated according to the combination information. The first encrypted string, the second encrypted string, the third encrypted string, and the fourth encrypted string are reversely decrypted using the first key, the second key, and the combined key to obtain the first image data, the second image data, the image position parameter, and the text data. Finally, the first image data is merged into the second image data according to the image position parameter, and the grayscale filling part is replaced to obtain the medical beauty record image, and the image data and text data are output to realize the traceability of the medical beauty record data.

[0077] The method of this embodiment can effectively improve the security and reliability of medical beauty data storage and management by segmenting image data and associating object information to perform classified encryption and combined encryption of segmented image data and text data, and can achieve complete storage of medical beauty data, facilitate reverse analysis and tracing, and fully meet the confidentiality, integrity and traceability requirements of medical beauty data storage.

[0078] Embodiment 2:

[0079] This embodiment provides a system for processing medical aesthetics data. Figure 2 As shown, it includes a data acquisition unit, an information extraction unit, an image segmentation unit, an image filling unit, a key calculation unit, a first encryption unit, a character combination unit, a second encryption unit and a data recording unit, wherein:

[0080] A data acquisition unit, used to acquire medical beauty record data of a target object, wherein the medical beauty record data includes mutually related text data and initial image data;

[0081] An information extraction unit, used to parse the text data and extract image identification information, personal identity information and medical number information from the text data;

[0082] An image segmentation unit, configured to segment the initial image data based on the image identification information to obtain segmented first image data, and determine image position parameters corresponding to the first image data;

[0083] An image filling unit, used for filling the segmented part of the initial image data with data to obtain second image data;

[0084] A key calculation unit, used to calculate a first key according to personal identity information, calculate a second key according to medical number information, combine the personal identity information with the medical number information to obtain combined information, and calculate a combined key according to the combined information;

[0085] A first encryption unit is used to perform a first encryption process on the first image data using a first key to obtain a first encrypted string, perform a second encryption process on the second image data using a second key to obtain a second encrypted string, and perform a third encryption process on the image position parameter and the text data using a combined key to obtain a third encrypted string and a fourth encrypted string;

[0086] A character combining unit, used for combining the first encrypted string, the second encrypted string, the third encrypted string and the fourth encrypted string to obtain a combined encrypted string;

[0087] The second encryption unit is used to perform asymmetric encryption processing on the combined encrypted string using a set public key to obtain a corresponding medical beauty record encrypted string;

[0088] The data recording and storage unit is used to determine the data table number according to the combination information, and enter the encrypted string of the medical beauty record into the corresponding data table in the medical beauty database according to the data table number.

[0089] Embodiment 3:

[0090] This embodiment provides a system for processing medical aesthetics data. Figure 3 As shown, including:

[0091] Data interface, used to establish data connection between the processor and the medical beauty database;

[0092] A memory for storing execution instructions;

[0093] The processor is used to read the execution instructions stored in the memory and execute the medical beauty data processing method in Example 1 according to the execution instructions.

[0094] Optionally, the system further includes an internal bus, through which the processor, the memory and the data interface can be interconnected, and the internal bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc.

[0095] The memory may include, but is not limited to, random access memory (RAM), read only memory (ROM), flash memory, first input first output (FIFO) and / or first in last out (FILO) memory, etc. The processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0096] Embodiment 4:

[0097] This embodiment provides a computer-readable storage medium, on which execution instructions are stored. When the execution instructions are executed on a computer, the computer executes the medical aesthetic data processing method in Embodiment 1. The computer-readable storage medium refers to a carrier for storing data, which may include but is not limited to a floppy disk, an optical disk, a hard disk, a flash memory, a USB flash drive, and / or a memory stick, etc. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.

[0098] This embodiment also provides a computer program product, which, when running on a computer, executes the medical aesthetic data processing method in Embodiment 1. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.

[0099] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for processing medical aesthetics data, characterized in that: include: Acquire medical beauty record data of a target object, wherein the medical beauty record data includes mutually related text data and initial image data; Parse the text data to extract image identification information, personal identification information, and medical number information from the text data; Segmenting the initial image data based on the image identification information to obtain segmented first image data, and determining image position parameters corresponding to the first image data; Performing data filling on the segmented part of the initial image data to obtain second image data; Calculating a first key based on personal identification information, calculating a second key based on medical number information, combining the personal identification information with the medical number information to obtain combined information, and calculating a combined key based on the combined information; Performing a first encryption process on the first image data using the first key to obtain a first encrypted string, performing a second encryption process on the second image data using the second key to obtain a second encrypted string, and performing a third encryption process on the image position parameter and the text data using the combined key to obtain a third encrypted string and a fourth encrypted string; Combining the first encrypted string, the second encrypted string, the third encrypted string, and the fourth encrypted string to obtain a combined encrypted string; Use the set public key to perform asymmetric encryption on the combined encrypted string to obtain the corresponding medical beauty record encrypted string; The data table number is determined according to the combined information, and the encrypted character string of the medical beauty record is entered into the corresponding data table in the medical beauty database according to the data table number.

2. A method for processing medical aesthetic data according to claim 1, characterized in that: The step of segmenting the initial image data based on the image identification information to obtain segmented first image data and determining image position parameters corresponding to the first image data includes: Constructing a corresponding medical beauty record image based on the initial image data, and determining an image identification area and image position parameters of the image identification area in the medical beauty record image according to the image identification information; An image identification area is segmented from the medical beauty record image to obtain corresponding first image data, and image position parameters of the image identification area are associated with the first image data.

3. A method for processing medical aesthetic data according to claim 2, characterized in that: The step of performing data filling on the segmented part of the initial image data to obtain the second image data comprises: The segmented part of the medical beauty record image is filled with grayscale to obtain the corresponding second image data.

4. The method for processing medical aesthetic data according to claim 1, characterized in that: The step of calculating the first key according to the personal identity information, calculating the second key according to the medical number information, combining the personal identity information with the medical number information to obtain combined information, and calculating the combined key according to the combined information includes: Calculate a first hash value for the personal identity information using a set message digest algorithm, and use the obtained first hash value as a first key; Using a set message digest algorithm to calculate a second hash value for the medical number information, and using the calculated second hash value as a second key; The personal identity information and the medical number information are combined to obtain combined information, and a third hash value is calculated for the combined information using a set message digest algorithm, and the calculated third hash value is used as a third key.

5. The method for processing medical aesthetic data according to claim 1, characterized in that: The method of performing a first encryption process on the first image data using a first key to obtain a first encrypted string, performing a second encryption process on the second image data using a second key to obtain a second encrypted string, and performing a third encryption process on the image position parameter and the text data using a combined key to obtain a third encrypted string and a fourth encrypted string respectively includes: Performing SM4 symmetric encryption calculation on the first image data using the first key to obtain a first encrypted string; Performing IDEA symmetric encryption calculation on the second image data using the second key to obtain a second encrypted string; The combined key is used to perform AES symmetric encryption calculation on the image position parameter and the text data respectively to obtain a third encrypted string and a fourth encrypted string.

6. A method for processing medical aesthetic data according to claim 1, characterized in that: The first encrypted string, the second encrypted string, the third encrypted string and the fourth encrypted string are combined to obtain a combined encrypted string, including: The first encrypted string, the second encrypted string, the third encrypted string and the fourth encrypted string are sequentially concatenated and combined, and a first delimiter is set between the first encrypted string and the second encrypted string, a second delimiter is set between the second encrypted string and the third encrypted string, and a third delimiter is set between the third encrypted string and the fourth encrypted string to obtain a combined encrypted string.

7. The method for processing medical aesthetic data according to claim 1, characterized in that: The combined encrypted string is asymmetrically encrypted using the set public key to obtain the corresponding medical beauty record encrypted string, including: Retrieve the pre-stored public key, and use the public key to perform SM2 asymmetric encryption calculation on the combined encrypted string to obtain the corresponding medical beauty record encrypted string.

8. The method for processing medical aesthetic data according to claim 1, characterized in that: Determining the data table number according to the combination information includes: The combined information is encoded to obtain a corresponding combined data string, and the combined data string is converted to obtain a corresponding data table number.

9. A medical aesthetics data processing system, characterized in that: It includes a data acquisition unit, an information extraction unit, an image segmentation unit, an image filling unit, a key calculation unit, a first encryption unit, a character combination unit, a second encryption unit and a data recording unit, wherein: A data acquisition unit, used to acquire medical beauty record data of a target object, wherein the medical beauty record data includes mutually related text data and initial image data; An information extraction unit, used to parse the text data and extract image identification information, personal identity information and medical number information from the text data; An image segmentation unit, configured to segment the initial image data based on the image identification information to obtain segmented first image data, and determine image position parameters corresponding to the first image data; An image filling unit, used for filling the segmented part of the initial image data with data to obtain second image data; A key calculation unit, used to calculate a first key according to personal identity information, calculate a second key according to medical number information, combine the personal identity information with the medical number information to obtain combined information, and calculate a combined key according to the combined information; A first encryption unit is used to perform a first encryption process on the first image data using a first key to obtain a first encrypted string, perform a second encryption process on the second image data using a second key to obtain a second encrypted string, and perform a third encryption process on the image position parameter and the text data using a combined key to obtain a third encrypted string and a fourth encrypted string; A character combining unit, used for combining the first encrypted string, the second encrypted string, the third encrypted string and the fourth encrypted string to obtain a combined encrypted string; The second encryption unit is used to perform asymmetric encryption processing on the combined encrypted string using a set public key to obtain a corresponding medical beauty record encrypted string; The data recording and storage unit is used to determine the data table number according to the combination information, and enter the encrypted string of the medical beauty record into the corresponding data table in the medical beauty database according to the data table number.

10. A medical aesthetics data processing system, characterized in that: include: A memory for storing execution instructions; A processor is used to read the execution instruction stored in the memory and execute the medical beauty data processing method described in any one of claims 1-8 according to the execution instruction.

Citation Information

Patent Citations

  • Optical asymmetric multi-image encryption method for realizing lossless recovery of decrypted image

    CN117915014A

  • Medical information encryption method and device and storage medium

    CN117972756A