A password management method and system for industrial Internet security

By using dynamic salting method to encrypt passwords in the industrial Internet, the password cracking and data leakage problems under the MD5 encryption method are solved, significantly improving security.

CN118646533BActive Publication Date: 2024-11-26JIANGXI SHENZHOU INFORMATION SECURITY EVALUATION CENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411110217.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-11-26
Estimated Expiration
2044-08-14

AI Technical Summary

Technical Problem

Password management in the existing industrial Internet adopts the MD5 encryption method, which has the risk that passwords are easily cracked and data leaked, and is not very secure.

Method used

By obtaining the characteristic data of the target data, the salt factor is generated, and the plain text password set by the user is randomly mixed to perform hashing operations, generate the initial hash key, and then split it and hashing operations again to obtain the target hash key Encrypt data, dynamic salt addition method is used for cyclic encryption to avoid leakage of fixed salt addition factors.

Benefits of technology

It improves the difficulty of cracking passwords, improves the security of passwords, prevents data leakage, and enhances the security of the industrial Internet.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118646533B_ABST
    Figure CN118646533B_ABST
Patent Text Reader

Abstract

The present invention discloses a password management method and system for industrial Internet security, the method comprising: obtaining target data stored or transmitted in the industrial Internet, extracting data from the target data to obtain feature data; generating at least one random number based on the feature data, and determining the random number as a salting factor; obtaining a plain text password set by a user, randomly mixing the salting factor with the plain text password to perform a hash operation to obtain an initial hash key; performing a string segmentation on the initial hash key to obtain a first string and a second string; randomly mixing at least part of the characters of the first string with at least part of the characters of the second string and performing a hash operation to obtain a target hash key, so as to encrypt the target data through the target hash key. The present invention solves the problem that the password is easily cracked and data is at risk of being leaked when MD5 is used to encrypt the industrial Internet in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of password management, and in particular to a password management method and system applied to industrial Internet security. Background Art

[0002] The Industrial Internet is the hub connecting the physical and digital worlds in modern manufacturing. It integrates various devices, systems and software to achieve real-time transmission, processing and analysis of data, thereby providing users with intelligent manufacturing capabilities.

[0003] In the application of industrial Internet, password management plays a vital role. It is directly related to the security and stability of the entire industrial network system. For example, it can be applied to identity authentication and access control to build a security boundary and trust system to ensure data confidentiality and integrity.

[0004] The existing password management of the Industrial Internet usually uses the MD5 encryption method to encrypt passwords. MD5 is an irreversible encryption method, and the encryption time is long. There is a risk of cracking the password through collision. In other words, the security of using the MD5 encryption method to encrypt the password set in the Industrial Internet is not high, which may lead to the leakage of data transmitted or stored in the Industrial Internet, thereby causing users to suffer losses due to data leakage. Summary of the invention

[0005] In view of the deficiencies in the prior art, the purpose of the present invention is to provide a password management method and system for industrial Internet security, aiming to solve the problem that the prior art uses MD5 to encrypt the industrial Internet, the password is easily cracked, and there is a risk of data leakage.

[0006] A first aspect of the present invention is to provide a password management method for industrial Internet security, the method comprising:

[0007] Acquire target data stored or transmitted in the industrial Internet, and perform data extraction on the target data to obtain feature data;

[0008] Generate at least one random number according to the characteristic data, and determine the random number as a salting factor;

[0009] Obtaining a plaintext password set by a user, randomly mixing the salting factor with the plaintext password to perform a hash operation, and obtaining an initial hash key;

[0010] Performing string segmentation on the initial Hash key to obtain a first string and a second string;

[0011] At least part of the characters of the first character string and at least part of the characters of the second character string are randomly mixed and hashed to obtain a target hash key, so as to encrypt the target data by using the target hash key.

[0012] According to one aspect of the above technical solution, the steps of obtaining a plain text password set by a user, randomly mixing the salt factor with the plain text password to perform a hash operation, and obtaining an initial hash key include:

[0013] Obtaining a plain text password set by a user, randomly mixing the salting factor with the plain text password and performing a first hash operation to obtain a first hash value;

[0014] Randomly mix the salting factor and the first Hash value and perform a second Hash operation to obtain a second Hash value;

[0015] An initial Hash key is generated according to the first Hash value and the second Hash value.

[0016] According to one aspect of the above technical solution, the step of generating an initial Hash key according to the first Hash value and the second Hash value includes:

[0017] Mapping the first hash value and the second hash value in a preset coordinate system respectively, including mapping the first hash value to the origin of the preset coordinate system, and mapping the second hash value to any coordinate point in any quadrant of the preset coordinate system;

[0018] A line is connected between the origin and the arbitrary coordinate point, a midpoint of the line is determined, and the midpoint of the line is reversely mapped to obtain a third hash value, thereby obtaining an initial hash key.

[0019] According to one aspect of the above technical solution, a line is connected between the origin and the arbitrary coordinate point, a midpoint of the line is determined, and the midpoint of the line is reversely mapped to obtain a third hash value, thereby obtaining an initial hash key, including:

[0020] Draw a line between the origin and the arbitrary coordinate point;

[0021] According to the coordinate values ​​of the origin and the arbitrary coordinate point, the length of the line connecting the two points is calculated, and the midpoint of the line is determined according to the length of the line;

[0022] De-mapping is performed on the midpoint of the connection line to obtain a third hash value to obtain an initial hash key.

[0023] According to one aspect of the above technical solution, randomly mixing at least part of the characters of the first string with at least part of the characters of the second string and performing a hash operation to obtain a target hash key, and encrypting the target data by using the target hash key, includes:

[0024] Determine the number of character digits of the first character string and the second character string respectively;

[0025] According to a preset character selection ratio, a first target character and a second target character corresponding to the character selection ratio are selected from the first character string and the second character string respectively; the first target character and the second target character each include at least two;

[0026] The first target character and the second target character are randomly mixed and hashed to obtain a target hash key, so as to encrypt the target data by using the target hash key.

[0027] According to one aspect of the above technical solution, the first target character and the second target character are randomly mixed and hashed to obtain a target hash key, and the step of encrypting the target data by using the target hash key specifically includes:

[0028] Alternately arrange and mix characters in the first target character with characters in the second target character and perform a hash operation to obtain a target hash key;

[0029] The plaintext password is encrypted based on the target hash key to encrypt the target data.

[0030] According to one aspect of the above technical solution, the method further includes:

[0031] Distribute and store multiple key copies of the target hash key in multiple key blockchains;

[0032] When a plain text password input by a user is received, the key copies are respectively called from multiple key blockchains to form the target hash key.

[0033] The second aspect of the present invention is to provide a password management system applied to industrial Internet security, which is applied to the method described in the above technical solution, and the system includes:

[0034] A feature data extraction module acquires target data stored or transmitted in the industrial Internet, and performs data extraction on the target data to obtain feature data;

[0035] A salting factor determination module, used to generate at least one random number according to the characteristic data, and determine the random number as a salting factor;

[0036] A first hash operation module is used to obtain a plain text password set by a user, randomly mix the salt factor with the plain text password to perform a hash operation, and obtain an initial hash key;

[0037] A secret key character segmentation module, used for performing character string segmentation on the initial hash key to obtain a first character string and a second character string;

[0038] The second hash operation module is used to randomly mix at least part of the characters of the first character string with at least part of the characters of the second character string and perform a hash operation to obtain a target hash key, so as to encrypt the target data by using the target hash key.

[0039] A third aspect of the present invention is to provide a readable storage medium having a computer program stored thereon, which implements the method described in the above technical solution when executed by a processor.

[0040] The fourth aspect of the present invention is to provide an electronic device, comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor implements the method described in the above technical solution when executing the computer program.

[0041] Compared with the prior art, the password management method and system for industrial Internet security shown in the present invention have the following beneficial effects:

[0042] Feature data is obtained by extracting target data, a random number is generated based on the feature data to determine a salting factor, and then the salting factor is randomly mixed and hashed with the plaintext password set by the user to obtain an initial hash key. After the initial hash key is generated, the initial hash key is divided to obtain a first character string and a second character string, and finally at least part of the characters in the first character string and at least part of the characters in the second character string are randomly mixed and hashed again to obtain a target hash key for encrypting the plaintext password. In the present invention, hashing the plaintext password and hashing the divided characters again is equivalent to cyclically encrypting the password in a dynamic salting manner, thereby avoiding password leakage caused by leakage of a fixed salting factor and improving the difficulty of cracking the password. The method shown in the present invention solves the problem of password security in the prior art that data leakage may generally exist. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0044] Figure 1A flowchart of a password management method applied to industrial Internet security in one embodiment of the present invention;

[0045] Figure 2 It is a schematic diagram of mapping the first hash value and the second hash value to a preset coordinate system in one embodiment of the present invention;

[0046] Figure 3 This is a structural block diagram of a password management system used in industrial Internet security in one embodiment of the present invention. DETAILED DESCRIPTION

[0047] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings. Several embodiments of the present invention are shown in the accompanying 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.

[0048] 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.

[0049] 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.

[0050] Embodiment 1

[0051] See also Figure 1 and Figure 2 The first embodiment of the present invention provides a password management method for industrial Internet security, the method comprising steps S10 to S50:

[0052] Step S10, obtaining target data stored or transmitted in the industrial Internet, and performing data extraction on the target data to obtain feature data.

[0053] The Industrial Internet refers to the Internet applied in the industrial field. It integrates various equipment, systems and software applied in the industrial field. It can provide intelligent manufacturing capabilities through real-time transmission, processing and analysis of data.

[0054] In the actual application of the industrial Internet, it is usually necessary to store and transmit data. These data require high confidentiality and integrity. Therefore, an access password is usually set to encrypt the above data. Only authorized users can access it with the preset password.

[0055] In this embodiment, in order to improve the security of the industrial Internet, the password is managed in this embodiment, mainly including encrypting and storing the password, thereby improving the security of the password to ensure data security. In this embodiment, the password is mainly encrypted by adding salt to the password. Therefore, the target data stored or transmitted in the process Internet is obtained. The target data can be drawing process data, processing process data, warehousing and logistics data, etc., and then the above target data is feature extracted to obtain feature data for subsequent salting processing. Among them, the feature data can be the data number and data type in the target data.

[0056] Step S20: Generate at least one random number based on the characteristic data, and determine the random number as a salting factor.

[0057] In this embodiment, in specific applications, at least one random number will be randomly generated based on the characteristic data. The random number can be a number, such as 9, or a letter, such as A. The number or letter is then determined as a salt factor, that is, the salt value is determined, and then the password is encrypted using the number or letter.

[0058] Step S30, obtaining a plain text password set by a user, randomly mixing the salt factor with the plain text password to perform a hash operation, and obtaining an initial hash key.

[0059] In this embodiment, the steps of obtaining a plain text password set by a user, randomly mixing the salt factor with the plain text password to perform a hash operation, and obtaining an initial hash key include:

[0060] Obtaining a plain text password set by a user, randomly mixing the salting factor with the plain text password and performing a first hash operation to obtain a first hash value;

[0061] Randomly mix the salting factor and the first Hash value and perform a second Hash operation to obtain a second Hash value;

[0062] An initial Hash key is generated according to the first Hash value and the second Hash value.

[0063] Specifically, when the plaintext password set by the user for accessing the industrial Internet port is, for example, MM12349876, and the salt factor is, for example, %, after obtaining the plaintext password set by the user, the salt factor and the plaintext password will be randomly mixed and the first hash operation will be performed, which is referred to as the first hash operation in this embodiment. Then the first hash value is output, and the first hash value is a random sequence, which can be, for example, A1B22C333D4444A1. Then the salt factor and the first hash value are used again to perform a hash operation, which is defined as a second hash operation in this embodiment to distinguish it from the above-mentioned first hash operation, and the second hash value is output. The second hash value can be, for example, A1B22E555D4444A1. Finally, a hash operation is performed again based on the first hash value and the second hash value to obtain an initial hash key, which is used to initially encrypt the plaintext password.

[0064] The step of generating an initial Hash key according to the first Hash value and the second Hash value includes:

[0065] Mapping the first hash value and the second hash value in a preset coordinate system respectively, including mapping the first hash value to the origin of the preset coordinate system, and mapping the second hash value to any coordinate point in any quadrant of the preset coordinate system;

[0066] A line is connected between the origin and the arbitrary coordinate point, a midpoint of the line is determined, and the midpoint of the line is reversely mapped to obtain a third hash value, thereby obtaining an initial hash key.

[0067] The step of connecting the origin and the arbitrary coordinate point, determining the midpoint of the connecting line, and performing reverse mapping on the midpoint of the connecting line to obtain a third hash value and obtain an initial hash key comprises:

[0068] Draw a line between the origin and the arbitrary coordinate point;

[0069] According to the coordinate values ​​of the origin and the arbitrary coordinate point, the length of the line connecting the two points is calculated, and the midpoint of the line is determined according to the length of the line;

[0070] De-mapping is performed on the midpoint of the connection line to obtain a third hash value to obtain an initial hash key.

[0071] Specifically, when performing a hash operation based on the first hash value and the second hash value, the first hash value and the second hash value will first be mapped to a preset coordinate system respectively. Specifically, the first hash value is mapped to the origin of the preset coordinate system, recorded as origin A, and then the second hash value is mapped to any coordinate point in any coordinate quadrant in the above-mentioned preset coordinate system, recorded as coordinate point B, and then the origin A and the coordinate point B are connected in the preset coordinate system to obtain line segment AB, and the midpoint of the line is determined based on the line segment AB, that is, the midpoint C, and finally, the coordinate point of the midpoint C in the preset coordinate system is reversely mapped to obtain the third hash value, that is, the initial hash key for initially encrypting the plaintext password in this embodiment.

[0072] Among them, when the midpoint of the connection line is reversed, the coordinate point of the midpoint of the connection line in the preset coordinate system will be identified first, and the coordinate value of the coordinate point of the midpoint of the connection line in the preset coordinate system will be reversed. When reverse mapping, it is necessary to combine the X value and Y value of the coordinate value of the midpoint of the connection line for reverse mapping, which is equivalent to normal mapping plus two variables, X value and Y value. For example, the X value is 05, and the Y value is 08, so as to obtain a third hash value based on the reverse mapping of the X value and the Y value. The third hash value can be, for example, A1B22X05Y08C33A1, so as to obtain an initial hash key for initially encrypting the plaintext password.

[0073] Step S40, performing string segmentation on the initial Hash key to obtain a first string and a second string.

[0074] In this embodiment, although the initial Hash key for initially encrypting the plain text password has been obtained through the above multiple hash operations, this does not mean that the plain text password set by the user is necessarily safe during the storage process. In this embodiment, the initial Hash key will also be split into a string to obtain a first string and a second string. The first string and the second string can be evenly split according to the number of bits, or unequally split according to the number of characters.

[0075] For example, in this embodiment, the initial hash key is split by an average bit splitting method. For example, the 8 characters in the leading position of the initial hash key are split to obtain the first hash string, and then the 8 characters in the trailing position are split to obtain the second hash string. The first string obtained by the average bit splitting is A1B22X05, and the second string is Y08C33A1. Alternatively, the characters in the first string and the second string are randomly mixed and then split to obtain the first string and the second string. For example, the first string is A1Y08C33, and the second string is B22X05A1.

[0076] Step S50: randomly mix at least part of the characters of the first character string with at least part of the characters of the second character string and perform a hash operation to obtain a target hash key, so as to encrypt the target data by using the target hash key.

[0077] In this embodiment, randomly mixing at least part of the characters of the first character string with at least part of the characters of the second character string and performing a hash operation to obtain a target hash key, and encrypting the target data by using the target hash key, includes:

[0078] Determine the number of character digits of the first character string and the second character string respectively;

[0079] According to a preset character selection ratio, a first target character and a second target character corresponding to the character selection ratio are selected from the first character string and the second character string respectively; the first target character and the second target character each include at least two;

[0080] The first target character and the second target character are randomly mixed and hashed to obtain a target hash key, so as to encrypt the target data by using the target hash key.

[0081] Specifically, when randomly mixing at least part of the characters in the first string and at least part of the characters in the second string, it is necessary to first determine the number of character digits of the first string and the second string, and set the character selection ratio of the first string and the second string, such as 2 to 1, and then select the first target character and the second target character of part of the digits in the first string and the second string respectively according to the character selection ratio. If the above character selection ratio is 2 to 1, it is necessary to select 4 characters in the first string and the second string respectively, so as to obtain the first target character and the second target character of 4 characters respectively. For example, For example, A1X5 is selected as the first target character from the first character string A1B22X05, and Y8A1 is selected as the second target character from the second character string Y08C33A1, and then A1X5 and Y8A1 are randomly mixed, for example, X8A1Y5A1 is obtained by mixing, and a hash operation is performed based on the character string X8A1Y5A1 to obtain a target hash key, such as X8A1Y5A11A5Y1A8X, and then the initial hash key is re-encrypted with the target hash key to achieve re-encryption of the plaintext password, and finally to achieve encryption of the target data existing in the industrial Internet.

[0082] The step of randomly mixing the first target character and the second target character and performing a hash operation to obtain a target hash key, and encrypting the target data by using the target hash key specifically includes:

[0083] Alternately arrange and mix characters in the first target character with characters in the second target character and perform a hash operation to obtain a target hash key;

[0084] The plaintext password is encrypted based on the target hash key to encrypt the target data.

[0085] Compared with the prior art, the password management method for industrial Internet security shown in this embodiment has the following beneficial effects:

[0086] Feature data is obtained by extracting target data, a random number is generated based on the feature data to determine a salting factor, and then the salting factor is randomly mixed and hashed with the plaintext password set by the user to obtain an initial hash key. After the initial hash key is generated, the initial hash key is divided into a first character string and a second character string, and finally at least part of the characters in the first character string and at least part of the characters in the second character string are randomly mixed and hashed again to obtain a target hash key for encrypting the plaintext password. In this embodiment, hashing the plaintext password and hashing the divided characters again is equivalent to cyclically encrypting the password in a dynamic salting manner, thereby avoiding password leakage caused by leakage of a fixed salting factor and improving the difficulty of cracking the password. The method shown in this embodiment solves the problem of password security in the prior art that data leakage may generally exist.

[0087] Embodiment 2

[0088] The second embodiment of the present invention also provides a password management method for industrial Internet security, which is basically the same as the method shown in the first embodiment, except that:

[0089] In this embodiment, the password management method further includes:

[0090] Distribute and store multiple key copies of the target hash key in multiple key blockchains;

[0091] When a plain text password input by a user is received, the key copies are respectively called from multiple key blockchains to form the target hash key.

[0092] In this embodiment, after the target hash key is generated by the method shown in the first embodiment to encrypt the target data, the target hash key will also be distributedly stored in this embodiment to improve the storage security of the target hash key.

[0093] Specifically, after the target hash key is generated, the target hash key will be split and backed up to obtain multiple key copies, and then the multiple key copies will be stored in multiple key blockchains respectively. After the plaintext key entered by the user is recognized, all the key copies will be called from the multiple key blockchains respectively to form the target hash key, so as to realize the decryption and data call of the target data through the input of the plaintext password and the verification of the target hash key.

[0094] By adopting the method shown in this embodiment, the target hash key is distributed and stored. Even if one of the key copies in the target hash key is obtained, the entire target hash key cannot be directly obtained, and authentication cannot be passed. In this case, the stored or transmitted target data will not be leaked, which can effectively improve data security.

[0095] Embodiment 3

[0096] See also Figure 3 The third embodiment of the present invention provides a password management system applied to industrial Internet security, which is applied to the method described in any of the above embodiments. The system includes: a feature data extraction module 10, a salt factor determination module 20, a first hash operation module 30, a key character segmentation module 40 and a second hash operation module 50.

[0097] The feature data extraction module 10 acquires target data stored or transmitted in the industrial Internet, and performs data extraction on the target data to obtain feature data;

[0098] A salting factor determination module 20, configured to generate at least one random number according to the characteristic data, and determine the random number as a salting factor;

[0099] The first hash operation module 30 is used to obtain the plain text password set by the user, randomly mix the salt factor with the plain text password to perform a hash operation, and obtain an initial hash key;

[0100] A key character segmentation module 40 is used to segment the initial hash key into a character string to obtain a first character string and a second character string;

[0101] The second hash operation module 50 is used to randomly mix at least part of the characters of the first character string with at least part of the characters of the second character string and perform a hash operation to obtain a target hash key, so as to encrypt the target data by using the target hash key.

[0102] The first hash operation module 30 is specifically used for:

[0103] Obtaining a plain text password set by a user, randomly mixing the salting factor with the plain text password and performing a first hash operation to obtain a first hash value;

[0104] Randomly mix the salting factor and the first Hash value and perform a second Hash operation to obtain a second Hash value;

[0105] An initial Hash key is generated according to the first Hash value and the second Hash value.

[0106] The first hash operation module 30 is further used for:

[0107] Mapping the first hash value and the second hash value in a preset coordinate system respectively, including mapping the first hash value to the origin of the preset coordinate system, and mapping the second hash value to any coordinate point in any quadrant of the preset coordinate system;

[0108] A line is connected between the origin and the arbitrary coordinate point, a midpoint of the line is determined, and the midpoint of the line is reversely mapped to obtain a third hash value, thereby obtaining an initial hash key.

[0109] The first hash operation module 30 is further used for:

[0110] Draw a line between the origin and the arbitrary coordinate point;

[0111] According to the coordinate values ​​of the origin and the arbitrary coordinate point, the length of the line connecting the two points is calculated, and the midpoint of the line is determined according to the length of the line;

[0112] De-mapping is performed on the midpoint of the connection line to obtain a third hash value to obtain an initial hash key.

[0113] The second hash operation module 50 is specifically used for:

[0114] Determine the number of character digits of the first character string and the second character string respectively;

[0115] According to a preset character selection ratio, a first target character and a second target character corresponding to the character selection ratio are selected from the first character string and the second character string respectively; the first target character and the second target character each include at least two;

[0116] The first target character and the second target character are randomly mixed and hashed to obtain a target hash key, so as to encrypt the target data by using the target hash key.

[0117] The second hash operation module 50 is further used for:

[0118] Alternately arrange and mix characters in the first target character with characters in the second target character and perform a hash operation to obtain a target hash key;

[0119] The plaintext password is encrypted based on the target hash key to encrypt the target data.

[0120] Compared with the prior art, the password management system used in industrial Internet security shown in this embodiment has the following beneficial effects:

[0121] Feature data is obtained by extracting the target data, a random number is generated based on the feature data to determine the salting factor, and then the salting factor is randomly mixed and hashed with the plaintext password set by the user to obtain an initial hash key. After the initial hash key is generated, the initial hash key is divided into a first character string and a second character string, and finally at least part of the characters in the first character string and at least part of the characters in the second character string are randomly mixed and hashed again to obtain a target hash key for encrypting the plaintext password. In this embodiment, hashing the plaintext password and hashing the divided characters again is equivalent to cyclically encrypting the password in a dynamic salting manner, avoiding password leakage caused by leakage of a fixed salting factor, and increasing the difficulty of cracking the password. The system shown in this embodiment solves the problem of password security in the prior art that data leakage may generally exist.

[0122] Embodiment 4

[0123] A fourth embodiment of the present invention provides a readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method described in the above embodiment is implemented.

[0124] Embodiment 5

[0125] A fifth embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor implements the method described in the above embodiments when executing the computer program.

[0126] 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.

[0127] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for those of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these 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 password management method applied to industrial Internet security, characterized in that: The method comprises: Acquire target data stored or transmitted in the industrial Internet, and perform data extraction on the target data to obtain feature data; Generate at least one random number according to the characteristic data, and determine the random number as a salting factor; Obtaining a plaintext password set by a user, randomly mixing the salting factor with the plaintext password to perform a hash operation, and obtaining an initial hash key; Performing string segmentation on the initial Hash key to obtain a first string and a second string; Randomly mix at least part of the characters of the first character string with at least part of the characters of the second character string and perform a hash operation to obtain a target hash key, so as to encrypt the target data by using the target hash key; The step of obtaining a plain text password set by a user, randomly mixing the salt factor with the plain text password to perform a hash operation, and obtaining an initial hash key includes: Obtaining a plain text password set by a user, randomly mixing the salting factor with the plain text password and performing a first hash operation to obtain a first hash value; Randomly mix the salting factor and the first Hash value and perform a second Hash operation to obtain a second Hash value; Generate an initial Hash key according to the first Hash value and the second Hash value; The step of generating an initial Hash key according to the first Hash value and the second Hash value includes: Mapping the first hash value and the second hash value in a preset coordinate system respectively, including mapping the first hash value to the origin of the preset coordinate system, and mapping the second hash value to any coordinate point in any quadrant of the preset coordinate system; Draw a line between the origin and the arbitrary coordinate point, determine the midpoint of the line, perform inverse mapping on the midpoint of the line, obtain a third hash value, and obtain an initial hash key; The step of randomly mixing at least part of the characters of the first character string with at least part of the characters of the second character string and performing a hash operation to obtain a target hash key, and encrypting the target data by using the target hash key includes: Determine the number of character digits of the first character string and the second character string respectively; According to a preset character selection ratio, a first target character and a second target character corresponding to the character selection ratio are selected from the first character string and the second character string respectively; the first target character and the second target character each include at least two; The first target character and the second target character are randomly mixed and hashed to obtain a target hash key, so as to encrypt the target data by using the target hash key.

2. The password management method applied to industrial Internet security according to claim 1 is characterized in that: The step of connecting a line between the origin and the arbitrary coordinate point, determining the midpoint of the line, and performing inverse mapping on the midpoint of the line to obtain a third hash value and obtain an initial hash key comprises: Draw a line between the origin and the arbitrary coordinate point; According to the coordinate values ​​of the origin and the arbitrary coordinate point, the length of the line connecting the two points is calculated, and the midpoint of the line is determined according to the length of the line; De-mapping is performed on the midpoint of the connection line to obtain a third hash value to obtain an initial hash key.

3. The password management method applied to industrial Internet security according to claim 1 is characterized in that: The step of randomly mixing the first target character and the second target character and performing a hash operation to obtain a target hash key, and encrypting the target data by using the target hash key specifically includes: Alternately arrange and mix characters in the first target character with characters in the second target character and perform a hash operation to obtain a target hash key; The plain text password is encrypted based on the target hash key to encrypt the target data.

4. The password management method applied to industrial Internet security according to any one of claims 1 to 3 is characterized in that: The method further comprises: Distribute and store multiple key copies of the target hash key in multiple key blockchains; When a plain text password input by a user is received, the key copies are respectively called from multiple key blockchains to form the target hash key.

5. A password management system used in industrial Internet security, characterized in that: The method applied to any one of claims 1 to 4, wherein the system comprises: A feature data extraction module acquires target data stored or transmitted in the industrial Internet, and performs data extraction on the target data to obtain feature data; A salting factor determination module, used to generate at least one random number according to the characteristic data, and determine the random number as a salting factor; A first hash operation module is used to obtain a plain text password set by a user, randomly mix the salt factor with the plain text password to perform a hash operation, and obtain an initial hash key; A key character segmentation module, used for performing character string segmentation on the initial hash key to obtain a first character string and a second character string; The second hash operation module is used to randomly mix at least part of the characters of the first character string with at least part of the characters of the second character string and perform a hash operation to obtain a target hash key, so as to encrypt the target data by using the target hash key.

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

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and capable of being executed on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 4 is implemented.