Security password generation method and device for medical equipment

By combining the unique identification code of medical equipment with preset characters to generate hash values ​​and selecting character elements to form passwords, the problems of low security and confusing permissions in existing medical equipment password generation methods are solved, and high-security password generation is achieved.

CN119885152AActive Publication Date: 2025-04-25JIANGXI SANXIN MEDTEC
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
CN202510370097.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-27
Publication Date
2025-04-25
Estimated Expiration
2045-03-27

AI Technical Summary

Technical Problem

The password generation methods of existing medical devices have problems such as low security and easy to cause confusion in permissions.

Method used

By obtaining the unique identification code of the medical device and the preset characters combination, a hash value is generated using the hash algorithm, and character elements are selected from the hash value according to the preset selection rules to form the user's initial password and maintenance password, ensuring the strong correlation between the password and the device.

Benefits of technology

Improves the security of medical equipment, prevents unauthorized access, meets security needs at different management levels, and avoids confusion in password permissions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119885152A_ABST
    Figure CN119885152A_ABST
Patent Text Reader

Abstract

The invention discloses a security password generation method and device for medical equipment, and relates to the technical field of medical equipment, and the method comprises the steps: obtaining a unique identification code of the medical equipment to which a password is to be allocated, combining the unique identification code with a first preset character, and then generating a first hash value through a preset hash algorithm; selecting a preset number of character elements from the first hash value according to a first preset selection rule, and forming a user initial password of the medical equipment by using the character elements; combining the first Hash value with a second preset character, generating a second Hash value through a preset Hash algorithm, and selecting a preset number of character elements from the second Hash value by using a second preset selection rule to form a maintenance password of the medical equipment; wherein the first preset selection rule is different from the second preset selection rule. The problems that in the prior art, a medical equipment password generation mode is low in safety, and permission confusion is likely to be caused are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of medical equipment, and in particular to a method and device for generating a security password for medical equipment. Background Art

[0002] With the development of science and technology, the popularity of medical devices is increasing. These devices play an irreplaceable role in improving efficiency. Medical devices store sensitive information of patients (such as medical records, diagnostic data, etc.) and key parameters of the equipment. Therefore, the security of medical devices is of vital importance.

[0003] The existing password generation method for medical devices is to encrypt and generate passwords or simple passwords based on simple information entered by users (such as dates, simple numbers, etc.). However, the passwords generated by this method have the problem of high predictability. In addition, medical devices have security requirements at different management levels, and passwords based on simple information entered by users may also be repeated, resulting in confusion in permissions. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide a method and device for generating a secure password for a medical device, aiming to solve the problems of low security and easy confusion of permissions in the prior art of generating passwords for medical devices.

[0005] In one aspect, the present invention provides a method for generating a security password for a medical device, the method comprising: Obtaining a unique identification code of a medical device to be assigned a password, combining the unique identification code with a first preset character and generating a first hash value through 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 an initial user password for the medical device; After combining the first hash value with the second preset character, a second hash value is generated by a preset hash algorithm, and then a preset number of character elements are selected from the second hash value using a second preset selection rule to form a maintenance password for the medical device; The first preset selection rule is different from the second preset selection rule.

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

[0007] Furthermore, in the above-mentioned method for generating a security password for a medical device, the step of selecting a preset number of character elements from the first hash value according to a first preset selection rule comprises: Determine the high and low bits of the first hash value, so as to select a preset number of character elements in sequence from the high bit to the low bit of the first hash value; The step of selecting a preset number of character elements from the second Hash value using the second preset selection rule comprises: The high and low bits of the second hash value are determined, so as to select a preset number of character elements in sequence from the low bit to the high bit of the second hash value.

[0008] Furthermore, in the above-mentioned method for generating a security password for a medical device, 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: Collecting the timestamp when the unique identification code of the medical device to be assigned a password is obtained, and performing a hash operation on the timestamp to obtain a time key related to the acquisition time; Get the digital elements in the time key respectively, and sum the digital elements to get 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 secret key value to obtain a corresponding position value, and use the position value to determine the starting extraction position of the character elements in the first hash value and the second hash value.

[0009] Furthermore, in the above-mentioned method for generating a security password for a medical device, the step of determining the high and low bits of the first hash value to sequentially select a preset number of character elements from the high bit to the low bit of the first hash value comprises: Extract the first character element from the first hash value according to the starting extraction position, determine the numerical information corresponding to the first character element, perform a square operation on the numerical information and then take the modulo 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 to sequentially select a preset number of character elements from the low bit to the high bit of the second hash value comprises: The first character element is extracted from the second hash value according to the starting extraction position, the numerical information corresponding to the first character element is determined, the numerical information is squared and the modulo sequence length is taken to obtain the extraction interval of the next character element, and then the next character element is extracted until the character element extraction is completed.

[0010] Furthermore, in the above-mentioned method for generating a security password for a medical device, 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 user's initial password for the medical device comprises: If the character length of the extracted character element does not meet the length of the user's initial password, it is padded with custom characters until the length of the user's initial password is met.

[0011] Furthermore, the above-mentioned method for generating a security password for a medical device further comprises: When the user changes the maintenance password, the user's initial password becomes invalid; When the user changes the maintenance password to blank, the user's initial password is restored.

[0012] Another object of the present invention is to provide a device for generating a security password for a medical device, the device comprising: An identification code acquisition module, used to acquire a unique identification code of a medical device to be assigned a password, and generate a first hash value by combining the unique identification code with a first preset character through a preset hash algorithm; An initial password generation module, used to select a preset number of character elements from the first hash value according to a first preset selection rule, and use the character elements to form an initial user password of the medical device; A maintenance password generation module, used to combine the first hash value with the second preset character to generate a second hash value through a preset hash algorithm, and then select a preset number of character elements from the second hash value using a second preset selection rule to form a maintenance password for the medical device; The first preset selection rule is different from the second preset selection rule.

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

[0014] Another object of the present invention is to provide an electronic device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of the above method when executing the program.

[0015] The present invention generates passwords by combining the unique code of medical equipment with customized preset characters, thus ensuring a strong correlation between passwords and medical equipment, and each password of medical equipment is unique. It prevents medical equipment from being accessed by unauthorized personnel, protects patients' privacy data and key equipment parameters, and greatly improves the security of medical equipment. The user's initial password and the maintenance-level password are generated separately, meeting the security requirements of different management levels of medical equipment. Medical staff use the user's initial password for daily operations, while equipment maintenance personnel use the maintenance password for advanced management operations such as equipment maintenance and upgrades, thus avoiding confusion in password permissions. It solves the problem of low security and easy confusion in permissions in the existing method of generating passwords for medical equipment.

[0016] In addition, the embodiments of the present invention have at least the following beneficial effects: 1. Avoid the problem of misoperation of medical equipment or security vulnerabilities caused by confusion of password permissions; 2. Setting up a password modification mechanism enables the system to achieve a good balance between security and ease of use, ensuring safe operation of the equipment in both daily use and emergency situations of medical equipment, preventing illegal access and ensuring that the equipment can be put into use in a timely manner under special circumstances; 3. The special rules and combinations in the password generation process increase randomness and irreversibility, further improving the security of the password. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 This is a flow chart of a method for generating a security password for a medical device in a first embodiment of the present invention; Figure 2 It is a structural block diagram of a security password generating device for medical equipment in the third embodiment of the present invention.

[0018] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION

[0019] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.

[0020] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.

[0021] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.

[0022] Embodiment 1 See also Figure 1 , shown is a method for generating a security password for a medical device in a first embodiment of the present invention, the method comprising steps S10 to S12.

[0023] Step S10, obtaining a unique identification code of the medical device to which a password is to be assigned, combining the unique identification code with a first preset character and generating a first hash value through a preset hash algorithm.

[0024] Among them, the unique identification code of medical equipment is the unique identifier assigned to the medical equipment during the production process. For medical equipment, the unique identification code can be obtained by reading the hardware code on the device's mainboard through the device's built-in chip reader, or 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 equipment to ensure their uniqueness and accuracy.

[0025] The unique identification code of the medical device is combined with a first custom preset character, and a first hash value is generated by a preset hash algorithm, wherein the first preset character can be a fixed string, or some other preset, specific characters; specifically, in the embodiment of the present invention, the MD5 algorithm can be used to calculate and generate a unique first hash value. The MD5 algorithm is selected because it has a fast calculation speed and can meet the real-time requirements for the secure password generation of the device. By combining the identification code of the medical device with the first custom preset character, the security of the password generation is greatly improved.

[0026] Step S11, 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 an initial user password of the medical device; Among them, character elements are extracted from the first hash value according to the first preset selection rule to form the user's initial password. The first preset selection rule can be random or based on a certain specific logic, such as selecting the first n characters in the first hash value, selecting one every m characters, or selecting characters at a specific position, etc. Specifically, in an embodiment of the present invention, the first preset selection rule selects characters based on a specific order. During the specific implementation, the high and low bits of the first hash value are determined to select a preset number of character elements from the high bit to the low bit of the first hash value in sequence. Finally, the selected character elements are combined in the selection order or other predefined order to form the user's initial password for the medical device. The password is used for the login operation of medical staff. In addition, if the character length of the extracted character element does not meet the length of the user's initial password, it is filled with custom characters until the length of the user's initial password is met.

[0027] Step S12, combining the first hash value with the second preset character to generate a second hash value through a preset hash algorithm, and then using a second preset selection rule to select a preset number of character elements from the second hash value to form a maintenance password for the medical device.

[0028] The obtained first hash value and the second preset character are used to generate a second hash value through a hash algorithm, and character elements are extracted from the second hash value according to a second preset selection rule to form a maintenance password. The second preset selection rule is different from the first preset selection rule. Exemplarily, the second preset selection rule also selects character elements according to a preset selection order, but is different from the first preset selection rule, so as to achieve the separation of the user's initial password and the maintenance password. The maintenance password is used for advanced management functions of the device. Specifically, the high and low bits of the second hash value can be determined to select a preset number of character elements from the low bit to the high bit of the second hash value in sequence.

[0029] In addition, in some optional embodiments of the present invention, a password modification mechanism is established, and when the user modifies the maintenance password, the user's initial password becomes invalid. This mechanism is particularly important in the operation of medical equipment. Because the operation of medical equipment may involve medical staff of different levels, password modification can prevent personnel who have resigned or whose authority has changed from using old passwords to perform illegal operations. When the user changes the maintenance password to empty, the user's initial password is restored, which makes it convenient for medical staff to reuse the equipment when the medical equipment encounters an emergency (such as when the equipment fails and needs to be quickly restored for emergency treatment). At the same time, the system will record the operation log of password modification and restoration for security auditing.

[0030] In summary, the method for generating a secure password for a medical device in the above embodiment of the present invention generates a password by combining the unique code of the medical device with a customized preset character, thereby ensuring a strong correlation between the password and the medical device, and the password of each medical device is unique. It prevents medical devices from being accessed by unauthorized personnel, protects the patient's privacy data and key parameters of the device, and greatly improves the security of the medical device. The user's initial password and the maintenance-level password are generated separately, meeting the security requirements of different management levels of medical devices. Medical staff use the user's initial password for daily operations, while equipment maintenance personnel use the maintenance password for advanced management operations such as equipment maintenance and upgrades, avoiding confusion in password permissions. It solves the problem of low security and easy confusion in permissions in the method of generating passwords for medical devices in the prior art.

[0031] Embodiment 2 This embodiment also proposes a method for generating a security password for a medical device. The difference between the method for generating a security password for a medical device in this embodiment and the method for generating a security password for a medical device in the first embodiment is that: Before the step of selecting a preset number of character elements from the first Hash value according to the first preset selection rule, the step further includes: Collecting the timestamp when the unique identification code of the medical device to be assigned a password is obtained, and performing a hash operation on the timestamp to obtain a time key related to the acquisition time; Get the digital elements in the time key respectively, and sum the digital elements to get 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 secret key value to obtain a corresponding position value, and use the position value to determine the starting extraction position of the character elements in the first hash value and the second hash value.

[0032] First, collect the timestamp when the unique identification code of the medical device to be assigned a password is obtained. This timestamp records the exact time when the identification code is obtained. Then, perform a hash operation on this timestamp to obtain a time key about the acquisition time. Then, obtain the digital elements in the time key respectively, which are decimal numbers in the time key. Perform a sum operation on these digital elements to obtain a corresponding key value, which is a simplified representation based on the result of the timestamp hash operation. Next, obtain the sequence length of the first hash value or the second hash value. Perform a modulus operation 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 the character element in the first hash value and the second hash value. For example, if the result of the modulus operation is 3, the third bit of the first hash value from the high bit is determined to be the starting extraction position of the character element in the first hash value. The dynamic element timestamp is used to dynamically determine the starting extraction position, further improving the security of subsequent password generation.

[0033] Further, after determining the starting extraction position of the character element, the character elements in the first hash value and the second hash value can be extracted based on the dynamic interval. Specifically, the first character element is extracted from the first hash value or the second hash value according to the starting extraction position, the numerical information corresponding to the first character element is determined, and the next character element is extracted after the extraction interval of the next character element is obtained by square operation of the digital information and the remainder sequence length is obtained, until the character element extraction is completed; wherein, starting from the starting extraction position of the first hash value or the second hash value, the first character element is extracted. This character element is a hexadecimal character (such as "0" to "9" or "a" to "f"), and the extracted first character element is converted into the corresponding numerical information. If the hash value is expressed in hexadecimal, then the hexadecimal character needs to be converted into a decimal value. For example, the character "a" corresponds to the value 10 in hexadecimal, and the square operation is to multiply the numerical information by itself, divide the result of the square operation by the sequence length, and take 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 next position of the first character element, after skipping the corresponding number of characters, the next character element will be extracted and the above steps will be repeated, i.e., the currently extracted character element will continue to be converted into numerical information, and square and remainder operations will be performed. Then, the next character element will be extracted based on the new extraction interval until the character element extraction is completed. The extraction interval for the next character element is dynamically determined through square and remainder operations, which increases the complexity of password generation and makes it more difficult for attackers to predict or crack the password.

[0034] In summary, the method for generating a secure password for a medical device in the above embodiment of the present invention generates a password by combining the unique code of the medical device with a customized preset character, thereby ensuring a strong correlation between the password and the medical device, and the password of each medical device is unique. It prevents medical devices from being accessed by unauthorized personnel, protects the patient's privacy data and key parameters of the device, and greatly improves the security of the medical device. The user's initial password and the maintenance-level password are generated separately, meeting the security requirements of different management levels of medical devices. Medical staff use the user's initial password for daily operations, while equipment maintenance personnel use the maintenance password for advanced management operations such as equipment maintenance and upgrades, avoiding confusion in password permissions. It solves the problem of low security and easy confusion in permissions in the method of generating passwords for medical devices in the prior art.

[0035] Embodiment 3 See also Figure 2 , shown is a security password generating device for medical equipment proposed in the third embodiment of the present invention, the device comprising: The identification code acquisition module 100 is used to acquire the unique identification code of the medical device to be assigned a password, and generate a first hash value by combining the unique identification code with a first preset character through a preset hash algorithm; An initial password generating module 200 is used to select a preset number of character elements from the first hash value according to a first preset selection rule, and use the character elements to form an initial user password of the medical device; A maintenance password generating module 300, for combining the first hash value with the second preset character to generate a second hash value by a preset hash algorithm, and then selecting a preset number of character elements from the second hash value using a second preset selection rule to form a maintenance password for the medical device; The first preset selection rule is different from the second preset selection rule.

[0036] Furthermore, in the above-mentioned security password generating device for medical equipment, the first preset selection rule and the second preset selection rule both select character elements according to a preset selection order, and the selection order of the first preset rule is different from the selection order of the second preset rule.

[0037] Furthermore, in the above-mentioned security password generating device for medical equipment, the step of selecting a preset number of character elements from the first hash value according to the first preset selection rule comprises: Determine the high and low bits of the first hash value, so as to select a preset number of character elements in sequence from the high bit to the low bit of the first hash value; The step of selecting a preset number of character elements from the second Hash value using the second preset selection rule comprises: The high and low bits of the second hash value are determined, so as to select a preset number of character elements in sequence from the low bit to the high bit of the second hash value.

[0038] Furthermore, in the above-mentioned device for generating a security password for a medical device, before the step of selecting a preset number of character elements from the first hash value according to the first preset selection rule, the step further includes: Collecting the timestamp when the unique identification code of the medical device to be assigned a password is obtained, and performing a hash operation on the timestamp to obtain a time key related to the acquisition time; Get the digital elements in the time key respectively, and sum the digital elements to get 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 secret key value to obtain a corresponding position value, and use the position value to determine the starting extraction position of the character elements in the first hash value and the second hash value.

[0039] Furthermore, in the above-mentioned device for generating a security password for a medical device, the step of determining the high and low bits of the first hash value to sequentially select a preset number of character elements from the high bit to the low bit of the first hash value comprises: Extract the first character element from the first hash value according to the starting extraction position, determine the numerical information corresponding to the first character element, perform a square operation on the numerical information and then take the modulo 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 to sequentially select a preset number of character elements from the low bit to the high bit of the second hash value comprises: The first character element is extracted from the second hash value according to the starting extraction position, the numerical information corresponding to the first character element is determined, the numerical information is squared and the modulo sequence length is taken to obtain the extraction interval of the next character element, and then the next character element is extracted until the character element extraction is completed.

[0040] Furthermore, in the above-mentioned device for generating a security password for a medical device, 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 user's initial password for the medical device comprises: If the character length of the extracted character element does not meet the length of the user's initial password, it is padded with custom characters until the length of the user's initial password is met.

[0041] Furthermore, the above-mentioned device for generating a security password for a medical device, wherein the device further comprises: When the user changes the maintenance password, the user's initial password becomes invalid; When the user changes the maintenance password to blank, the user's initial password is restored.

[0042] The functions or operation steps implemented when the above modules are executed are substantially the same as those in the above method embodiments, and will not be repeated here.

[0043] Embodiment 4 Another aspect of the present invention further provides a readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the steps of the method described in any one of the above-mentioned embodiments 1 to 2 are implemented.

[0044] Embodiment 5 Another aspect of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the program, the steps of the method described in any one of the above-mentioned embodiments 1 to 2 are implemented.

[0045] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, 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.

[0046] Those skilled in the art will appreciate that the logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be specifically implemented in any computer-readable storage medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For purposes of this specification, a "computer-readable storage medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0047] More specific examples (a non-exhaustive list) of computer-readable storage media include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable storage medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0048] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0049] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0050] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A method for generating a security password for a medical device, characterized in that: The method comprises: Obtaining a unique identification code of a medical device to be assigned a password, combining the unique identification code with a first preset character and generating a first hash value through 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 an initial user password for the medical device; After combining the first hash value with the second preset character, a second hash value is generated by a preset hash algorithm, and then a preset number of character elements are selected from the second hash value using a second preset selection rule to form a maintenance password for the medical device; The first preset selection rule is different from the second preset selection rule.

2. The method for generating a security password for a medical device according to claim 1, characterized in that: Both the first preset selection rule and the second preset selection rule select character elements according to a preset selection order, and the selection order of the first preset rule is different from the selection order of the second preset rule.

3. The method for generating a security password for a medical device according to claim 2, characterized in that: The step of selecting a preset number of character elements from the first Hash value according to the first preset selection rule comprises: Determine the high and low bits of the first hash value, so as to select a preset number of character elements in sequence from the high bit to the low bit of the first hash value; The step of selecting a preset number of character elements from the second Hash value using the second preset selection rule comprises: The high and low bits of the second hash value are determined, so as to select a preset number of character elements in sequence from the low bit to the high bit of the second hash value.

4. The method for generating a security password for a medical device according to claim 3, characterized in that: Before the step of selecting a preset number of character elements from the first Hash value according to the first preset selection rule, the step further includes: Collecting the timestamp when the unique identification code of the medical device to be assigned a password is obtained, and performing a hash operation on the timestamp to obtain a time key related to the acquisition time; Get the digital elements in the time key respectively, and sum the digital elements to get 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 secret key value to obtain a corresponding position value, and use the position value to determine the starting extraction position of the character elements in the first hash value and the second hash value.

5. The method for generating a security password for a medical device according to claim 4, characterized in that: The step of determining the high and low bits of the first hash value to sequentially select a preset number of character elements from the high bit to the low bit of the first hash value comprises: Extract the first character element from the first hash value according to the starting extraction position, determine the numerical information corresponding to the first character element, perform a square operation on the numerical information and then take the modulo 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 to sequentially select a preset number of character elements from the low bit to the high bit of the second hash value comprises: The first character element is extracted from the second hash value according to the starting extraction position, the numerical information corresponding to the first character element is determined, the numerical information is squared and the modulo sequence length is taken to obtain the extraction interval of the next character element, and then the next character element is extracted until the character element extraction is completed.

6. The method for generating a security 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 the first preset selection rule and using the character elements to form the user initial password of the medical device comprises: If the character length of the extracted character element does not meet the length of the user's initial password, it is padded with custom characters until the length of the user's initial password is met.

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

8. A device for generating a security password for a medical device, characterized in that: The device comprises: An identification code acquisition module, used to acquire a unique identification code of a medical device to be assigned a password, and generate a first hash value by combining the unique identification code with a first preset character through a preset hash algorithm; An initial password generation module, used to select a preset number of character elements from the first hash value according to a first preset selection rule, and use the character elements to form an initial user password of the medical device; A maintenance password generation module, used to combine the first hash value with the second preset character to generate a second hash value through a preset hash algorithm, and then select a preset number of character elements from the second hash value using a second preset selection rule to form a maintenance password for the medical device; The first preset selection rule is different from the second preset selection rule.

9. A readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

10. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 7 when executing the program.

Citation Information

Patent Citations

  • Super password generation system and application method thereof

    CN102629900A

  • Dynamic secret key generating method and device

    CN103546281A

  • Password storing and verifying method and password storing and verifying device

    CN104281794A

  • Dynamic password generating method, dynamic password authentication method and device

    CN106101159A

  • Equipment login password generation and management method, device and system with uniqueness, storage device and terminal

    CN109753787A