Password identification method, device, computer equipment and storage medium
By generating login reply instructions in the power monitoring system and scanning the terminal page to obtain key value information and key position images, matching historical password information, the problem of low security during password transmission is solved, and higher password security protection is achieved.
Patent Information
- Application Number
- CN202211228462.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-08
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2042-10-08
AI Technical Summary
After the encryption key of the power monitoring system is cracked during transmission, the security protection capability of the password recognition process is low and it is easy to be stolen and identified.
By generating a login reply command and returning it to the target terminal, scanning the terminal page to obtain key value information and key position images, and then comparing it with the historical password information after matching to avoid direct transmission of password information and improve security.
It effectively improves the security protection capabilities of passwords, prevents password information from being easily stolen and identified, and enhances the security of the password recognition process.
Smart Images

Figure CN115589290B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information security technology, and in particular to a password identification method, apparatus, computer equipment, storage medium and computer program product. Background Art
[0002] The power monitoring system is the control center of the entire power system. It can monitor and control the power production and supply process. It is of great significance to ensure the safe and stable operation of the power system and the reliable supply of electricity. Therefore, the password security of the power monitoring system is very important.
[0003] At present, the password of the power monitoring system is often encrypted and transmitted to ensure the security of the password. However, after decryption, there is no need to perform related identification and analysis processing, and the password can be directly obtained after decryption. If the encryption key of the password is cracked during the password transmission process, the password of the power monitoring system will also be identified and stolen, so the security protection capability of the password identification process of the power monitoring system is low. Summary of the invention
[0004] Based on this, it is necessary to provide a password recognition method, device, computer equipment, computer-readable storage medium and computer program product that can improve the security protection capability of passwords in response to the above technical problems.
[0005] In a first aspect, the present application provides a password identification method. The method comprises:
[0006] Generate a login reply instruction corresponding to the password login request according to the password login request sent by the target terminal, and return the login reply instruction to the target terminal;
[0007] Scanning a terminal page associated with the password input operation performed by the target terminal according to the login reply instruction to obtain key value information and key position images corresponding to the password input operation;
[0008] When it is detected that the key value information matches the key image, the target password information corresponding to the key value information is matched with the historical password information stored in the password database to obtain a password matching result of the target password information as the password recognition result of the password input operation performed by the target terminal.
[0009] In one embodiment, scanning a terminal page associated with a password input operation performed by the target terminal according to the login reply instruction to obtain key value information and key position images corresponding to the password input operation includes:
[0010] Scanning the terminal page associated with the password input operation to obtain the color information, scanning information and the key position image of the password input operation;
[0011] Performing least squares processing on the chromaticity information and the scanning information to obtain correction information of the password input operation;
[0012] The key value information of the password input operation is obtained according to the correction information, the chromaticity information and the scanning information.
[0013] In one embodiment, before detecting that the key value information matches the key image, the method further includes:
[0014] grayscale the key position image to obtain a grayscale image;
[0015] Comparing the grayscale image and the key value information to obtain a comparison result of the key value information;
[0016] When the comparison result satisfies the key position matching condition, it is confirmed that the key value information matches the key position image.
[0017] In one embodiment, before matching the target password information corresponding to the key value information with the historical password information stored in the password database to obtain the password matching result of the target password information, the method further includes:
[0018] Receiving an initial cryptographic function sent by the target terminal;
[0019] Filtering the initial cryptographic function to obtain a target cryptographic function;
[0020] According to the target cryptographic function, the initial password corresponding to the key value information is decrypted to obtain the target cryptographic information.
[0021] In one embodiment, generating a login reply instruction corresponding to the password login request according to the password login request sent by the target terminal, and returning the login reply instruction to the target terminal includes:
[0022] Receiving the password login request sent by the target terminal;
[0023] Performing a logic test on the password login request to obtain a logic test result of the password login request;
[0024] Based on the logic detection result, the corresponding login reply instruction is generated.
[0025] In one embodiment, the login reply instruction includes a login approval instruction and a login rejection instruction;
[0026] Generating the corresponding login reply instruction according to the logic detection result includes:
[0027] If the logic detection result is that the logic detection is passed, generating the login consent instruction; the login consent instruction is used for the target terminal to perform a password input operation according to the login consent instruction;
[0028] When the logic detection result is that the logic detection fails, the login rejection instruction is generated.
[0029] In a second aspect, the present application also provides a password recognition device. The device comprises:
[0030] A request reply module, configured to generate a login reply instruction corresponding to the password login request according to the password login request sent by the target terminal, and return the login reply instruction to the target terminal;
[0031] A key value acquisition module, used to scan and process a terminal page associated with the password input operation performed by the target terminal according to the login reply instruction, and obtain key value information and key position images corresponding to the password input operation;
[0032] The password matching module is used to match the target password information corresponding to the key value information with the historical password information stored in the password database when it is detected that the key value information matches the key position image, and obtain the password matching result of the target password information as the password recognition result of the password input operation performed by the target terminal.
[0033] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0034] When it is detected that the password login request sent by the target terminal meets the login condition, a login reply instruction is generated and returned to the target terminal;
[0035] Scanning a terminal page associated with the password input operation performed by the target terminal according to the login reply instruction to obtain key value information and key position images corresponding to the password input operation;
[0036] When it is detected that the key value information matches the key image, the target password information corresponding to the key value information is matched with the historical password information stored in the password database to obtain a password matching result of the target password information as the password recognition result of the password input operation performed by the target terminal.
[0037] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0038] When it is detected that the password login request sent by the target terminal meets the login condition, a login reply instruction is generated and returned to the target terminal;
[0039] Scanning a terminal page associated with the password input operation performed by the target terminal according to the login reply instruction to obtain key value information and key position images corresponding to the password input operation;
[0040] When it is detected that the key value information matches the key image, the target password information corresponding to the key value information is matched with the historical password information stored in the password database to obtain a password matching result of the target password information as the password recognition result of the password input operation performed by the target terminal.
[0041] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0042] When it is detected that the password login request sent by the target terminal meets the login condition, a login reply instruction is generated and returned to the target terminal;
[0043] Scanning a terminal page associated with the password input operation performed by the target terminal according to the login reply instruction to obtain key value information and key position images corresponding to the password input operation;
[0044] When it is detected that the key value information matches the key image, the target password information corresponding to the key value information is matched with the historical password information stored in the password database to obtain a password matching result of the target password information as the password recognition result of the password input operation performed by the target terminal.
[0045] The above-mentioned password identification method, device, computer equipment, storage medium and computer program product generate a login reply instruction corresponding to the password login request according to the password login request sent by the target terminal, and return the login reply instruction to the target terminal; scan and process the terminal page associated with the password input operation performed by the target terminal according to the login reply instruction to obtain the key value information and key position image corresponding to the password input operation; when it is detected that the key value information matches the key position image, match the target password information corresponding to the key value information with the historical password information stored in the password database to obtain the password matching result of the target password information as the password identification result of the password input operation performed by the target terminal. By adopting this method, the target password information to be identified is obtained by obtaining the key value information and key position image corresponding to the password input operation performed by the target terminal, without the target terminal directly transmitting the target password information, thereby avoiding the target password information from being easily stolen and identified, improving the security protection capability of the password, and thus improving the security of the password identification process. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 A diagram showing an application environment of a password identification method in an embodiment;
[0047] Figure 2 A schematic diagram of a password identification method in one embodiment;
[0048] Figure 3 A schematic diagram of a process for obtaining target password information in one embodiment;
[0049] Figure 4 A flowchart of a password identification method in another embodiment;
[0050] Figure 5 is a structural block diagram of a password recognition device in one embodiment;
[0051] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0053] The password identification method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. Among them, the target terminal 101 communicates with the server 102 through the network. The target terminal 101 can be, but not limited to, a terminal used by users such as staff and experts in the power field. The server 102 can be a server equipped with a power monitoring system. The data storage system can store data that the server 102 needs to process. The data storage system can be integrated on the server 102, or it can be placed on the cloud or other network servers. The server 102 generates a login reply instruction corresponding to the password login request according to the password login request sent by the target terminal 101, and returns the login reply instruction to the target terminal 101; the terminal page associated with the password input operation performed by the target terminal according to the login reply instruction is scanned and processed to obtain the key value information and key position image corresponding to the password input operation; when the key value information and the key position image are detected to match, the target password information corresponding to the key value information is matched with the historical password information stored in the password database to obtain the password matching result of the target password information, as the password recognition result of the password input operation performed by the target terminal 101. Among them, the target terminal 101 can be, but not limited to, various personal computers, laptops, smart phones, tablet computers, etc. with keys. The server 102 can be implemented by an independent server or a server cluster composed of multiple servers. The key device can be a virtual keyboard displayed on the target terminal (for example, an input keyboard displayed on a mobile phone screen).
[0054] In one embodiment, Figure 2 As shown, a password identification method is provided, which is applied to Figure 1 The server equipped with a power monitoring system is used as an example to illustrate the process, including the following steps:
[0055] Step S201, based on the password login request sent by the target terminal, a login reply instruction corresponding to the password login request is generated, and the login reply instruction is returned to the target terminal.
[0056] The password login request refers to the request information from the target terminal requesting to log into the power monitoring system.
[0057] The login reply instruction refers to reply information used to indicate whether the target terminal can log in to the power monitoring system. The power monitoring system refers to a system in the power field that monitors, processes, and maintains power-related services.
[0058] Specifically, when a user needs to log in to the power monitoring system, he can access it through the target terminal. The target terminal responds to the user's login operation, generates a password login request and sends it to the server. The server receives the password login request, and determines the rationality of the password login request by performing a logical test on the password login request, and then generates a login reply instruction corresponding to the password login request according to the logical test result, and returns the login reply instruction to the target terminal.
[0059] Step S202, scanning and processing the terminal page associated with the password input operation performed by the target terminal according to the login reply instruction, and obtaining key value information and key position images corresponding to the password input operation.
[0060] The terminal page refers to the page displayed on the target terminal for performing the password input operation.
[0061] The key value information refers to the information that triggers the key press when entering the password.
[0062] The key position image refers to an image representing a key input mode. For example, the key position image may be an image showing a complete key position, wherein the triggered key is also highlighted on the image.
[0063] Specifically, the target terminal receives a login reply instruction. When the login reply instruction is to allow login, the target terminal performs a related login operation. For example, the related login operation may be a way of clicking on a virtual keyboard on a terminal page to trigger a password input operation. At this time, the terminal responds to the password input operation and captures relevant information of the terminal page (for example, the order of the keys clicked and the page display information) and sends it to the server. The server scans and processes the relevant information of the terminal page to obtain the key value information corresponding to the password input operation and the key image of the key triggered by the password input operation.
[0064] Step S203, when it is detected that the key value information matches the key position image, the target password information corresponding to the key value information is matched with the historical password information stored in the password database to obtain a password matching result of the target password information as the password recognition result of the password input operation performed by the target terminal.
[0065] The password matching result refers to data indicating whether there is a matching relationship between the target password information and the historical password information.
[0066] The historical password information refers to the password used by each terminal to register a login account for the power monitoring system.
[0067] The password database refers to a database for storing passwords of login accounts of the power monitoring system. The password database stores a plurality of historical password information.
[0068] Specifically, the server compares the key value information with the key position image. When the comparison shows that the key value information matches the key position image, the server confirms that the key value information is valid, and then stores the key value information in the memory system. The server then obtains the target password information corresponding to the key value information, matches the target password information with multiple historical password information stored in the password database to detect whether there is historical password information matching the target password information in the password database, and obtains a password matching result. If the password matching result is a successful match, access permission information is generated and sent to the target terminal for display, so that the user can access the power monitoring system through the target terminal after viewing the access permission information. If the password matching result is a failed match, access denial information is generated and sent to the target terminal for display.
[0069] In the above password recognition method, according to the password login request sent by the target terminal, a login reply instruction corresponding to the password login request is generated, and the login reply instruction is returned to the target terminal; the terminal page associated with the password input operation performed by the target terminal according to the login reply instruction is scanned and processed to obtain the key value information and key position image corresponding to the password input operation; when it is detected that the key value information matches the key position image, the target password information corresponding to the key value information is matched with the historical password information stored in the password database to obtain the password matching result of the target password information as the password recognition result of the password input operation performed by the target terminal. With this method, the target password information is obtained by obtaining the key value information and key position image corresponding to the password input operation performed by the target terminal, without the target terminal directly transmitting the target password information, thereby avoiding the target password information from being easily stolen and recognized, improving the security protection capability of the password, and thus improving the security of the password recognition process.
[0070] In one embodiment, the above step S202 scans and processes the terminal page associated with the password input operation performed by the target terminal according to the login reply instruction to obtain the key value information and key position image corresponding to the password input operation, which specifically includes the following contents: scanning and processing the terminal page associated with the password input operation to obtain the chromaticity information, scanning information and key position image of the password input operation; performing least squares processing on the chromaticity information and scanning information to obtain correction information of the password input operation; obtaining the key value information of the password input operation based on the correction information, chromaticity information and scanning information.
[0071] The scanning information refers to the data obtained by scanning the terminal page.
[0072] The chromaticity information refers to the hue and saturation of the color of the key image.
[0073] The correction information refers to data used to correct the scan information, and the correction information may be data in a matrix form.
[0074] Specifically, when the server receives the access permission instruction for the terminal page associated with the password input operation, it scans the terminal page to obtain multiple unit scanning values, which can be marked as ci, where ci = [ri gi bi] T , 1≤i≤Mq, and then the set of unit scan values is obtained as a matrix Cs of Mq×3, and the matrix Cs is used as the scan information, where the matrix Cs=[c1…cMq] T . You can also mark the unit chromaticity as ti, where ti = [Li aibi] T , 1≤i≤Mq, and then the set of unit chromaticity is obtained as the matrix Ts of Mq×3, and the matrix Ts is used as the chromaticity information, where the matrix Ts=[t1…tMq] T .
[0075] Perform matrix operations on the unit scan value ci to obtain the target unit scan value ci′; the target unit scan value can be expressed by the following formula:
[0076] ci′=[1 ri gi bi ri gi bi gi bi ri 2 gi 2 bi 2 ] T
[0077] Then the target scanning information Cs′ can be obtained based on the target unit scanning value, and the target scanning information can be expressed by the following formula:
[0078] Cs′=[c1′…cMq′] T
[0079] The chromaticity information and the target scanning information are processed by the least square method to obtain the correction information of the password input operation; the initial key value information of the password input operation is determined according to the chromaticity information, the key position image and the scanning information; the initial key position information is corrected according to the correction information to obtain the key value information of the password input operation. The correction information M can be obtained by the following method:
[0080] M=(Cs′ T Cs′) -1 Cs′ T Ts
[0081] Furthermore, a correction function may be obtained through the correction information to assist the correction information in correcting the initial key position information; wherein the correction function Fscan may be obtained in the following manner:
[0082] Fscan = ci′(Cs′ T Cs′) -1 Cs′ T Ts
[0083] In this embodiment, the terminal page associated with the password input operation is scanned to obtain chromaticity information, scanning information and key position image of the password input operation; the chromaticity information and scanning information are processed by least squares method to obtain correction information of the password input operation; based on the correction information, chromaticity information and scanning information, the key value information of the password input operation is obtained, thereby achieving reasonable acquisition of key value information and key position image corresponding to the password input operation performed by the target terminal.
[0084] In one embodiment, before detecting that the key value information matches the key position image, it also includes: graying the key position image to obtain a grayed image; comparing the grayed image and the key value information to obtain a comparison result of the key value information; and when the comparison result meets the key position matching condition, confirming that the key value information matches the key position image.
[0085] The grayscale image refers to an image obtained after the key position image is grayscaled.
[0086] The key position matching condition refers to a condition for determining whether the key value information is valid. For example, the key position matching condition can be set to a comparison result higher than a preset matching degree threshold.
[0087] After the server obtains the key value information and the key image in the above step S202, the validity of the key value information obtained can be confirmed again. Specifically, since the three-channel information of the color image is relatively large and the calculation is complicated, in order to avoid the key information obtained by calculating the chromaticity value in the above embodiment being incorrect, the server can grayscale the key image. For example, the server can convert the key image into a grayscale image through the grayscale instruction "cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)" in OpenCV. It should be noted that, compared with the original key image, since the channel data of the grayscale image can highlight the target area more, the grayscale image can more clearly reflect the key information. Therefore, the server compares the grayscale image with the key value information to obtain the comparison result of the key value information; the server can set the bit matching condition so that the comparison result is higher than the preset matching degree threshold. When the matching degree between the grayscale image and the key value information is higher than the preset matching degree threshold, it is confirmed that the key value information matches the key image; when the matching degree between the grayscale image and the key value information is lower than the preset matching degree threshold, it is confirmed that the key value information does not match the key image.
[0088] In this embodiment, the key image is grayed to obtain a grayed image; the grayed image and the key value information are compared to obtain a comparison result of the key value information; when the comparison result satisfies the key matching condition, the key value information is confirmed to match the key image, that is, before verifying the target password information corresponding to the key value information, the key value information is verified by comparing the grayed image and the key value information, which can avoid incorrect key value information processing, improve the accuracy of the key value information, and thus improve the accuracy and reliability of the target password information corresponding to the key value information.
[0089] In one embodiment, Figure 3 As shown, before matching the target password information corresponding to the key value information with the historical password information stored in the password database to obtain the password matching result of the target password information, the step of obtaining the target password information is also included, which specifically includes the following contents:
[0090] Step S301, receiving an initial cryptographic function sent by a target terminal.
[0091] The initial cryptographic function refers to the original cryptographic algorithm sent by the target terminal, and the initial cryptographic function is constructed by multiple sub-cryptographic functions. For example, the initial cryptographic function can be constructed by two layers of sub-cryptographic functions. The cryptographic algorithm refers to the function used for encryption and decryption.
[0092] Step S302, filtering the initial cryptographic function to obtain a target cryptographic function.
[0093] Step S303: decrypt the initial password corresponding to the key value information according to the target password function to obtain the target password information.
[0094] The target cryptographic function refers to a cryptographic function containing constants.
[0095] The initial password refers to the encryption password input by the target terminal. It is best if the encryption password is in a constant form.
[0096] The target password information refers to the real password used by the target terminal to log into the power monitoring system.
[0097] Before matching the target password information corresponding to the key value information with the historical password information stored in the password database in the above step S203, it is necessary to first obtain the target password information corresponding to the key value information. Specifically, the target terminal sends an initial password function to the server, and the server receives the initial password function. Then the server filters the initial password function. For example, the server first obtains the operation instruction frequency of each sub-password function in the initial password function, and respectively detects whether the operation instruction frequency of each sub-password function meets the preset instruction frequency condition; when it is detected that the operation instruction frequency of the sub-password function does not meet the preset instruction frequency condition, it is confirmed that the sub-password function is invalid and the sub-password function is filtered. When it is detected that the operation instruction frequency of the sub-password function meets the preset instruction frequency condition, the immediate number in the operation instruction of the sub-password function is matched with the immediate number in the password database to obtain the function matching result of the sub-password function; wherein, since the immediate number is obtained by cyclically shifting the constant right by an even number of bits, the method can detect whether the sub-password function contains a constant. When the function matching result of the sub-cryptographic function is detected as a successful match, that is, the sub-cryptographic function contains a constant, the sub-cryptographic function is confirmed to be valid and stored in the cache. When the function matching result of the sub-cryptographic function is detected as a failed match, the proportion of arithmetic operations and logical operations in the sub-cryptographic function is calculated, and when the proportion is greater than a preset proportion threshold, the sub-cryptographic function is confirmed to be valid and stored in the cache. When the proportion is greater than a preset proportion threshold, the sub-cryptographic function is confirmed to be invalid and the sub-cryptographic function is filtered. All valid sub-cryptographic functions in the cache are collectively used as the target cryptographic function.
[0098] In practical applications, a sub-cryptographic function may also have a corresponding parent cryptographic function. The server may first detect the inner and outer sub-cryptographic functions. If the sub-cryptographic function is confirmed to be valid, there is no need to detect its parent cryptographic function; if the sub-cryptographic function is confirmed to be invalid, its parent cryptographic function is detected. This embodiment filters out most of the functions in the initial cryptographic function by filtering the initial cryptographic function to screen out the target cryptographic function containing constants (such as MD5, SHA1, etc.).
[0099] Furthermore, the server obtains the initial password corresponding to the key value information, decrypts the initial password through the target password function, and obtains the target password information. For example, when the target terminal performs a password input operation, the encrypted login password is input (the encrypted login password is a constant) to prevent the password from being stolen and tampered during the transmission process, and then the initial password function is transmitted separately, and the encrypted login password is decrypted using the target password function containing the constant in the initial password function, and finally the real target password information is obtained.
[0100] In this embodiment, by receiving the initial password function sent by the target terminal, the initial password function and the key value information are transmitted separately to reduce the probability of both the key value information and the initial password function being stolen. Even if any one of the key value information and the initial password function is stolen, it cannot be cracked if the other data cannot be obtained, thereby improving the security of the password recognition process; the initial password function is filtered to obtain the target password function; according to the target password function, the initial password corresponding to the key value information is decrypted to obtain the target password information, and the initial password function is constructed by multiple sub-password functions, which can prevent the initial password from being easily decrypted when the initial password function is leaked. The target password function must be accurately filtered out from the initial password function to achieve accurate decryption of the target password information, thereby greatly improving the security of the password recognition process.
[0101] In one embodiment, the above step S201 generates a login reply instruction corresponding to the password login request based on the password login request sent by the target terminal, and specifically includes the following contents: performing a logical test on the password login request to obtain a logical test result of the password login request; and generating a corresponding login reply instruction based on the logical test result.
[0102] Among them, the login reply instruction refers to an instruction to reply to the password login request.
[0103] Specifically, the server receives a password login request sent by the target terminal, obtains a preset logic detection instruction from the database, determines the rationality of the password login request through the logic detection instruction, and then generates a login reply instruction corresponding to the password login request based on the logic detection result, and returns the login reply instruction to the target terminal.
[0104] For example, after the target terminal is infected by a network virus, the virus agent sends password login requests for the power monitoring system to the server multiple times. The server can use logical detection instructions to detect that there are abnormalities in the multiple request behaviors of the target terminal, that is, it can be judged that its password login requests are unreasonable, thereby preventing data in the power monitoring system from being stolen or tampered with.
[0105] In this embodiment, a logical detection result of the password login request is obtained by performing a logical detection on the password login request; based on the logical detection result, a corresponding login reply instruction is generated, which can detect whether the password login request sent by the target terminal is reasonable, thereby avoiding the target terminal from making an abnormal login to the power monitoring system, thereby improving the data security of the power monitoring system.
[0106] In one embodiment, the login reply instruction includes a login approval instruction and a login rejection instruction; according to the logic detection result, a corresponding login reply instruction is generated, specifically including the following contents: when the logic detection result is that the logic detection passes, a login approval instruction is generated; the login approval instruction is used for the target terminal to perform a password input operation according to the login approval instruction; when the logic detection result is that the logic detection fails, a login rejection instruction is generated.
[0107] Among them, the login consent instruction refers to an instruction that allows the target terminal to log in to the power monitoring system.
[0108] Among them, the login rejection instruction refers to an instruction to reject the target terminal from logging into the power monitoring system.
[0109] Specifically, when the server detects that the logic of the password login request is unreasonable, the server obtains the result of the logic detection as the logic detection fails, generates a login rejection instruction as the login reply instruction, and returns the login rejection instruction to the target terminal. When the server detects that the logic of the password login request is reasonable, the server obtains the result of the logic detection as the logic detection passes, generates a login approval instruction as the login reply instruction, and returns the login approval instruction to the target terminal. After receiving the login approval instruction and confirming that it is allowed to log in, the target terminal performs the password input operation.
[0110] In this embodiment, when the result of the logic detection is that the logic detection passes, a login approval instruction is generated as a login reply instruction and sent to the target terminal, so that the target terminal performs a password input operation according to the login reply instruction; when the result of the logic detection is that the logic detection fails, a login rejection instruction is generated as a login reply instruction and sent to the target terminal, thereby realizing the logic detection of the password login request sent by the target terminal, avoiding the target terminal from making abnormal logins to the power monitoring system, thereby improving the data security of the power monitoring system.
[0111] In one embodiment, Figure 4 As shown, another password identification method is provided, which is applied to Figure 1 The server in the example is used to illustrate the following steps:
[0112] Step S401, perform logic detection on the password login request to obtain the logic detection result of the password login request; generate a corresponding login reply instruction according to the logic detection result, and return the login reply instruction to the target terminal.
[0113] Step S402, scanning the terminal page associated with the password input operation to obtain color information, scanning information and key position images of the password input operation.
[0114] Step S403: perform least squares processing on the chromaticity information and the scanning information to obtain correction information for the password input operation.
[0115] Step S404, obtaining key value information for password input operation according to the calibration information, chromaticity information and scanning information.
[0116] Step S405, graying the key position image to obtain a grayed image; and comparing the grayed image with the key value information to obtain a comparison result of the key value information.
[0117] Step S406: When the comparison result satisfies the key position matching condition, confirm that the key value information matches the key position image.
[0118] Step S407: When it is detected that the key value information matches the key image, an initial cryptographic function sent by the target terminal is received.
[0119] Step S408, filtering the initial cryptographic function to obtain a target cryptographic function; decrypting the initial cryptographic key corresponding to the key value information according to the target cryptographic function to obtain target cryptographic information.
[0120] Step S409, matching the target password information corresponding to the key value information with the historical password information stored in the password database to obtain a password matching result of the target password information as a password recognition result of the password input operation performed by the target terminal.
[0121] The above password recognition method can achieve the following beneficial effects:
[0122] (1) The target password information is obtained by acquiring the key value information and key position image corresponding to the password input operation performed by the target terminal, without the target terminal directly transmitting the target password information, thereby preventing the target password information from being easily stolen and identified, improving the security protection capability of the password, and thus improving the security of the password identification process;
[0123] (2) The initial cryptographic function and key information are transmitted separately to reduce the probability of both the key information and the initial cryptographic function being stolen. Even if either the key information or the initial cryptographic function is stolen, it cannot be cracked without obtaining the other data, further improving the security of the password recognition process.
[0124] (3) By performing logical detection on the password login request, it is possible to detect whether the password login request sent by the target terminal is reasonable, thereby preventing the target terminal from making abnormal logins to the power monitoring system, thereby improving the data security of the power monitoring system.
[0125] In order to more clearly illustrate the password identification method provided by the embodiment of the present disclosure, the above password identification method is specifically described below with a specific embodiment. Another password identification method is provided, which specifically includes the following contents:
[0126] (1) A user sends a password login request to a control center in the power monitoring system through a target terminal to a server equipped with the power monitoring system.
[0127] (2) The power monitoring system (or a server equipped with the power monitoring system) receives a password login request sent by the target terminal.
[0128] (3) The power monitoring system performs a logical check on the password login request and generates a corresponding login reply instruction and returns it to the target terminal. When the login reply instruction is a login approval instruction, step (4) is executed; when the login reply instruction is a login rejection instruction, steps (1) to (3) are repeated.
[0129] (4) When the target terminal receives the login consent instruction, the user performs a password input operation through the target terminal, that is, inputs the encrypted password of the control center in the power monitoring system.
[0130] (5) The power monitoring system scans and processes the terminal page of the target terminal to obtain the key value information and key position image corresponding to the password input operation.
[0131] (6) The power monitoring system control center compares the key value information with the key position image, and when the comparison shows that the key value information matches the key position image, confirms that the key value information is valid.
[0132] (7) The key-value data and the target password information corresponding to the key-value data are stored in the memory system of the control center in the power monitoring system.
[0133] (8) The power monitoring system matches the target password information with multiple historical password information stored in the password database.
[0134] (9) If the password matching result is successful, the access permission information is generated and sent to the target terminal to complete the password identification process. The target terminal displays the access permission information on the screen so that the user can view the access permission information and access the power monitoring system through the target terminal.
[0135] In this embodiment, the target password information is obtained by acquiring the key value information and key position image corresponding to the password input operation performed by the target terminal, without the need for the target terminal to directly transmit the target password information, thereby avoiding the target password information from being easily stolen and identified, improving the security protection capability of the password, and thus improving the security of the password identification process, providing effective protection for the overall operation of large-scale power monitoring systems, with strong practicality and a wide range of applications.
[0136] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0137] Based on the same inventive concept, the embodiment of the present application also provides a password recognition device for implementing the password recognition method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more password recognition device embodiments provided below can refer to the limitations on the password recognition method above, and will not be repeated here.
[0138] In one embodiment, Figure 5 As shown, a password identification device 500 is provided, comprising: a request reply module 501, a key value collection module 502 and a password matching module 503, wherein:
[0139] The request reply module 501 is used to generate a login reply instruction corresponding to the password login request according to the password login request sent by the target terminal, and return the login reply instruction to the target terminal.
[0140] The key value collection module 502 is used to scan and process the terminal page associated with the password input operation performed by the target terminal according to the login reply instruction, and obtain the key value information and key position image corresponding to the password input operation.
[0141] The password matching module 503 is used to match the target password information corresponding to the key value information with the historical password information stored in the password database when it is detected that the key value information matches the key position image, and obtain the password matching result of the target password information as the password recognition result of the password input operation performed by the target terminal.
[0142] In one embodiment, the key value acquisition module 502 is also used to scan the terminal page associated with the password input operation to obtain the chromaticity information, scanning information and key position image of the password input operation; perform least squares processing on the chromaticity information and scanning information to obtain correction information of the password input operation; and obtain the key value information of the password input operation based on the correction information, chromaticity information and scanning information.
[0143] In one embodiment, the password recognition device 500 also includes a key position comparison module, which is used to grayscale the key position image to obtain a grayscale image; compare the grayscale image and the key value information to obtain a comparison result of the key value information; when the comparison result meets the key position matching condition, confirm that the key value information matches the key position image.
[0144] In one embodiment, the password identification device 500 also includes a password acquisition module for receiving an initial password function sent by a target terminal; filtering the initial password function to obtain a target password function; and decrypting the initial password corresponding to the key value information according to the target password function to obtain target password information.
[0145] In one embodiment, the request reply module 501 is also used to perform a logic test on the password login request to obtain a logic test result of the password login request; and generate a corresponding login reply instruction according to the logic test result.
[0146] In one embodiment, the login reply instruction includes a login approval instruction and a login rejection instruction; the password recognition device 500 also includes a logic detection module, which is used to generate a login approval instruction when the logic detection result is a logic detection pass; the login approval instruction is used for the target terminal to perform a password input operation according to the login approval instruction; when the logic detection result is a logic detection fail, a login rejection instruction is generated.
[0147] Each module in the above-mentioned password recognition device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.
[0148] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as key value information, key position images and target password information. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a password recognition method is implemented.
[0149] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0150] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0151] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0152] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0153] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0154] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0155] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0156] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A password identification method, characterized in that: The method comprises: Generate a login reply instruction corresponding to the password login request according to the password login request sent by the target terminal, and return the login reply instruction to the target terminal; Scanning the terminal page associated with the password input operation to obtain the color information, scanning information and the key position image of the password input operation; Performing least squares processing on the chromaticity information and the scanning information to obtain correction information for the password input operation; Obtaining key value information of the password input operation according to the correction information, the chromaticity information and the scanning information; When it is detected that the key value information matches the key image, the target password information corresponding to the key value information is matched with the historical password information stored in the password database to obtain a password matching result of the target password information as the password recognition result of the password input operation performed by the target terminal.
2. The method according to claim 1, characterized in that The scanning information is obtained in the following manner: Scanning a terminal page associated with the password input operation to obtain a plurality of unit scan values; The plurality of unit scanning values are converted into a matrix to obtain the scanning information.
3. The method according to claim 1, characterized in that Before detecting that the key value information matches the key position image, the method further includes: grayscale the key position image to obtain a grayscale image; Comparing the grayscale image and the key value information to obtain a comparison result of the key value information; When the comparison result satisfies the key position matching condition, it is confirmed that the key value information matches the key position image.
4. The method according to claim 1, characterized in that: Before matching the target password information corresponding to the key value information with the historical password information stored in the password database to obtain the password matching result of the target password information, the method further includes: Receiving an initial cryptographic function sent by the target terminal; Filtering the initial cryptographic function to obtain a target cryptographic function; According to the target cryptographic function, the initial password corresponding to the key value information is decrypted to obtain the target cryptographic information.
5. The method according to claim 1, characterized in that The step of generating a login reply instruction corresponding to the password login request according to the password login request sent by the target terminal includes: Performing a logic test on the password login request to obtain a logic test result of the password login request; Based on the logic detection result, the corresponding login reply instruction is generated.
6. The method according to claim 5, characterized in that The login reply instruction includes a login approval instruction and a login rejection instruction; Generating the corresponding login reply instruction according to the logic detection result includes: If the logic detection result is that the logic detection is passed, generating the login consent instruction; the login consent instruction is used for the target terminal to perform a password input operation according to the login consent instruction; When the logic detection result is that the logic detection fails, the login rejection instruction is generated.
7. A password recognition device, characterized in that: The device comprises: A request reply module, configured to generate a login reply instruction corresponding to the password login request according to the password login request sent by the target terminal, and return the login reply instruction to the target terminal; A key value acquisition module is used to scan the terminal page associated with the password input operation to obtain the chromaticity information, scanning information and the key position image of the password input operation; perform least squares processing on the chromaticity information and the scanning information to obtain correction information of the password input operation; and obtain the key value information of the password input operation according to the correction information, the chromaticity information and the scanning information; The password matching module is used to match the target password information corresponding to the key value information with the historical password information stored in the password database when it is detected that the key value information matches the key position image, and obtain the password matching result of the target password information as the password recognition result of the password input operation performed by the target terminal.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
System and method for web-based security authentication
CN103548299A
File encryption method and device and computer storage medium
CN108563959A
Cited By
Computer password protection method
CN120180405A
