User password processing method, electronic equipment, storage medium and program product
By analyzing the length, character type and continuity of password information, and calculating password strength levels, the problem of inaccurate password security judgment in the prior art is solved, the accuracy of password security recognition is improved, and information data leakage is reduced risk.
Patent Information
- Application Number
- CN202411447130.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-16
- Publication Date
- 2025-01-10
AI Technical Summary
The prior art is difficult to accurately judge the security strength of complex passwords. The static weak password dictionary cannot effectively identify the security of passwords, resulting in an increase in the risk of information data leakage.
By obtaining the password information to be processed, determining its length, character type and continuity, calculating the password strength level based on the preset parameter comparison information, determining the password security strength, and improving the accuracy of the password security strength.
It effectively improves the security of user passwords, reduces the risk of system and information data leakage due to weak passwords, and enhances the security of user accounts for non-network security professionals.
Smart Images

Figure CN119293777A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data security technology, and in particular to a method for processing a user password, an electronic device, a storage medium, and a program product. Background Art
[0002] As information and network-based businesses continue to cover everyone's life and work, the digital information is also increasing. Data management has become the core business of the entire process, and corresponding permission settings have also been applied. The password to access data information has become increasingly important with the increase in informatization. Its importance is self-evident. In the protection of system security and data security, the security of personal data privacy is an important protection object. There are also higher requirements for the security of access to data, and the security of passwords to access systems and data has also become an important security indicator. Only by increasing the strength of passwords and increasing the difficulty of brute force cracking and weak password attacks by network attacks can the security of information data be better guaranteed.
[0003] At present, a static weak password dictionary is used for matching detection technology, commonly known as "weak password" detection (password cracking tool). That is to say, the strength of the current password is analyzed by comparing it with the known passwords in the existing weak password dictionary. However, if the password is relatively complex, the static weak password dictionary cannot accurately determine the security strength of the password. How to improve the accuracy of identifying the security strength of passwords is an urgent issue at present. Summary of the invention
[0004] The purpose of some embodiments of the present application is to provide a method for processing user passwords, an electronic device, a storage medium and a program product. Through the technical solutions of the embodiments of the present application, by obtaining password information to be processed; determining a target strength judgment parameter corresponding to the password information according to the password information to be processed; determining target parameter assignment data corresponding to the target strength judgment parameter according to pre-set parameter comparison information; wherein the pre-set parameter comparison information at least includes a correspondence between a strength judgment parameter and a parameter assignment data; determining password strength information corresponding to the password information according to the target parameter assignment data, the password strength information is used to judge the security strength of the user password. In the embodiments of the present application, different dimensions of the user password information are judged respectively, and then assignment processing is performed according to the judgment result, and then the password strength is judged according to the total data after assignment, so as to improve the accuracy of identifying the security strength of the password, in order to better improve the security of software systems and information data and comprehensively protect personal data and privacy information, and improve the security access of electronic information data.
[0005] In a first aspect, some embodiments of the present application provide a method for processing a user password, including:
[0006] Get the password information to be processed;
[0007] Determining a target strength judgment parameter corresponding to the password information according to the password information to be processed;
[0008] Determine the target parameter assignment data corresponding to the target strength judgment parameter according to the preset parameter comparison information; wherein the preset parameter comparison information at least includes the corresponding relationship between the strength judgment parameter and the parameter assignment data;
[0009] According to the target parameter assignment data, password strength information corresponding to the password information is determined, and the password strength information is used to judge the security strength of the user password.
[0010] Some embodiments of the present application judge different dimensions of user password information respectively, and then assign values according to the judgment results, and then judge the password strength according to the total data after the assignment, so as to improve the accuracy of identifying the security strength of the password, so as to better improve the security of software systems and information data and comprehensively protect personal data and privacy information, and improve the security access to electronic information data.
[0011] Optionally, determining, according to the password information to be processed, a target strength judgment parameter corresponding to the password information includes:
[0012] Determining length assignment data corresponding to the password information according to the length of the password information;
[0013] Determining type assignment data corresponding to the password information according to the character type of the password information;
[0014] According to the continuous values of the same type of characters in the password information, the continuous value assignment data corresponding to the password information is determined.
[0015] Some embodiments of the present application determine the strength of a password by performing a comprehensive analysis and detection of uppercase and lowercase characters, numbers, special symbols, and content length contained therein based on the subdivision of the password content.
[0016] Optionally, the character types include at least uppercase letters, lowercase letters, numbers and special characters.
[0017] Optionally, determining password strength information corresponding to the password information according to the target parameter assignment data, wherein the password strength information is used to judge the security strength of the user password, includes:
[0018] According to one or more of the length assignment data, the type assignment data and the continuous assignment data, password strength information corresponding to the password information is determined, and the password strength information is used to judge the security strength of the user password.
[0019] Some embodiments of the present application solve the problem of strength analysis and identification of access passwords in existing network terminals, application software and data information access. During the network data access process, the strength of the access passwords set by users is timely detected and analyzed, effectively reducing and preventing the passwords set by users from being cracked and exploited due to being too weak.
[0020] Optionally, determining the password strength information corresponding to the password information according to one or more of the length assignment data, the type assignment data and the continuous assignment data includes:
[0021] Calculating the sum of the length assigned data, the type assigned data and the continuous assigned data to obtain a password strength level;
[0022] According to the password strength level, strength information corresponding to the password information is determined.
[0023] Optionally, determining, according to the password strength level, strength information corresponding to the password information includes:
[0024] If the password strength level is greater than a preset level value, it is determined that the password information is a secure password.
[0025] Optionally, determining, according to the password strength level, strength information corresponding to the password information includes:
[0026] If the password strength level is less than or equal to a preset level value, it is determined that the password information is an unsafe password.
[0027] Some embodiments of the present application effectively improve the security of user access passwords, greatly reduce the security of system and information data leakage caused by weak user access passwords, and improve the security of user accounts, especially the security of user accounts for non-network security professionals.
[0028] In a second aspect, some embodiments of the present application provide a user password processing device, including:
[0029] An acquisition module, used to acquire password information to be processed;
[0030] A determination module, configured to determine a target strength judgment parameter corresponding to the password information according to the password information to be processed;
[0031] A search module, used to determine the target parameter assignment data corresponding to the target strength judgment parameter according to the preset parameter comparison information; wherein the preset parameter comparison information at least includes the corresponding relationship between the strength judgment parameter and the parameter assignment data;
[0032] The judgment module is used to determine the password strength information corresponding to the password information according to the target parameter assignment data, and the password strength information is used to judge the security strength of the user password.
[0033] Some embodiments of the present application judge different dimensions of user password information respectively, and then assign values according to the judgment results, and then judge the password strength according to the total data after the assignment, so as to improve the accuracy of identifying the security strength of the password, so as to better improve the security of software systems and information data and comprehensively protect personal data and privacy information, and improve the security access to electronic information data.
[0034] Optionally, the determining module is used to:
[0035] Determining length assignment data corresponding to the password information according to the length of the password information;
[0036] Determining type assignment data corresponding to the password information according to the character type of the password information;
[0037] According to the continuous values of the same type of characters in the password information, the continuous value assignment data corresponding to the password information is determined.
[0038] Some embodiments of the present application determine the strength of a password by performing a comprehensive analysis and detection of uppercase and lowercase characters, numbers, special symbols, and content length contained therein based on the subdivision of the password content.
[0039] Optionally, the character types include at least uppercase letters, lowercase letters, numbers and special characters.
[0040] Optionally, the judging module is used to:
[0041] According to one or more of the length assignment data, the type assignment data and the continuous assignment data, password strength information corresponding to the password information is determined, and the password strength information is used to judge the security strength of the user password.
[0042] Some embodiments of the present application solve the problem of strength analysis and identification of access passwords in existing network terminals, application software and data information access. During the network data access process, the strength of the access passwords set by users is timely detected and analyzed, effectively reducing and preventing the passwords set by users from being cracked and exploited due to being too weak.
[0043] Optionally, the judging module is used to:
[0044] Calculating the sum of the length assigned data, the type assigned data and the continuous assigned data to obtain a password strength level;
[0045] According to the password strength level, strength information corresponding to the password information is determined.
[0046] Optionally, the judging module is used to:
[0047] If the password strength level is greater than a preset level value, it is determined that the password information is a secure password.
[0048] Optionally, the judging module is used to:
[0049] If the password strength level is less than or equal to a preset level value, it is determined that the password information is an unsafe password.
[0050] Some embodiments of the present application effectively improve the security of user access passwords, greatly reduce the security of system and information data leakage caused by weak user access passwords, and improve the security of user accounts, especially the security of user accounts for non-network security professionals.
[0051] In a third aspect, some embodiments of the present application provide an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for processing a user password as described in any embodiment of the first aspect can be implemented.
[0052] In a fourth aspect, some embodiments of the present application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, can implement the method for processing a user password as described in any embodiment of the first aspect.
[0053] In a fifth aspect, some embodiments of the present application provide a computer program product, comprising a computer program, wherein the computer program, when executed by a processor, can implement the method for processing a user password as described in any embodiment of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the technical solutions of some embodiments of the present application, the drawings required for use in some embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0055] Figure 1 A flowchart of a method for processing a user password provided in an embodiment of the present application;
[0056] Figure 2 A flowchart of another method for processing a user password provided in an embodiment of the present application;
[0057] Figure 3 A flowchart of another method for processing a user password provided in an embodiment of the present application;
[0058] Figure 4 A schematic diagram of the structure of a user password processing device provided in an embodiment of the present application;
[0059] Figure 5 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0060] The technical solutions in some embodiments of the present application will be described below in conjunction with the drawings in some embodiments of the present application.
[0061] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0062] As information and network-based businesses continue to cover everyone's life and work, the digital information is also increasing. Data management has become the core business of the entire process, and corresponding permission settings have also been applied. The password to access data information has become increasingly important with the increase in informatization. Its importance is self-evident. In the protection of system security and data security, the security of personal data privacy is an important protection object. There are also higher requirements for the security of access to data, and the security of passwords to access systems and data has also become an important security indicator. Only by increasing the strength of passwords and increasing the difficulty of brute force cracking and weak password attacks by network attacks can the security of information data be better guaranteed.
[0063] At present, a static weak password dictionary is used for matching detection technology, commonly known as "weak password" detection (password cracking tool). That is to say, the strength of the current password is analyzed by comparing it with the known passwords in the existing weak password dictionary. However, if the password is relatively complex, the static weak password dictionary cannot accurately determine the security strength of the password. How to improve the accuracy of identifying the security strength of passwords is an urgent issue at present.
[0064] In view of this, some embodiments of the present application provide a method for processing user passwords, the method comprising obtaining password information to be processed; determining a target strength judgment parameter corresponding to the password information based on the password information to be processed; determining target parameter assignment data corresponding to the target strength judgment parameter based on pre-set parameter comparison information; wherein the pre-set parameter comparison information at least includes a correspondence between the strength judgment parameter and the parameter assignment data; determining password strength information corresponding to the password information based on the target parameter assignment data, the password strength information being used to judge the security strength of the user password. In the embodiments of the present application, different dimensions of the user password information are judged respectively, and then assignment processing is performed based on the judgment result, and then the password strength is judged based on the total data after the assignment, thereby improving the accuracy of identifying the password security strength, in order to better improve the security of software systems and information data and comprehensively protect personal data and privacy information, and improve the security access to electronic information data.
[0065] like Figure 1 As shown, an embodiment of the present application provides a method for processing a user password, the method comprising:
[0066] S101. Obtain password information to be processed. Specifically, when a user logs into an application on a terminal device, the terminal device extracts the password content input by the user, i.e., the password information to be processed. It is necessary to perform a comprehensive analysis and detection on the detailed character information in the password content to determine the strength of the input password.
[0067] S102, determining a target strength judgment parameter corresponding to the password information according to the password information to be processed;
[0068] Specifically, the terminal device analyzes the password information to be processed from various angles to obtain length assignment data, the type assignment data and continuous assignment data, and then calculates the target strength judgment parameter corresponding to the password information based on the length assignment data, the type assignment data and the continuous assignment data.
[0069] S103, determining target parameter assignment data corresponding to the target strength judgment parameter according to the preset parameter comparison information; wherein the preset parameter comparison information at least includes a correspondence between the strength judgment parameter and the parameter assignment data;
[0070] Specifically, the terminal device pre-stores parameter comparison information, which includes at least the strength judgment parameter and the parameter assignment data corresponding to the strength judgment parameter. After calculating the target parameter assignment data, the terminal device matches the parameter comparison information to determine the target parameter assignment data corresponding to the target strength judgment parameter.
[0071] S104. Determine password strength information corresponding to the password information according to the target parameter assignment data. The password strength information is used to judge the security strength of the user password.
[0072] Some embodiments of the present application judge different dimensions of user password information respectively, and then assign values according to the judgment results, and then judge the password strength according to the total data after the assignment, so as to improve the accuracy of identifying the security strength of the password, so as to better improve the security of software systems and information data and comprehensively protect personal data and privacy information, and improve the security access to electronic information data.
[0073] Another embodiment of the present application further supplements the method for processing user passwords provided in the above embodiment.
[0074] Optionally, determining a target strength judgment parameter corresponding to the password information according to the password information to be processed includes:
[0075] According to the length of the password information, determining the length assignment data corresponding to the password information;
[0076] According to the character type of the password information, the type assignment data corresponding to the password information is determined; optionally, the character type includes at least uppercase letters, lowercase letters, numeric types and special characters.
[0077] According to the continuous values of the same type of characters in the password information, the continuous value assignment data corresponding to the password information is determined.
[0078] Specifically, the terminal device performs a comprehensive analysis and detection of the uppercase and lowercase characters, numbers, special symbols and content length contained therein according to the subdivision of the password content to determine the strength of the password.
[0079] The terminal device first determines the length of the password information to be processed, and the basis for the determination is shown in Table 1, which is a password length coefficient reference table:
[0080] Table 1
[0081]
[0082] The terminal device determines the length of the password information and obtains the length assignment data corresponding to the password information. For example, if the length of the password information is 8 bits, the length assignment data corresponding to the password information is determined to be 15.
[0083] After the terminal device completes the length judgment, it judges the character type in the password information to be processed, and the character type includes at least uppercase letters, lowercase letters, numbers and special characters. According to the password content character type coefficient table in Table 2, the character types in the password information to be processed are obtained, and different type assignment data are determined according to the number of character types. For example, if the password information to be processed includes two types of characters, the obtained type assignment data is 10.
[0084] Table 2
[0085]
[0086] The terminal device then determines the number of consecutive characters of the same type in the password information to be processed, and determines it according to the continuity coefficient table of the same type of characters in the password content in Table 3, and then obtains the continuous value assignment data corresponding to the password information. Exemplarily, if the continuity of the same type of characters in the password information to be processed is less than or equal to 50%, the corresponding continuous value assignment data is determined to be 30. The continuity is the frequency of consecutive appearance of the same type of characters in the password content.
[0087] Table 3
[0088]
[0089] Some embodiments of the present application determine the strength of a password by performing a comprehensive analysis and detection of uppercase and lowercase characters, numbers, special symbols, and content length contained therein based on the subdivision of the password content.
[0090] Optionally, according to the target parameter assignment data, password strength information corresponding to the password information is determined, and the password strength information is used to judge the security strength of the user password, including:
[0091] According to one or more of the length assignment data, the type assignment data and the continuous assignment data, the password strength information corresponding to the password information is determined, and the password strength information is used to judge the security strength of the user password.
[0092] When the terminal device obtains one or more of the length assignment data, the type assignment data and the continuous assignment data, in the case of multiple assignment data, the multiple assignment data are added together to obtain the password strength information corresponding to the password information, and the password level corresponding to the password strength information is determined according to the password strength level table in Table 4, and the security strength of the user password is judged according to the password level.
[0093] Exemplarily, if the password strength information is 165, the obtained password level is a high-strength level, indicating that the password information to be processed is a secure password.
[0094] The index system value, namely the password strength information, is the password length coefficient + the password content similar character coefficient + the password content character type coefficient.
[0095] Table 4
[0096]
[0097] By determining the length of the password content, the character types contained in the content, and the continuity of similar characters, the password strength level is finally obtained; Figure 2 shown.
[0098] Specific steps:
[0099] Step (1) obtains the password input by the user in real time and imports it into the password analysis and detection model.
[0100] Step (2) distributes passwords to the three indicator analysis and detection units through the analysis and detection distribution unit.
[0101] Step (3) Each analysis and detection unit performs analysis according to the corresponding password strength analysis and detection index, assigns a value to the analysis result, and then outputs the assigned value to the password strength level calculation processing unit;
[0102] Step (4) The password strength level calculation unit is responsible for summarizing and calculating the input data, matching it with the password strength level table, and outputting the corresponding password analysis detection strength analysis results;
[0103] Some embodiments of the present application solve the problem of strength analysis and identification of access passwords in existing network terminals, application software and data information access. During the network data access process, the strength of the access passwords set by users is timely detected and analyzed, effectively reducing and preventing the passwords set by users from being cracked and exploited due to being too weak.
[0104] Optionally, determining password strength information corresponding to the password information according to one or more of the length assignment data, the type assignment data, and the continuous assignment data includes:
[0105] Calculate the sum of the length assigned data, the type assigned data and the continuous assigned data to obtain the password strength level;
[0106] According to the password strength level, strength information corresponding to the password information is determined.
[0107] Optionally, determining strength information corresponding to the password information according to the password strength level includes:
[0108] If the password strength level is greater than the preset level value, it is determined that the password information is a secure password.
[0109] Optionally, determining strength information corresponding to the password information according to the password strength level includes:
[0110] If the password strength level is less than or equal to the preset level value, the password information is determined to be an unsafe password.
[0111] Some embodiments of the present application effectively improve the security of user access passwords, greatly reduce the security of system and information data leakage caused by weak user access passwords, and improve the security of user accounts, especially the security of user accounts for non-network security professionals.
[0112] like Figure 3 As shown, the embodiments of the present application can be applied to the protection of data information such as network service terminals or application levels that require configuration of user passwords.
[0113] The embodiment of the present application is analyzed based on the complexity of cracking user passwords; since the strength of user passwords will directly lead to changes in the success rate and input costs of password cracking by offenders through brute force cracking, social engineering, and inertial guessing, etc. The embodiment of the present application aims to improve the security of user passwords, continuously reduce the success rate of offenders, increase the cost of offenders, and ensure the security of user passwords.
[0114] According to the method described in detail in the embodiment of this application, the specific process is as follows:
[0115] Receive user password content in real time;
[0116] Process the access password content and distribute it to the designated password analysis and detection indicator unit;
[0117] Each password analysis detection index unit analyzes the password content according to the corresponding index analysis reference table, assigns a value according to the analysis result, and outputs the assignment result to the password strength level calculation processing unit.
[0118] The password strength level calculation processing unit summarizes the input password analysis index values, performs analysis and processing according to the password strength coefficient, and finally outputs the calculation result of the password strength.
[0119] The assignment process is broken down:
[0120] Password length 8 characters = 15 points; password content 4 types of characters = 40 points; password content with the same characters = 75% (37.5% lowercase letter continuity + 37.5% number continuity) = 15 points;
[0121] Total: 15+40+15=70 points;
[0122] The embodiments of the present application can quickly analyze and detect the strength of user passwords, thereby improving the security of user passwords; and improve and supplement the current single-index detection method for user password detection, thereby realizing a comprehensive security detection capability for user passwords.
[0123] It should be noted that each implementable method in this embodiment may be implemented separately, or may be implemented in combination in any combination without conflict, and this application is not limited thereto.
[0124] Another embodiment of the present application provides a user password processing device, which is used to execute the user password processing method provided by the above embodiment.
[0125] like Figure 4 , which is a schematic diagram of the structure of a user password processing device provided in an embodiment of the present application. The user password processing device includes an acquisition module 401, a determination module 402, a search module 403 and a judgment module 404, wherein:
[0126] The acquisition module 401 is used to acquire the password information to be processed;
[0127] The determination module 402 is used to determine the target strength judgment parameter corresponding to the password information according to the password information to be processed;
[0128] The search module 403 is used to determine the target parameter assignment data corresponding to the target strength judgment parameter according to the preset parameter comparison information; wherein the preset parameter comparison information at least includes the corresponding relationship between the strength judgment parameter and the parameter assignment data;
[0129] The judgment module 404 is used to determine the password strength information corresponding to the password information according to the target parameter assignment data, and the password strength information is used to judge the security strength of the user password.
[0130] Regarding the device in this embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0131] Some embodiments of the present application judge different dimensions of user password information respectively, and then assign values according to the judgment results, and then judge the password strength according to the total data after the assignment, so as to improve the accuracy of password security strength identification, in order to better improve the security of software systems and information data and comprehensively protect personal data and privacy information, and improve the security access of electronic information data. Another embodiment of the present application further supplements the user password processing device provided in the above embodiment.
[0132] Optionally, determining a target strength judgment parameter corresponding to the password information according to the password information to be processed includes:
[0133] According to the length of the password information, determining the length assignment data corresponding to the password information;
[0134] Determine type assignment data corresponding to the password information according to the character type of the password information;
[0135] According to the continuous values of the same type of characters in the password information, the continuous value assignment data corresponding to the password information is determined.
[0136] Some embodiments of the present application determine the strength of a password by performing a comprehensive analysis and detection of uppercase and lowercase characters, numbers, special symbols, and content length contained therein based on the subdivision of the password content.
[0137] Optionally, the character type includes at least uppercase letters, lowercase letters, numbers and special characters.
[0138] Optionally, according to the target parameter assignment data, password strength information corresponding to the password information is determined, and the password strength information is used to judge the security strength of the user password, including:
[0139] According to one or more of the length assignment data, the type assignment data and the continuous assignment data, the password strength information corresponding to the password information is determined, and the password strength information is used to judge the security strength of the user password.
[0140] Some embodiments of the present application solve the problem of strength analysis and identification of access passwords in existing network terminals, application software and data information access. During the network data access process, the strength of the access passwords set by users is timely detected and analyzed, effectively reducing and preventing the passwords set by users from being cracked and exploited due to being too weak.
[0141] Optionally, determining password strength information corresponding to the password information according to one or more of the length assignment data, the type assignment data, and the continuous assignment data includes:
[0142] Calculate the sum of the length assigned data, the type assigned data and the continuous assigned data to obtain the password strength level;
[0143] According to the password strength level, strength information corresponding to the password information is determined.
[0144] Optionally, determining strength information corresponding to the password information according to the password strength level includes:
[0145] If the password strength level is greater than the preset level value, it is determined that the password information is a secure password.
[0146] Optionally, determining strength information corresponding to the password information according to the password strength level includes:
[0147] If the password strength level is less than or equal to the preset level value, the password information is determined to be an unsafe password.
[0148] Some embodiments of the present application effectively improve the security of user access passwords, greatly reduce the security of system and information data leakage caused by weak user access passwords, and improve the security of user accounts, especially the security of user accounts for non-network security professionals.
[0149] Regarding the device in this embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0150] It should be noted that each implementable method in this embodiment may be implemented separately, or may be implemented in combination in any combination without conflict, and this application is not limited thereto.
[0151] The embodiments of the present application also provide a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the operation of the method corresponding to any embodiment of the method for processing user passwords provided in the above embodiments can be implemented.
[0152] An embodiment of the present application further provides a computer program product, wherein the computer program product includes a computer program, wherein when the computer program is executed by a processor, the operation of the method corresponding to any embodiment of the user password processing method provided in the above embodiments can be implemented.
[0153] like Figure 5 As shown, some embodiments of the present application provide an electronic device 500, which includes: a memory 510, a processor 520, and a computer program stored in the memory 510 and executable on the processor 520, wherein the processor 520 can implement any embodiment of the method for processing a user password as described above when reading the program from the memory 510 through a bus 530 and executing the program.
[0154] Processor 520 can process digital signals and can include various computing structures, such as complex instruction set computer structure, reduced instruction set computer structure, or a structure that implements a combination of multiple instruction sets. In some examples, processor 520 can be a microprocessor.
[0155] The memory 510 may be used to store instructions executed by the processor 520 or data related to the execution of instructions. These instructions and / or data may include codes for implementing some or all functions of one or more modules described in the embodiments of the present application. The processor 520 of the disclosed embodiment may be used to execute instructions in the memory 510 to implement the method shown above. The memory 510 includes a dynamic random access memory, a static random access memory, a flash memory, an optical memory, or other memory known to those skilled in the art.
[0156] The above are only embodiments of the present application and are not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0157] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0158] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
Claims
1. A method for processing a user password, characterized in that: The method comprises: Get the password information to be processed; Determining a target strength judgment parameter corresponding to the password information according to the password information to be processed; Determine the target parameter assignment data corresponding to the target strength judgment parameter according to the preset parameter comparison information; wherein the preset parameter comparison information at least includes the corresponding relationship between the strength judgment parameter and the parameter assignment data; According to the target parameter assignment data, password strength information corresponding to the password information is determined, and the password strength information is used to judge the security strength of the user password.
2. The method for processing a user password according to claim 1, characterized in that: The step of determining the target strength judgment parameter corresponding to the password information according to the password information to be processed includes: Determining length assignment data corresponding to the password information according to the length of the password information; Determining type assignment data corresponding to the password information according to the character type of the password information; According to the continuous values of the same type of characters in the password information, the continuous value assignment data corresponding to the password information is determined.
3. The method for processing a user password according to claim 2, characterized in that: The character types include at least uppercase letters, lowercase letters, numbers and special characters.
4. The method for processing a user password according to claim 2, characterized in that: The step of determining password strength information corresponding to the password information according to the target parameter assignment data, wherein the password strength information is used to judge the security strength of the user password, includes: According to one or more of the length assignment data, the type assignment data and the continuous assignment data, password strength information corresponding to the password information is determined, and the password strength information is used to judge the security strength of the user password.
5. The method for processing a user password according to claim 4, characterized in that: The determining, according to one or more of the length assignment data, the type assignment data and the continuous assignment data, the password strength information corresponding to the password information comprises: Calculating the sum of the length assigned data, the type assigned data and the continuous assigned data to obtain a password strength level; According to the password strength level, strength information corresponding to the password information is determined.
6. The method for processing a user password according to claim 5, characterized in that: The step of determining, according to the password strength level, strength information corresponding to the password information includes: If the password strength level is greater than a preset level value, it is determined that the password information is a secure password.
7. The method for processing user passwords according to claim 5, characterized in that: The step of determining, according to the password strength level, strength information corresponding to the password information includes: If the password strength level is less than or equal to a preset level value, it is determined that the password information is an unsafe password.
8. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor can implement the method for processing a user password as described in any one of claims 1 to 7 when executing the program.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the program, when executed by a processor, can implement the method for processing a user password as described in any one of claims 1 to 7.
10. A computer program product, comprising a computer program, wherein: When the computer program is executed by a processor, the method for processing a user password as described in any one of claims 1 to 7 can be implemented.