Secure password generation method and apparatus for medical device

WO2026200537A1PCT designated stage Publication Date: 2026-10-01JIANGXI SANXIN MEDTEC CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2026/082782
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-03-27
Filing Date
2026-03-11
Publication Date
2026-10-01

Smart Images

  • Figure CN2026082782_01102026_PF_FP_ABST
    Figure CN2026082782_01102026_PF_FP_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of medical devices. Disclosed are a secure password generation method and apparatus for a medical device. The method comprises: acquiring a unique identification code of a medical device to which a password is to be allocated, and concatenating the unique identification code with a first preset character to generate a first hash value by means of a preset hash algorithm; selecting a preset number of character elements from the first hash value according to a first preset selection rule, and using the character elements to form a user initial password of the medical device; and concatenating the first hash value with a second preset character to generate a second hash value by means of the preset hash algorithm, and then according to a second preset selection rule, selecting a preset number of character elements from the second hash value to form a maintenance password of the medical device, wherein the first preset selection rule is different from the second preset selection rule. The present invention solves the problems in the prior art of low security and easy confusion of permissions in password generation methods for medical devices.
Need to check novelty before this filing date? Find Prior Art

Description

A method and apparatus for generating secure passwords for medical devices Technical Field

[0001] This invention relates to the field of medical device technology, and in particular to a method and apparatus for generating secure passwords for medical devices. Background Technology

[0002] With the development of technology, the availability of medical devices is constantly increasing. These devices play an irreplaceable role in improving efficiency, but they also store sensitive patient information (such as medical records and diagnostic data) as well as the device's key parameters. Therefore, the safety of medical devices is of paramount importance.

[0003] Existing password generation methods for medical devices are based on encrypting simple information input by the user (such as dates, simple numbers, etc.) to generate passwords or simple passwords. However, passwords generated by this method have a high degree of predictability. Furthermore, medical devices have different security requirements at different management levels, and passwords based on simple information input by the user may be duplicated, leading to confusion in access control. Summary of the Invention

[0004] In view of this, the purpose of the present invention is to provide a secure password generation method and apparatus for medical devices, which aims to solve the problems of low security and easy confusion of permissions in the existing methods of generating passwords for medical devices.

[0005] This invention provides a method for generating a secure password for a medical device, the method comprising:

[0006] Obtain the unique identifier of the medical device to be assigned a password, and combine the unique identifier with a first preset character to generate a first hash value using a preset hash algorithm;

[0007] According to the first preset selection rule, a preset number of character elements are selected from the first hash value, and the character elements are used to form the initial password of the user of the medical device.

[0008] The first hash value is combined with the second preset character and a second hash value is generated by a preset hash algorithm. Then, a preset number of character elements are selected from the second hash value using the second preset selection rule to form the maintenance password of the medical device.

[0009] The first preset selection rule is different from the second preset selection rule.

[0010] Furthermore, in the above-mentioned method for generating a secure password for medical devices, both the first preset selection rule and the second preset selection rule select character elements according to a preset selection order, but the selection order of the first preset rule is different from that of the second preset rule.

[0011] Furthermore, in the above-mentioned method for generating a secure password for medical devices, the step of selecting a preset number of character elements from the first hash value according to a first preset selection rule includes:

[0012] Determine the high and low bits of the first hash value, and select a preset number of character elements sequentially from the high to the low bits of the first hash value at intervals;

[0013] The step of selecting a preset number of character elements from the second hash value using the second preset selection rule includes:

[0014] Determine the high and low bits of the second hash value, and select a preset number of character elements sequentially from the low to the high bits of the second hash value at intervals.

[0015] Furthermore, in the above-mentioned method for generating a secure password for medical devices, the step of selecting a preset number of character elements from the first hash value according to a first preset selection rule further includes:

[0016] The timestamp of the time when the unique identifier of the medical device to be assigned a password is collected is used to perform a hash operation on the timestamp to obtain the time key related to the acquisition time;

[0017] Extract the numerical elements from the time key, and sum the numerical elements to obtain the corresponding key value;

[0018] Obtain the sequence length of the first hash value or the second hash value, perform a modulo operation on the sequence length using the key value to obtain the corresponding position value, and use the position value to determine the starting extraction position of the character element in the first hash value and the second hash value.

[0019] Furthermore, in the aforementioned method for generating a secure password for medical devices, the step of determining the high and low bits of a first hash value and selecting a preset number of character elements sequentially at intervals from the high to the low bits of the first hash value includes:

[0020] Extract the first character element from the first hash value based on the starting extraction position, determine the numerical information corresponding to the first character element, perform a square operation on the numerical information, take the remainder of the sequence length to obtain the extraction interval of the next character element, and then extract the next character element until the character element extraction is completed;

[0021] The step of determining the high and low bits of the second hash value, and selecting a preset number of character elements sequentially from the low to the high bits of the second hash value at intervals, includes:

[0022] Extract the first character element from the second hash value based on the starting extraction position, determine the numerical information corresponding to the first character element, perform a square operation on the numerical information, take the remainder of the sequence length to obtain the extraction interval of the next character element, and then extract the next character element until all character elements are extracted.

[0023] Furthermore, in the above-mentioned method for generating a secure password for medical devices, the step of selecting a preset number of character elements from a first hash value according to a first preset selection rule, and using these character elements to form the initial user password for the medical device, includes:

[0024] If the length of the extracted character element does not meet the length of the user's initial password, then use custom characters to pad until the length of the user's initial password is met.

[0025] Furthermore, in the above-mentioned method for generating a security password for medical devices, the method further includes:

[0026] When a user changes their maintenance password, their initial password becomes invalid.

[0027] When a user changes their maintenance password to blank, the user's initial password is restored.

[0028] Another object of the present invention is to provide a secure password generation device for medical devices, the device comprising:

[0029] The identification code acquisition module is used to acquire the unique identification code of the medical device to be assigned a password, and then combine the unique identification code with a first preset character to generate a first hash value through a preset hash algorithm;

[0030] The initial password generation module is used to select a preset number of character elements from the first hash value according to the first preset selection rule, and use the character elements to form the user's initial password for the medical device.

[0031] The maintenance password generation module is used to combine the first hash value with the second preset characters and generate the second hash value through a preset hash algorithm. Then, it uses the second preset selection rule to select a preset number of character elements from the second hash value to form the maintenance password of the medical device.

[0032] The first preset selection rule is different from the second preset selection rule.

[0033] Another object of the present invention is to provide a readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described above.

[0034] Another object of the present invention is to provide an electronic device including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the program to implement the steps of the method described above.

[0035] This invention generates passwords using a unique combination of the medical device's unique code and custom preset characters, ensuring a strong correlation between the password and the medical device; each medical device's password is unique. This prevents unauthorized access to medical devices, protects patient privacy data and critical device parameters, and significantly improves the security of medical devices. Furthermore, the separate generation of the initial user password and the maintenance-level password meets the security requirements of different management levels of medical devices. Medical staff use the initial user password for routine operations, while equipment maintenance personnel use the maintenance password for advanced management operations such as equipment repair and upgrades, avoiding password permission confusion. This solves the problems of low security and easy permission confusion in existing methods of generating medical device passwords.

[0036] In addition, the embodiments of the present invention have at least the following beneficial effects:

[0037] 1. To avoid potential medical device malfunctions or security vulnerabilities caused by confusing password permissions;

[0038] 2. The password modification mechanism achieves a good balance between security and ease of use, ensuring the safe operation of medical equipment in both daily use and emergency situations. It prevents unauthorized access and ensures that the equipment can be put into use in a timely manner in special circumstances.

[0039] 3. The special rules and combinations in the password generation process increase randomness and irreversibility, further improving password security. Attached Figure Description

[0040] Figure 1 is a flowchart of the method for generating a security password for a medical device in the first embodiment of the present invention;

[0041] Figure 2 is a structural block diagram of the security password generation device for medical devices in the third embodiment of the present invention.

[0042] The following detailed description, in conjunction with the accompanying drawings, will further illustrate the present invention. Detailed Implementation

[0043] To facilitate understanding of the present invention, a more complete description will be given below with reference to the accompanying drawings. Several embodiments of the invention are illustrated in the drawings. However, the invention can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.

[0044] It should be noted that when a component is said to be "fixed to" another component, it can be directly on the other component or there may be an intervening component. When a component is said to be "connected to" another component, it can be directly connected to the other component or there may be an intervening component. The terms "vertical," "horizontal," "left," "right," and similar expressions used in this document are for illustrative purposes only.

[0045] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items. Example 1

[0046] Please refer to Figure 1, which shows a method for generating a secure password for a medical device according to the first embodiment of the present invention. The method includes steps S10 to S12.

[0047] Step S10: Obtain the unique identifier of the medical device to be assigned a password, and combine the unique identifier with the first preset character to generate a first hash value through a preset hash algorithm.

[0048] Among them, the unique identifier of a medical device is a unique identifier assigned to the medical device during the production process. For medical devices, the unique identifier can be obtained by reading the hardware code on the device's motherboard through the chip reader built into the device, or by obtaining a specific serial number from the device's system configuration file. These serial numbers are strictly encoded and recorded in accordance with specifications during the production process of medical devices to ensure their uniqueness and accuracy.

[0049] The unique identifier of the medical device is combined with a custom first preset character, and a first hash value is generated using a preset hash algorithm. This first preset character can be a fixed string or other preset, specific characters. Specifically, in this embodiment of the invention, the MD5 algorithm can be used to calculate the unique first hash value. The MD5 algorithm is chosen because of its fast calculation speed, which meets the real-time requirements for secure password generation. By combining the medical device's identifier with the custom first preset character, the security of password generation is greatly improved.

[0050] Step S11: Select a preset number of character elements from the first hash value according to the first preset selection rule, and use the character elements to form the initial password for the user of the medical device;

[0051] In this invention, character elements are extracted from the first hash value according to a first preset selection rule to form the user's initial password. The first preset selection rule can be random or based on a specific logic, such as selecting the first n characters, selecting one character every m characters, or selecting characters at specific positions. Specifically, in this embodiment, the first preset selection rule selects characters in a specific order. In practice, the high and low bits of the first hash value are determined, and a preset number of character elements are selected sequentially from the high to the low bits. Finally, the selected character elements are combined according to the selection order or other predefined order to form the user's initial password for the medical device. This password is used for login operations by medical personnel. Furthermore, if the length of the extracted character elements does not meet the length of the user's initial password, custom characters are used to pad until the length of the user's initial password is met.

[0052] Step S12: Combine the first hash value with the second preset character and generate the second hash value using a preset hash algorithm. Then, use the second preset selection rule to select a preset number of character elements from the second hash value to form the maintenance password of the medical device.

[0053] The process involves combining the obtained first hash value with a second preset character using a hash algorithm to generate a second hash value. Character elements are then extracted from this second hash value according to a second preset selection rule to form a maintenance password. This second preset selection rule differs from the first preset selection rule. For example, while the second preset selection rule also selects character elements in a preset order, it differs from the first preset selection rule to separate the user's initial password from the maintenance password. The maintenance password is used for advanced device management functions. Specifically, the high and low bits of the second hash value can be determined, and a preset number of character elements are selected sequentially from the low to the high bits of the second hash value at intervals.

[0054] Furthermore, in some optional embodiments of the present invention, a password modification mechanism is established, which invalidates the user's initial password when the user modifies the maintenance password. This mechanism is particularly important in the operation of medical devices. Because the operation of medical devices may involve medical personnel at different levels, password modification can prevent personnel who have left the company or whose permissions have changed from using old passwords for unauthorized operations. When the user changes the maintenance password to blank, the user's initial password is restored. This facilitates the reuse of the equipment by medical personnel in emergency situations (such as when the equipment malfunctions and needs to be quickly restored for emergency treatment). Simultaneously, the system records the password modification and restoration operation logs for security auditing.

[0055] In summary, the secure password generation method for medical devices in the above embodiments of the present invention ensures a strong correlation between the password and the medical device by using a unique combination of the medical device's unique code and a custom preset character set. Each medical device's password is unique. This prevents unauthorized access to the medical device, protects patient privacy data and critical device parameters, and significantly improves the security of the medical device. Furthermore, the separate generation of the initial user password and the maintenance-level password meets the security requirements of different management levels of the medical device. Medical staff use the initial user password for routine operations, while equipment maintenance personnel use the maintenance password for advanced management operations such as equipment repair and upgrades, avoiding password permission confusion. This solves the problems of low security and easy permission confusion in existing medical device password generation methods. Example 2

[0056] This embodiment also proposes a method for generating a secure password for a medical device. The difference between the secure password generation method for a medical device in this embodiment and the secure password generation method for a medical device in Embodiment 1 is as follows:

[0057] Before the step of selecting a preset number of character elements from the first hash value according to the first preset selection rule, the method further includes:

[0058] The timestamp of the time when the unique identifier of the medical device to be assigned a password is collected is used to perform a hash operation on the timestamp to obtain the time key related to the acquisition time;

[0059] Extract the numerical elements from the time key, and sum the numerical elements to obtain the corresponding key value;

[0060] Obtain the sequence length of the first hash value or the second hash value, perform a modulo operation on the sequence length using the key value to obtain the corresponding position value, and use the position value to determine the starting extraction position of the character element in the first hash value and the second hash value.

[0061] First, a timestamp is collected when the unique identifier of the medical device to be assigned a password is obtained. This timestamp records the exact time the identifier was obtained. Next, a hash operation is performed on this timestamp to obtain a time key related to the acquisition time. Then, the numerical elements of the time key are extracted; these numerical elements are decimal digits of the time key. These numerical elements are summed to obtain a corresponding key value, which is a simplified representation based on the timestamp hash operation result. Next, the sequence length of either the first or second hash value is obtained. The modulo operation is performed on the sequence length using the previously calculated key value to obtain a corresponding position value. This position value is used to determine the starting extraction position of character elements in the first and second hash values. For example, if the modulo operation result is 3, then the third bit from the most significant digit in the first hash value is determined as the starting extraction position of character elements in the first hash value. Using dynamic element timestamps to dynamically determine the starting extraction position further enhances the security of subsequent password generation.

[0062] Furthermore, after determining the starting extraction position of the character elements, character elements can be extracted from the first hash value and the second hash value based on dynamic intervals. Specifically, the first character element is extracted from the first or second hash value according to the starting extraction position. The numerical information corresponding to the first character element is determined. After squaring the numerical information and taking the remainder after dividing by the sequence length, the extraction interval for the next character element is obtained, and the extraction of the next character element is performed until all character elements are extracted. Specifically, the first character element is extracted starting from the starting extraction position of the first or second hash value. This character element is a hexadecimal character (such as "0" to "9" or "a" to "f"). The extracted first character element is converted into its corresponding numerical information. If the hash value is represented in hexadecimal, then the hexadecimal character needs to be converted to a decimal value. For example, the character "a" corresponds to the value 10 in hexadecimal. The squaring operation involves multiplying the numerical information by itself, dividing the result of the squaring operation by the sequence length, and taking the remainder. This remainder will be used as the extraction interval for the next character element. Based on the calculated extraction interval, starting from the position after the first character element, skip the corresponding number of characters and extract the next character element. Repeat the above steps, that is, continue to convert the currently extracted character element into numerical information, perform squaring and modulo operations, and then extract the next character element according to the new extraction interval, until all character elements are extracted. In this process, the extraction interval for the next character element is dynamically determined by squaring and modulo operations, which increases the complexity of password generation and makes it more difficult for attackers to predict or crack the password.

[0063] In summary, the secure password generation method for medical devices in the above embodiments of the present invention ensures a strong correlation between the password and the medical device by using a unique combination of the medical device's unique code and a custom preset character set. Each medical device's password is unique. This prevents unauthorized access to the medical device, protects patient privacy data and critical device parameters, and significantly improves the security of the medical device. Furthermore, the separate generation of the initial user password and the maintenance-level password meets the security requirements of different management levels of the medical device. Medical staff use the initial user password for routine operations, while equipment maintenance personnel use the maintenance password for advanced management operations such as equipment repair and upgrades, avoiding password permission confusion. This solves the problems of low security and easy permission confusion in existing medical device password generation methods. Example 3

[0064] Please refer to Figure 2, which shows a secure password generation device for medical devices proposed in the third embodiment of the present invention. The device includes:

[0065] The identification code acquisition module 100 is used to acquire the unique identification code of the medical device to be assigned a password, and then combine the unique identification code with a first preset character to generate a first hash value through a preset hash algorithm;

[0066] The initial password generation module 200 is used to select a preset number of character elements from the first hash value according to the first preset selection rule, and use the character elements to form the user's initial password for the medical device.

[0067] The maintenance password generation module 300 is used to combine the first hash value with the second preset characters and generate the second hash value through a preset hash algorithm. Then, it uses the second preset selection rule to select a preset number of character elements from the second hash value to form the maintenance password of the medical device.

[0068] The first preset selection rule is different from the second preset selection rule.

[0069] Furthermore, in the aforementioned security password generation device for medical equipment, both the first preset selection rule and the second preset selection rule select character elements according to a preset selection order, but the selection order of the first preset rule is different from the selection order of the second preset rule.

[0070] Furthermore, in the aforementioned secure password generation device for medical devices, the step of selecting a preset number of character elements from the first hash value according to a first preset selection rule includes:

[0071] Determine the high and low bits of the first hash value, and select a preset number of character elements sequentially from the high to the low bits of the first hash value at intervals;

[0072] The step of selecting a preset number of character elements from the second hash value using the second preset selection rule includes:

[0073] Determine the high and low bits of the second hash value, and select a preset number of character elements sequentially from the low to the high bits of the second hash value at intervals.

[0074] Furthermore, in the aforementioned secure password generation device for medical devices, before the step of selecting a preset number of character elements from the first hash value according to a first preset selection rule, the device further includes:

[0075] The timestamp of the time when the unique identifier of the medical device to be assigned a password is collected is used to perform a hash operation on the timestamp to obtain the time key related to the acquisition time;

[0076] Extract the numerical elements from the time key, and sum the numerical elements to obtain the corresponding key value;

[0077] Obtain the sequence length of the first hash value or the second hash value, perform a modulo operation on the sequence length using the key value to obtain the corresponding position value, and use the position value to determine the starting extraction position of the character element in the first hash value and the second hash value.

[0078] Furthermore, in the aforementioned secure password generation device for medical devices, the step of determining the high and low bits of the first hash value, and sequentially selecting a preset number of character elements from the high to the low bits of the first hash value at intervals, includes:

[0079] Extract the first character element from the first hash value based on the starting extraction position, determine the numerical information corresponding to the first character element, perform a square operation on the numerical information, take the remainder of the sequence length to obtain the extraction interval of the next character element, and then extract the next character element until the character element extraction is completed;

[0080] The step of determining the high and low bits of the second hash value, and selecting a preset number of character elements sequentially from the low to the high bits of the second hash value at intervals, includes:

[0081] Extract the first character element from the second hash value based on the starting extraction position, determine the numerical information corresponding to the first character element, perform a square operation on the numerical information, take the remainder of the sequence length to obtain the extraction interval of the next character element, and then extract the next character element until all character elements are extracted.

[0082] Furthermore, in the aforementioned secure password generation device for medical devices, the step of selecting a preset number of character elements from the first hash value according to a first preset selection rule, and using these character elements to form the initial user password for the medical device, includes:

[0083] If the length of the extracted character element does not meet the length of the user's initial password, then use custom characters to pad until the length of the user's initial password is met.

[0084] Furthermore, the aforementioned security password generation device for medical devices further includes:

[0085] When a user changes their maintenance password, their initial password becomes invalid.

[0086] When a user changes their maintenance password to blank, the user's initial password is restored.

[0087] The functions or operation steps implemented by the above modules are largely the same as those in the above method embodiments, and will not be repeated here. Example 4

[0088] In another aspect, the present invention provides a readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the steps of the method described in any one of Embodiments 1 to 2 above. Example 5

[0089] In another aspect, the present invention provides an electronic device, the electronic device including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the program to implement the steps of any one of the methods described in Embodiments 1 to 2 above.

[0090] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0091] Those skilled in the art will understand that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequential list of executable instructions for implementing logical functions, and can be embodied in any computer-readable storage medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable storage medium" can mean any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device.

[0092] More specific examples (a non-exhaustive list) of computer-readable storage media include: electrical connections (electronic devices) having one or more wires, portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable storage media can even be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.

[0093] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0094] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0095] The embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention. Therefore, the scope of protection of this patent should be determined by the appended claims.

Claims

1. A method for generating a secure password for a medical device, characterized in that, The method includes: Obtain the unique identifier of the medical device to be assigned a password, and combine the unique identifier with a first preset character to generate a first hash value using a preset hash algorithm; According to the first preset selection rule, a preset number of character elements are selected from the first hash value, and the character elements are used to form the initial password of the user of the medical device. The first hash value is combined with the second preset character and a second hash value is generated by a preset hash algorithm. Then, a preset number of character elements are selected from the second hash value using the second preset selection rule to form the maintenance password of the medical device. The first preset selection rule is different from the second preset selection rule; Both the first preset selection rule and the second preset selection rule select character elements according to a preset selection order, but the selection order of the first preset rule is different from that of the second preset rule. The step of selecting a preset number of character elements from the first hash value according to the first preset selection rule includes: Determine the high and low bits of the first hash value, and select a preset number of character elements sequentially from the high to the low bits of the first hash value at intervals; The step of selecting a preset number of character elements from the second hash value using the second preset selection rule includes: Determine the high and low bits of the second hash value, and select a preset number of character elements sequentially from the low to the high bits of the second hash value at intervals; Before the step of selecting a preset number of character elements from the first hash value according to the first preset selection rule, the method further includes: The timestamp of the time when the unique identifier of the medical device to be assigned a password is collected is used to perform a hash operation on the timestamp to obtain the time key related to the acquisition time; Extract the numerical elements from the time key, and sum the numerical elements to obtain the corresponding key value; Obtain the sequence length of the first hash value or the second hash value, perform a modulo operation on the sequence length using the key value to obtain the corresponding position value, and use the position value to determine the starting extraction position of the character element in the first hash value or the second hash value.

2. The method for generating a secure password for a medical device according to claim 1, characterized in that, The step of determining the high and low bits of the first hash value, and selecting a preset number of character elements sequentially from the high to the low bits of the first hash value at intervals, includes: Extract the first character element from the first hash value based on the starting extraction position, determine the numerical information corresponding to the first character element, perform a square operation on the numerical information, take the remainder of the sequence length to obtain the extraction interval of the next character element, and then extract the next character element until the character element extraction is completed; The step of determining the high and low bits of the second hash value, and selecting a preset number of character elements sequentially from the low to the high bits of the second hash value at intervals, includes: Extract the first character element from the second hash value based on the starting extraction position, determine the numerical information corresponding to the first character element, perform a square operation on the numerical information, take the remainder of the sequence length to obtain the extraction interval of the next character element, and then extract the next character element until all character elements are extracted.

3. The method for generating a secure password for a medical device according to claim 1, characterized in that, The step of selecting a preset number of character elements from the first hash value according to a first preset selection rule, and using the character elements to form the initial user password for the medical device, includes: If the length of the extracted character element does not meet the length of the user's initial password, then use custom characters to pad until the length of the user's initial password is met.

4. The method for generating a secure password for a medical device according to claim 1, characterized in that, The method further includes: When a user changes their maintenance password, their initial password becomes invalid. When a user changes their maintenance password to blank, the user's initial password is restored.

5. A secure password generation device for medical devices, characterized in that, The apparatus for implementing the secure password generation method for the medical device according to any one of claims 1 to 4, the apparatus comprising: The identification code acquisition module is used to acquire the unique identification code of the medical device to be assigned a password, and then combine the unique identification code with a first preset character to generate a first hash value through a preset hash algorithm; The initial password generation module is used to select a preset number of character elements from the first hash value according to the first preset selection rule, and use the character elements to form the user's initial password for the medical device. The maintenance password generation module is used to combine the first hash value with the second preset characters and generate the second hash value through a preset hash algorithm. Then, it uses the second preset selection rule to select a preset number of character elements from the second hash value to form the maintenance password of the medical device. The first preset selection rule is different from the second preset selection rule.

6. A readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the steps of the method as described in any one of claims 1 to 4.

7. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor, when executing the program, implements the steps of the method as described in any one of claims 1 to 4.