A method and device for generating a security password for a medical device

The method generates unique passwords for medical devices using device identifiers and hash algorithms with separate access levels, addressing low security and permission confusion issues, ensuring enhanced device protection.

CN119885152BActive Publication Date: 2025-07-15JIANGXI SANXIN MEDTEC
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing medical device password generation methods have problems such as low security and easy to cause permission confusion, especially the password generated based on simple information entered by users has the possibility of high predictability and duplication.

Method used

Generate hash values by obtaining the unique identification code of the medical device and combining preset characters, and extracting the user's initial password and maintenance password from the hash value using different selection rules, ensuring that the password of each device is unique and increasing the complexity of password generation through timestamps and hash operations.

Benefits of technology

Improve the security of medical equipment, prevent unauthorized access, protect patient privacy data and key equipment parameters, avoid permission chaos, meet security needs at different management levels, and ensure that the equipment is reliable in emergency situations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119885152B_ABST
    Figure CN119885152B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and device for generating a security password for a medical device, relating to the technical field of medical devices. The method includes: obtaining the unique identification code of the medical device for which the password is to be assigned, combining the unique identification code with a first preset character combination 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 forming the initial user password of the medical device by using the character elements; combining the first hash value with a second preset character combination and generating a second hash value through a preset hash algorithm, and then selecting a preset number of character elements from the second hash value according to a second preset selection rule to form the 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 of low security and easy permission confusion existing in the existing method for generating passwords for medical devices.
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 devices, and particularly to a method and device for generating a security password for a medical device. Background Art

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

[0003] The existing password generation method for medical devices encrypts or generates a simple password based on simple information input by users (such as dates, simple numbers, etc.). However, the passwords generated by this method have the problem of high predictability. Moreover, there are security requirements at different management levels for medical devices, and passwords based on simple information input by users may also be repeated, resulting in permission chaos. Summary of the Invention

[0004] In view of this, an object of the present invention is to provide a method and device for generating a security password for a medical device, aiming to solve the problems of low security and easy permission chaos in the existing method for generating passwords for medical devices.

[0005] On the one hand, the present invention provides a method for generating a security password for a medical device, the method comprising:

[0006] Obtaining a unique identification code of a medical device for which a password is to be allocated, combining the unique identification code with a first preset character, and generating a first hash value through a preset hash algorithm;

[0007] Selecting a preset number of character elements from the first hash value according to a first preset selection rule, and forming an initial user password for the medical device by using the character elements;

[0008] Combining the first hash value with a second preset character, generating a second hash value through a preset hash algorithm, and then selecting a preset number of character elements from the second hash value according to a second preset selection rule to form a maintenance password for the medical device;

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

[0010] Further, in the above method for generating a security password for a medical device, 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.

[0011] Further, 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 the first preset selection rule includes:

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

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

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

[0015] Further, 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, it further includes:

[0016] Collect the timestamp when acquiring the unique identification code of the medical device for which the password is to be allocated, and perform a hash operation on the timestamp to obtain a time secret key regarding the acquisition time;

[0017] Respectively obtain the digital elements in the time secret key, and sum up the digital elements to obtain the corresponding secret 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 by using the secret key value to obtain the 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.

[0019] Further, in the above-mentioned method for generating a security password for a medical device, the step of determining the high and low positions of the first hash value, and sequentially and at intervals selecting a preset number of character elements from the high position to the low position of the first hash value includes:

[0020] 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 digital information and then perform a modulo operation on the sequence length to obtain the extraction interval of the next character element, and then extract the next character element until the extraction of the character elements is completed;

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

[0022] Extract the first character element from the second hash value according to the starting extraction position, determine the numerical information corresponding to the first character element, perform a square operation on the digital 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 extraction of the character elements is completed.

[0023] Further, in the above 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 the first preset selection rule and using the character elements to form the user initial password of the medical device includes:

[0024] If the character length of the extracted character element does not meet the length of the user initial password, fill it with custom characters until the length of the user initial password is met.

[0025] Further, in the above method for generating a security password for a medical device, the method further includes:

[0026] When the user modifies the maintenance password, the user initial password becomes invalid;

[0027] When the user modifies the maintenance password to be empty, the user initial password is restored.

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

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

[0030] An initial password generation module, configured 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 initial password of the medical device;

[0031] A maintenance password generation module, configured to combine the first hash value with the second preset character combination, generate a second hash value through a preset hash algorithm, and then select a preset number of character elements from the second hash value according to the second preset selection rule to form the maintenance password of the medical device;

[0032] Wherein, 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, on which a computer program is stored, and when the program is executed by a processor, the steps of the above method are implemented.

[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. When the processor executes the program, the steps of the above method are implemented.

[0035] The present invention generates a password by using the unique code of the medical device and a custom preset character combination, ensuring a strong correlation between the password and the medical device. The password of each medical device is unique. It prevents unauthorized access to the medical device, protects the patient's privacy data and the 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 the medical device. Medical staff use the user's initial password for daily operations, while device maintenance personnel use the maintenance password for advanced management operations such as device repair and upgrade, avoiding password permission chaos. It solves the problems of low security and easy permission chaos in the generation method of the medical device password in the prior art.

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

[0037] 1. Avoid the problems of misoperation or security vulnerabilities of medical devices that may be caused by password permission chaos;

[0038] 2. Set a password modification mechanism to achieve a good balance between security and usability of the system, ensuring the safe operation of the device during the daily use and emergency situations of the medical device, preventing illegal access, and ensuring that the device can be put into use in a timely manner in special situations;

[0039] 3. The special rules and combinations in the password generation process increase the randomness and irreversibility, further improving the security of the password. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0041] Figure 2 It is a block diagram of the structure of the device for generating a security password of a medical device in the third embodiment of the present invention.

[0042] The following specific embodiments will further illustrate the present invention in conjunction with the above drawings. SPECIFIC EMBODIMENTS

[0043] For the convenience of understanding the present invention, the present invention will be described more comprehensively 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, these embodiments are provided to make the disclosure of the present invention more thorough and comprehensive.

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

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

[0046] Embodiment 1

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

[0048] Step S10: Obtain the unique identification code of the medical device for which the password is to be assigned, and combine the unique identification code with a first preset character, and then generate a first hash value through a preset hash algorithm.

[0049] Among them, the unique identification code of the medical device is the unique identifier assigned to the medical device during the production process. For a medical device, the unique identification code can be obtained by reading the hardware code on the device main board through a 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 the medical device to ensure their uniqueness and accuracy.

[0050] Combine the unique identification code of the medical device with a custom first preset character, and generate a first hash value through a preset hash algorithm. Among them, the first preset character can be a fixed string or some other preset and specific characters; specifically, in the embodiment of the present invention, the MD5 algorithm can be selected to calculate and generate a unique first hash value. The MD5 algorithm is selected because of its relatively fast calculation speed, which can meet the real-time requirements for generating the security password of the device. By combining the identification code of the medical device with the custom first preset character, the security of password generation is greatly improved.

[0051] Step S11: 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 the user initial password of the medical device;

[0052] 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. For example, the first n characters in the first hash value can be selected, one character can be selected every m characters, or characters at specific positions can be selected, etc. Specifically, in the embodiments of the present invention, the first preset selection rule selects characters based on a specific order. In specific implementation, the high and low bits of the first hash value are determined, and a preset number of character elements are sequentially and alternately selected from the high bit to the low bit of the first hash value. Finally, the selected character elements are combined in the selection order or other predefined orders to form the user's initial password for the medical device. This password is used for the login operation of medical staff. In addition, if the character length of the extracted character elements does not meet the length of the user's initial password, custom characters are used to fill it until the length of the user's initial password is met.

[0053] Step S12: Combine the first hash value with the second preset character and generate a second hash value through a preset hash algorithm, and 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.

[0054] Among them, 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 the second preset selection rule to form the maintenance password. Among them, the second preset selection rule is different from the first preset selection rule. Exemplarily, the second preset selection rule also selects character elements in a preset selection order, but is different from the first preset selection rule to achieve the separation of the user's initial password and the maintenance password. The maintenance password is used for the advanced management function of the device. Specifically, the high and low bits of the second hash value can be determined to sequentially and alternately select a preset number of character elements from the low bit to the high bit of the second hash value.

[0055] In addition, in some optional embodiments of the present invention, a password modification mechanism is established. When the user modifies the maintenance password, the user's initial password becomes invalid. In the operation of medical devices, this mechanism is particularly important. Because the operation of medical devices may involve medical staff at different levels, password modification can prevent those who have left their positions or had their permissions changed from using the old password for illegal operations. When the user modifies the maintenance password to be empty, the user's initial password is restored, which is convenient for medical staff to reuse the device in case of an emergency (such as when the device fails and needs to be quickly restored for emergency treatment). At the same time, the system will record the operation logs of password modification and restoration for security auditing.

[0056] In summary, in the method for generating a security password of a medical device in the above embodiments of the present invention, by using the unique code of the medical device and a custom preset character combination to generate a password, the strong correlation between the password and the medical device is ensured, and the password of each medical device is unique. It prevents unauthorized access to the medical device, protects the privacy data of patients and the key parameters of the device, and greatly improves the security of the medical device. The user initial password and the maintenance-level password are generated separately, meeting the security requirements of different management levels of the medical device. Medical staff use the user initial password for daily operations, while device maintenance staff use the maintenance password for advanced management operations such as device repair and upgrade, avoiding password permission confusion. It solves the problems of low security and easy permission confusion in the existing methods for generating passwords of medical devices.

[0057] Embodiment 2

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

[0059] Before the step of selecting a preset number of character elements from the first hash value according to the first preset selection rule, the following steps are further included:

[0060] Collect the timestamp when obtaining the unique identification code of the medical device for which the password is to be allocated, and perform a hash operation on the timestamp to obtain a time key regarding the acquisition time;

[0061] Respectively obtain the digital elements in the time key, and sum the digital elements to obtain the corresponding key value;

[0062] 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 elements in the first hash value and the second hash value.

[0063] First, collect the timestamp when obtaining the unique identification code of the medical device for which the password is to be assigned. This timestamp records the exact time of obtaining the identification code. Then, perform a hash operation on this timestamp to obtain a time key regarding the acquisition time. Next, respectively obtain the digital elements in the time key. These digital elements are the decimal digits in the time key. Perform a summation operation on these digital elements to obtain a corresponding key value. This key value 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. Use the previously calculated key value to perform a modulo operation on the sequence length to obtain a corresponding position value. This position value is used to determine the starting extraction position of the character elements in the first hash value and the second hash value. For example, if the result of the modulo operation is 3, it is determined that the third digit from the high position of the first hash value is the starting extraction position of the character elements in the first hash value. Using the dynamic element timestamp to dynamically determine the starting extraction position further improves the security of subsequent password generation.

[0064] Further, after determining the starting extraction position of the character elements, the character elements in the first hash value and the second hash value can be respectively extracted based on a dynamic interval. Specifically, starting from the starting extraction position, extract the first character element from the first hash value or the second hash value, determine the numerical information corresponding to the first character element, perform a square operation on the digital information and then take the remainder of the sequence length to obtain the extraction interval for the next character element, and then extract the next character element until the extraction of the character elements is completed; among them, starting from the starting extraction position of the first hash value or the second hash value, extract the first character element. This character element is a hexadecimal character (such as '0' to '9' or 'a' to 'f'), and convert the extracted first character element into the corresponding numerical information. If the hash value is represented 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. The square operation multiplies 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. According to the calculated extraction interval, starting from the next position of the first character element, skip the corresponding number of characters and then extract the next character element. Repeat the above steps, that is, continue to convert the currently extracted character element into numerical information, perform the square operation and the modulo operation, and then extract the next character element according to the new extraction interval until the extraction of the character elements is completed. Among them, the extraction interval for the next character element is dynamically determined through the square operation and the modulo operation, increasing the complexity of password generation and making it more difficult for attackers to predict or crack the password.

[0065] In summary, in the method for generating a security password for a medical device in the above embodiments of the present invention, by using the unique code of the medical device and a custom preset character combination to generate a password, the strong correlation between the password and the medical device is ensured, and the password for each medical device is unique. This prevents unauthorized access to the medical device, protects the privacy data of patients and the key parameters of the device, and greatly improves the security of the medical device. The user initial password and the maintenance-level password are generated separately, meeting the security requirements of different management levels of the medical device. Medical staff use the user initial password for daily operations, while device maintenance staff use the maintenance password for advanced management operations such as device repair and upgrade, avoiding password permission confusion. It solves the problems of low security and easy permission confusion in the existing methods for generating passwords for medical devices.

[0066] Embodiment III

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

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

[0069] An initial password generation module 200, configured to select a preset number of character elements from the first hash value according to a first preset selection rule, and form the user initial password of the medical device by using the character elements;

[0070] A maintenance password generation module 300, configured to combine the first hash value with a second preset character, generate a second hash value through a preset hash algorithm, and then select a preset number of character elements from the second hash value according to a second preset selection rule to form the maintenance password of the medical device;

[0071] Wherein, the first preset selection rule is different from the second preset selection rule.

[0072] Further, in the above security password generation device for a 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.

[0073] Further, in the above security password generation device for a medical device, the step of selecting a preset number of character elements from the first hash value according to the first preset selection rule includes:

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

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

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

[0077] Furthermore, for the above-mentioned security password generation device of 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 following steps are further included:

[0078] Collect the timestamp when acquiring the unique identification code of the medical device for which the password is to be allocated, and perform a hash operation on the timestamp to obtain a time secret key regarding the acquisition time;

[0079] Respectively obtain the digital elements in the time secret key, and sum up the digital elements to obtain the corresponding secret key value;

[0080] Obtain the sequence length of the first hash value or the second hash value, perform a modulo operation on the sequence length by using the secret key value to obtain the 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.

[0081] Furthermore, for the above-mentioned security password generation device of a medical device, the step of determining the high and low bits of the first hash value and sequentially selecting a preset number of character elements at intervals from the high bit to the low bit of the first hash value includes:

[0082] 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 digital information and then 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 extraction of the character elements is completed;

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

[0084] Extract the first character element from the second hash value according to the starting extraction position, determine the numerical information corresponding to the first character element, perform a square operation on the digital information and then 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 extraction of the character elements is completed.

[0085] Furthermore, for the above-mentioned security password generation device of a medical device, 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 initial password of the user of the medical device includes:

[0086] If the character length of the extracted character elements 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.

[0087] Further, in the above-mentioned security password generation device for medical equipment, the device further includes:

[0088] When the user modifies the maintenance password, the user's initial password becomes invalid;

[0089] When the user modifies the maintenance password to be empty, the user's initial password is restored.

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

[0091] Embodiment 4

[0092] On the other hand, the present invention also provides a readable storage medium, on which a computer program is stored, 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.

[0093] Embodiment 5

[0094] On the other hand, the present invention also provides an electronic device, the electronic device includes a memory, a processor, and a computer program stored on 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.

[0095] The technical features of each of the above embodiments can be combined arbitrarily. For the sake of concise description, 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, it should be considered to be within the scope described in this specification.

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

[0097] More specific examples (nonexhaustive list) of computer-readable storage media include the following: electrical connections (electronic devices) having one or more wirings, portable computer disk cartridges (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber devices, and portable compact disc read-only memory (CDROM). Additionally, the 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 media, followed by editing, interpretation, or, if necessary, other suitable processing, and then stored in a computer memory.

[0098] 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 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, any one or a combination of the following techniques well known in the art can be used: discrete logic circuits having logic gate circuits for implementing logical functions on data signals, application specific integrated circuits having suitable combinational logic gate circuits, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.

[0099] In the description of this specification, the description with reference to terms such as "one embodiment", "some embodiments", "example", "specific example", or "some examples", etc. means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0100] The above-described embodiments merely represent several implementation manners of the present invention, and their descriptions are relatively specific and detailed, but should not be construed as a limitation on the scope of the patent of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present invention, several deformations and improvements can still be made, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention should be subject to the appended claims.

Claims

1. A method for generating a security password for a medical device, characterized in that, The method includes: Obtaining the unique identification code of the medical device for which the password is to be assigned, combining the unique identification code with a first preset character combination, 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 forming the initial user password of the medical device by using the character elements; Combining the first hash value with a second preset character combination, generating a second hash value through a preset hash algorithm, and then selecting a preset number of character elements from the second hash value according to a second preset selection rule to form the maintenance password of the medical device; Wherein, 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, and the selection order of the first preset rule is different from the selection order 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: Determining the high position and the low position of the first hash value, and sequentially and intermittently selecting a preset number of character elements from the high position to the low position of the first hash value; The step of selecting a preset number of character elements from the second hash value according to the second preset selection rule includes: Determining the high position and the low position of the second hash value, and sequentially and intermittently selecting a preset number of character elements from the low position to the high position of the second hash value; Before the step of selecting a preset number of character elements from the first hash value according to the first preset selection rule, it further includes: Collecting the timestamp when obtaining the unique identification code of the medical device for which the password is to be assigned, and performing a hash operation on the timestamp to obtain a time secret key regarding the acquisition time; Respectively obtaining the digital elements in the time secret key, and summing the digital elements to obtain the corresponding secret key value; Obtaining the sequence length of the first hash value or the second hash value, performing a modulo operation on the sequence length by using the secret key value to obtain the corresponding position value, and using the position value to determine the starting extraction position of the character elements in the first hash value or the second hash value.

2. The safety password generation method for the medical device according to claim 1, characterized in that The step of determining the high position and the low position of the first hash value, and sequentially and intermittently selecting a preset number of character elements from the high position to the low position of the first hash value includes: Extracting the first character element from the first hash value according to the starting extraction position, determining the numerical information corresponding to the first character element, performing a square operation on the numerical information and then taking the remainder of the sequence length to obtain the extraction interval of the next character element, and then extracting the next character element until the character elements are all extracted; The step of determining the high position and the low position of the second hash value, and sequentially and intermittently selecting a preset number of character elements from the low position to the high position of the second hash value includes: Extracting the first character element from the second hash value according to the starting extraction position, determining the numerical information corresponding to the first character element, performing a square operation on the numerical information and then taking the remainder of the sequence length to obtain the extraction interval of the next character element, and then extracting the next character element until the character elements are all extracted.

3. The safety password generation method for a medical device according to claim 1, wherein The step of selecting a preset number of character elements from the first hash value according to the first preset selection rule, and forming the initial user password of the medical device by using the character elements includes: If the character length of the extracted character elements does not meet the length of the user's initial password, custom characters are used for padding until the length of the user's initial password is met.

4. The safety password generation method of the medical device according to claim 1, wherein The method further includes: When the user modifies the maintenance password, the user's initial password becomes invalid; When the user modifies the maintenance password to be empty, the user's initial password is restored.

5. A safety password generation device for a medical device, characterized in that, A device for implementing the security password generation method of the medical device according to any one of claims 1 to 4, the device includes: An identification code acquisition module, configured to acquire the unique identification code of the medical device to which the password is to be assigned, combine the unique identification code with a first preset character combination, and generate a first hash value through a preset hash algorithm; An initial password generation module, configured 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 the user's initial password of the medical device; A maintenance password generation module, configured to combine the first hash value with a second preset character combination, generate a second hash value through a preset hash algorithm, and then select a preset number of character elements from the second hash value according to a second preset selection rule to form the maintenance password of the medical device; Wherein, the first preset selection rule is different from the second preset selection rule.

6. A readable storage medium, on which a computer program is stored, characterized in that, When the program is executed by the processor, the steps of the method according to any one of claims 1 to 4 are implemented.

7. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored on the memory and running on the processor. When the processor executes the program, the steps of the method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

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

    CN104281794A

  • Method and device for generating default password of in-vehicle infotainment system, equipment and medium

    CN117216750A