Password input protection method, user terminal, server, system and medium

CN114756854BActive Publication Date: 2026-09-15CHINA UNIONPAY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210396309.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-15
Publication Date
2026-09-15
Estimated Expiration
2042-04-15

AI Technical Summary

Technical Problem

[0003]但在用户终端获取用户输入的密码以及密码处理的过程中会存在密码的明文,用户终端被恶意攻击时,密码的明文会被恶意截取,导致密码泄露,降低了用户的密码的安全性

Benefits of technology

[0013] This application provides a password input protection method, user terminal, server, system, and medium. When password input is triggered, the user terminal displays a keyboard image. The user terminal can perform a query to determine the characters input into the password based on the position information of the password input on the keyboard image, thereby obtaining a set of password character representation information including information representing the characters. The user terminal sends this set of password character representation information to the server, which then uses the character correspondence including characters, keyboard image identifiers, and character position area information to reconstruct the password from the set of password character representation information. The data generated by the user's password input is password character representation information, which includes the keyboard image identifier and the position information of the password input; it is not the plaintext of the characters in the password. Plaintext passwords are not exposed during password input, password processing, and password transmission in the user terminal, preventing the plaintext password from being leaked from the user terminal, thus reducing the possibility of password leakage and improving the security of the user's password.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114756854B_ABST
    Figure CN114756854B_ABST
Patent Text Reader

Abstract

The application discloses a password input protection method, a user terminal, a server, a system and a medium, and belongs to the field of data processing. The method comprises the following steps: in the case of triggering password input, displaying a keyboard picture in a pre-stored keyboard picture group; according to the position information of each password input of a user on the keyboard picture, performing query determination operation to obtain a password character representative information set, the password character representative information set comprising at least one piece of password character representative information, each piece of password character representative information representing one character, and each piece of password character representative information comprising keyboard picture identification and position information of the password input; and sending the password character representative information set to a server, so that the server restores the password character representative information set to a password by using stored character corresponding relationship, and the character corresponding relationship comprises the corresponding relationship among a character, keyboard picture identification and character position area information. According to the embodiment of the application, the security of the password of the user can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of data processing, and particularly relates to a password input protection method, user terminal, server, system, and medium. Background Technology

[0002] With the development of electronic technology, mobile phones, tablets, and other user terminals have become increasingly important in users' lives. Users can access various services and functions through different applications on these terminals. To ensure the security of user data and other resources, users need to set passwords for their personal accounts or specific functions. When logging into their accounts or performing specific functions, users need to operate the keyboard controls displayed on the user terminal and enter their passwords.

[0003] However, during the process of obtaining and processing the user's input password on the user terminal, the password may be in plaintext. If the user terminal is maliciously attacked, the plaintext password may be intercepted, leading to password leakage and reducing the security of the user's password. Summary of the Invention

[0004] This application provides a password input protection method, user terminal, server, system, and medium, which can improve the security of users' passwords.

[0005] In a first aspect, embodiments of this application provide a password input protection method applied to a user terminal. The method includes: displaying a keyboard image from a pre-stored keyboard image group when password input is triggered; performing a query and determination operation based on the position information of each password input by the user on the keyboard image to obtain a set of password character representative information, the set of password character representative information including at least one password character representative information, each password character representative information representing a character, and each password character representative information including a keyboard image identifier and password input position information; sending the set of password character representative information to a server so that the server can use a stored character correspondence to restore the set of password character representative information into a password, the character correspondence including a correspondence between characters, keyboard image identifiers, and character position area information.

[0006] Secondly, embodiments of this application provide a password input protection method applied to a server. The method includes: receiving a set of password character representation information sent by a user terminal. The set of password character representation information is obtained by the user terminal through a query operation based on the position information of the keyboard image displayed in the keyboard image group for each password input by the user. The set of password character representation information includes at least one set of password character representation information, each set of password character representation information representing one character, and each set of password character representation information including a keyboard image identifier and password input position information; and restoring the set of password character representation information into a password using a stored character correspondence relationship, the character correspondence relationship including the correspondence relationship between characters, keyboard image identifiers, and character position area information.

[0007] Thirdly, embodiments of this application provide a user terminal, including: a display module, configured to display a keyboard image from a pre-stored keyboard image group when a password input is triggered; a processing module, configured to perform a query and determination operation based on the position information of each password input by the user on the keyboard image to obtain a set of password character representative information, the set of password character representative information including at least one password character representative information, each password character representative information representing a character, and each password character representative information including a keyboard image identifier and password input position information; and a sending module, configured to send the set of password character representative information to a server so that the server can use a stored character correspondence to restore the set of password character representative information into a password, the character correspondence including a correspondence between characters, keyboard image identifiers, and character position area information.

[0008] Fourthly, embodiments of this application provide a server, comprising: a receiving module, for receiving a set of password character representation information sent by a user terminal, the set of password character representation information being obtained by the user terminal through a query operation based on the position information of the keyboard image displayed in the keyboard image group for each password input by the user, the set of password character representation information including at least one set of password character representation information, each set of password character representation information representing one character, and each set of password character representation information including a keyboard image identifier and the position information of the password input; and a password restoration module, for restoring the set of password character representation information into a password using a stored character correspondence relationship, the character correspondence relationship including the correspondence relationship between characters, keyboard image identifiers, and character position area information.

[0009] Fifthly, embodiments of this application provide a user terminal, including: a processor and a memory storing computer program instructions; the processor implements the password input protection method of the first aspect when executing the computer program instructions.

[0010] In a sixth aspect, embodiments of this application provide a server, including: a processor and a memory storing computer program instructions; the processor implements the password input protection method of the second aspect when executing the computer program instructions.

[0011] In a seventh aspect, embodiments of this application provide a password input protection system, including a user terminal as described in the fifth aspect and a server as described in the sixth aspect.

[0012] Eighthly, embodiments of this application provide a computer-readable storage medium storing computer program instructions, which, when executed by a processor, implement the password input protection method of the first aspect or the password input protection method of the second aspect.

[0013] This application provides a password input protection method, user terminal, server, system, and medium. When password input is triggered, the user terminal displays a keyboard image. The user terminal can perform a query to determine the characters input into the password based on the position information of the password input on the keyboard image, thereby obtaining a set of password character representation information including information representing the characters. The user terminal sends this set of password character representation information to the server, which then uses the character correspondence including characters, keyboard image identifiers, and character position area information to reconstruct the password from the set of password character representation information. The data generated by the user's password input is password character representation information, which includes the keyboard image identifier and the position information of the password input; it is not the plaintext of the characters in the password. Plaintext passwords are not exposed during password input, password processing, and password transmission in the user terminal, preventing the plaintext password from being leaked from the user terminal, thus reducing the possibility of password leakage and improving the security of the user's password. Attached Figure Description

[0014] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0015] Figure 1 A schematic diagram of an example architecture of a system for applying the password input protection method provided in an embodiment of this application;

[0016] Figure 2 A flowchart illustrating an embodiment of the password input protection method provided in the first aspect of this application;

[0017] Figure 3 This is a schematic diagram illustrating an example of a keyboard image in an embodiment of this application;

[0018] Figure 4A flowchart of another embodiment of the password input protection method provided in this application;

[0019] Figure 5 A flowchart of yet another embodiment of the password input protection method provided in this application;

[0020] Figure 6 A schematic diagram illustrating an example of a keyboard image and keyboard display area that do not match the dimensions provided in this application embodiment;

[0021] Figure 7 A flowchart of an embodiment of the password input protection method provided in the second aspect of this application;

[0022] Figure 8 A flowchart of another embodiment of the password input protection method provided in the second aspect of this application;

[0023] Figure 9 A schematic diagram of the structure of an embodiment of the user terminal provided in the third aspect of this application;

[0024] Figure 10 A schematic diagram of the structure of an embodiment of the server provided in the fourth aspect of this application;

[0025] Figure 11 A schematic diagram of the structure of an embodiment of the user terminal provided in the fifth aspect of this application;

[0026] Figure 12 This is a schematic diagram of the structure of an embodiment of the server provided in the sixth aspect of this application. Detailed Implementation

[0027] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.

[0028] With the development of electronic technology, mobile phones, tablets, and other user terminals have become indispensable in users' lives. Users can access various services through applications on these terminals. To ensure the security of user data and other resources, users need to set passwords for their accounts or specific functions. When logging into an account or performing a function, the user terminal displays a keyboard control, which the user uses to input their password. The user terminal then receives the plaintext of the entered password. However, user terminals are relatively vulnerable to malicious attacks. If the user terminal's memory is maliciously observed or the plaintext password is intercepted by malicious programs, the user's password may be leaked, reducing password security.

[0029] This application provides a password input protection method, user terminal, server, system, and medium. The user terminal can display a keyboard image. Based on the position information of the user's password input on the keyboard image, password character representation information that can represent the characters is determined. The user terminal sends the password character representation information to the server, and the server reconstructs the plaintext password based on the password character representation information. This password character representation information is not the plaintext of the characters; that is, the plaintext password will not appear on the user terminal, preventing the plaintext password from being leaked from the user terminal, reducing the possibility of password leakage, and improving the security of the user's password.

[0030] The password input protection method provided in this application can involve user terminals and servers. Figure 1 This is a schematic diagram of an example architecture of a system providing an application password input protection method according to an embodiment of this application. Figure 1 As shown, the application password input protection system may include a user terminal 11 and a server 12. The user terminal 11 and the server 12 can communicate and interact.

[0031] User terminal 11 can be a terminal device with display capabilities, such as a mobile phone or tablet computer; the specific type of user terminal 11 is not limited here. In addition to an operating system, user terminal 11 can also have other applications installed. User terminal 11 can trigger password input when logging into an operating system account, logging into an application account, or performing certain specific functions such as payment functions using the application.

[0032] Server 12 may include the backend server of the operating system of user terminal 11 and the backend server of applications in user terminal 11, etc., and the number and specific type of servers 12 are not limited here. Server 12 interacts with user terminal 11 and can provide services to user terminal 11. When the password entered by the user on user terminal 11 is consistent with the user's standard password pre-stored in server 12, the server can implement the functions corresponding to the user's password, such as login function, payment function, etc., which are not limited here.

[0033] The password input protection method, user terminal, server, system, and media provided in this application will be described in turn below.

[0034] The first aspect of this application provides a password input protection method that can be applied to a user terminal, that is, the password input protection method can be executed by the user terminal. Figure 2 This is a schematic flowchart of an embodiment of the password input protection method provided in the first aspect of this application. Figure 2 As shown, the password input protection method may include steps S201 to S203.

[0035] In step S201, when a password input is triggered, the keyboard image in the pre-stored keyboard image group is displayed.

[0036] When a user terminal receives certain input from a user, it triggers password input to instruct the user to enter a password. The password can be a login password, payment password, verification password, etc., and there are no restrictions on the type of password or the conditions under which password input is triggered. For example, when the user terminal receives a user's account login request for an application, password input can be triggered when the cursor moves to the login password input box. Another example is when the user terminal receives user input for function execution, such as when the user clicks the payment function button, password input can be triggered.

[0037] A keyboard image group may include at least one keyboard image. The keyboard image is a layout diagram of the keyboard. For example, Figure 3 This is a schematic diagram illustrating an example of a keyboard image in an embodiment of this application. Figure 3 As shown, the keyboard image includes character keys and function keys. Payment keys may be included. Figure 3 The letter keys such as "A" and "B" in the middle 31 ( Figure 3 (Not all letter keys are labeled in the text), function keys may include Figure 3 The keyboard layout includes a Caps Lock key (32), a numeric keypad key (33), a keyboard type switch key (34), a voice input key (35), a space bar (36), a search key (37), and a back key (38). Since users may switch between different keyboards, a keyboard image group can include two or more keyboard images, each with different types of characters or corresponding to different keyboard layouts. For example, the first keyboard image in the group might be a keyboard with uppercase letters, the second with lowercase letters, and the third with numbers. Alternatively, the first keyboard image might be a 26-key layout, and the second with a 9-key layout.

[0038] In some embodiments, the user terminal may pre-download a keyboard image set from the server. For example, the user terminal may download the keyboard image set from the server when it first triggers password input. Or, for example, the user terminal may download the keyboard image set from the server when it is first put into use. In other embodiments, the keyboard image set may also be written to the user terminal before it leaves the factory.

[0039] In step S202, a query and determination operation is performed based on the position information of each password input by the user on the keyboard image to obtain a set of password character representation information.

[0040] A set of ciphertext representations includes at least one ciphertext representation. Each ciphertext representation represents a single character, but it is not the plaintext of that character. The set of ciphertext representations can represent a cipher, but it is not the plaintext of the cipher.

[0041] Each password character represents information including a keyboard image identifier and the password input position information. The keyboard image identifier identifies the keyboard image. Different keyboard images have different keyboard image identifiers. When a keyboard image group includes two or more keyboard images, the keyboard image identifiers can be used to distinguish between them. At a given moment, when the user terminal displays a keyboard image, the keyboard image identifier of the displayed keyboard image can be recorded simultaneously to determine which keyboard image the password input is performed on. The password input position information represents the location of the password input on the displayed keyboard image. A coordinate system can be established based on the displayed keyboard image, and the coordinates of the password input in the coordinate system can be used as the position information. In some examples, the position information may include pixel coordinates. For user terminals with touchscreens, the touch function of the user terminal can be used to obtain the position information.

[0042] The keyboard image may include character keys and function keys. Password input may be either character input or function input. Character input refers to inputting characters using the character keys, and function input refers to inputting functions using the function keys. To accurately obtain the password character representation information, a query confirmation operation is required. This operation determines whether the password input is character input. If it is determined to be character input, the password character representation information can be obtained. If it is determined to be function input, the password character representation information cannot be obtained.

[0043] In step S203, a set of password character representation information is sent to the server so that the server can use the stored character correspondence to restore the set of password character representation information into a password.

[0044] The character mapping includes the correspondence between characters, keyboard image identifiers, and character position area information. Password character representation information includes keyboard image identifiers and password input position information. Based on the keyboard image identifiers and password input position information in a single password character representation information entry, the server can find the corresponding characters in the character mapping. By combining the characters corresponding to each entry in the set of password character representation information found using the character mapping, the password can be obtained.

[0045] In this embodiment, when password input is triggered, the user terminal displays a keyboard image. The user terminal can perform a query and determination operation based on the position information of the password input on the keyboard image to determine the characters input in the password, thereby obtaining a set of password character representation information including password character representation information. The user terminal sends this set of password character representation information to the server, and the server restores the password from the set of password character representation information into a password based on the character correspondence including characters, keyboard image identifiers, and character position area information. The data generated by the user's password input is password character representation information, which includes keyboard image identifiers and password input position information, and is not the plaintext of the characters in the password. The plaintext of the password will not appear during password input, password processing, and password transmission in the user terminal, avoiding the leakage of the plaintext password from the user terminal, thereby reducing the possibility of password leakage and improving the security of the user's password.

[0046] In some embodiments, the user terminal may pre-store function mapping relationships and use these relationships to determine whether the password input is character input. Figure 4 A flowchart of another embodiment of the password input protection method provided in this application. Figure 4 and Figure 2 The difference is that, Figure 2 Step S202 can be further refined as follows: Figure 4 Steps S2021 to S2024 in the process.

[0047] In step S2021, the target keyboard image identifier and the position information of the password input on the keyboard image are obtained. Using the pre-stored function correspondence, it is determined whether the position information of the keyboard image corresponds to the keyboard function.

[0048] The target keyboard image identifier is the keyboard image identifier for the keyboard image to which the password input is applied. When the keyboard image group includes two or more keyboard images, the target keyboard image identifier can be obtained to distinguish the position of the password input on different keyboard images. This target keyboard image identifier is then used to differentiate the keyboard image to which the password input is applied.

[0049] The function mapping relationship may include the mapping relationship between keyboard functions, keyboard image identifiers, and function location area information. In some examples, the user terminal may download the function mapping relationship from the server before displaying the keyboard images in a pre-stored keyboard image group. For example, the function mapping relationship may be downloaded from the server when the user terminal first triggers password input. Another example is when the user terminal is first put into use. In other examples, the function mapping relationship may be written to the user terminal before it leaves the factory. In some embodiments, the user terminal may download the keyboard image group and function mapping relationship from the server before displaying the keyboard images in a pre-stored keyboard image group. In other embodiments, the user terminal may download the keyboard image group and function mapping relationship from the server sequentially; the order of downloading the keyboard image group and function mapping relationship is not limited here.

[0050] Keyboard functions include the functions of the function keys shown in the keyboard image, without limiting the types of function keys. In some examples, keyboard functions may include one or more of the following: character type switching function, keyboard type switching function, confirmation function, backspace function, clear function, and voice input function. The character type switching function is used to switch the type of characters, i.e., switch the keyboard image, such as switching from uppercase letters to lowercase letters, or from lowercase letters to uppercase letters, or from lowercase letters to special characters, etc., without limitation. The keyboard type switching function is used to switch the type of keyboard, i.e., switch the keyboard image, such as switching from a 26-key keyboard to a 9-key keyboard, or from a 9-key keyboard to a 26-key keyboard, without limitation. The confirmation function is for confirming the input of characters. The backspace function is for deleting the most recently entered character if the user makes a mistake. The clear function is for deleting all entered characters if the user makes a mistake. The voice input function is for invoking voice input.

[0051] Function location region information is used to characterize the area where function keys are located in a keyboard image. A coordinate system can be established based on the keyboard image, and the coordinate range of the area where the function keys are located can be used as the function location region information. In some examples, the function location region information may include a pixel coordinate region. For example, a keyboard image like... Figure 3 As shown, it is possible Figure 3 A coordinate system is established with the bottom left corner of the keyboard image as the origin. The coordinate range of the number switch key 33 in the coordinate system can be used as the function location area information corresponding to the number switch function.

[0052] In the functional correspondence framework, among the three elements—keyboard function, keyboard image identifier, and function location area information—the third element can be determined if any two elements are known. Given the target keyboard image identifier and the location information of the password input within the keyboard image, it can be determined whether the keyboard image's location information corresponds to a keyboard function. If the keyboard image's location information corresponds to a keyboard function, it means the password input falls within the area represented by the function location area information, and the password input is a functional input. If the keyboard image's location information does not correspond to a keyboard function, it means the password input does not fall within the area represented by the function location area information, and the password input is not a functional input; therefore, the password input can be identified as character input.

[0053] In some examples, the correspondence between the keyboard's position information and its function can be determined by checking whether the position of the password input on the keyboard image is located within the area represented by the function position area information corresponding to the target keyboard image identifier in the function correspondence relationship. Specifically, it can be checked whether the function correspondence relationship contains a first position area; if the function correspondence relationship contains a first position area, the keyboard image's position information is determined to correspond to the keyboard function; if the function correspondence relationship does not contain a first position area, the keyboard image's position information is determined not to correspond to the keyboard function.

[0054] The first position represents the location information of the password input on the keyboard image. The first position area includes the location area representing the functional location area information corresponding to the target keyboard image identifier. This location area represents the location of the function keys in the keyboard image corresponding to the target keyboard image identifier. If the keyboard image corresponding to the target keyboard image identifier includes multiple function keys, the number of location areas representing the functional location area information can be multiple. If a functional correspondence exists, including the first position area, it indicates that the password input location is within the location of the function keys in the keyboard image; that is, the password input is a function input, and the location information of the keyboard image corresponds to a keyboard function. If a functional correspondence does not exist, including the first position area, it indicates that the password input location is not within the location of the function keys in the keyboard image; that is, the password input is a character input, and the location information of the keyboard image does not correspond to a keyboard function.

[0055] In step S2022, if the position information of the keyboard image corresponds to the keyboard function, the keyboard function corresponding to the position information of the keyboard image is executed.

[0056] The location information of the keyboard image corresponds to the keyboard function, indicating that the password input is a function input and can execute the corresponding keyboard function, that is, execute the function key on the keyboard image corresponding to the password input. For example, if the keyboard function corresponding to the location information of the keyboard image is the character type switching function, then the user terminal executes the character type switching function to switch the current character type to another character type, that is, to switch the keyboard image displayed for the current character type to the keyboard image for the other character type.

[0057] The function key area in the keyboard image can be pre-associated with the keyboard functions in the user terminal. When the password input position falls within the function key area in the keyboard image, the keyboard function associated with the function key area in the keyboard image is executed.

[0058] In step S2023, if the position information of the keyboard image does not correspond to the function, the keyboard image identifier and the position information of the keyboard image are used as password character representation information.

[0059] If the position information of the keyboard image does not correspond to the function, it means that the password input is not a function input. The password input can be identified as character input, and the keyboard image identifier and position information of the keyboard image of the password input can be identified as the password character representation information.

[0060] In step S2024, a set of password character representation information is obtained based on the password character representation information.

[0061] The information represented by each password character is collected to obtain a set of password character representation information. The order in which the password character representation information is arranged in this set is the input order of the password corresponding to that information.

[0062] For example, the location information is the coordinates in a coordinate system with the bottom left corner of the keyboard image as the origin. If the user terminal receives 7 password inputs during the user's password input process, and it is determined that the first password input is a character input, the second password input is a function input, and the keyboard function corresponding to the function input is the character type switching function, and the third to seventh password inputs are character inputs, then the location information for the first password input is (X1, Y1), the location information for the third password input is (X3, Y3), the location information for the fourth password input is (X4, Y4), the location information for the fifth password input is (X5, Y5), the location information for the sixth password input is (X6, Y6), and the location information for the seventh password input is (X7, Y7). The character type switching function corresponding to the second password input causes the keyboard image displayed on the user terminal to switch from keyboard image A1 to keyboard image A2, that is, the first password input is for keyboard image A1, and the third to seventh password inputs are for keyboard image A2. The keyboard image for keyboard image A1 is labeled B1, and the keyboard image for keyboard image A2 is labeled B2. The password characters for the first password input can be (B1, X1, Y1), the third password input can be (B2, X3, Y3), the fourth password input can be (B2, X4, Y4), the fifth password input can be (B2, X5, Y5), the sixth password input can be (B2, X6, Y6), and the seventh password input can be (B2, X7, Y7). Correspondingly, the resulting set of password character representations can be [(B1, X1, Y1), (B2, X3, Y3), (B2, X4, Y4), (B2, X5, Y5), (B2, X6, Y6), (B2, X7, Y7)].

[0063] Based on the pre-stored function correspondence, the keyboard image identifier of the keyboard image targeted by the password input, and the position information of the password input on the keyboard image, it is possible to distinguish whether the password input is character input or function input, thereby accurately obtaining the password character representation information, avoiding misjudging the input of function keys on the keyboard image as character input, and ensuring the accuracy of the password represented by the password character representation information set.

[0064] In some embodiments, since the screen sizes of different user terminals may be different, in order to ensure the compatibility of keyboard images on different user terminals, each user terminal may scale the keyboard image to achieve keyboard image adaptation on each user terminal. Figure 5 A flowchart of yet another embodiment of the password input protection method provided in this application. Figure 5 and Figure 2 The difference is that, Figure 2Step S201 can be further refined as follows: Figure 5 Steps S2011 and S2012 in the process, Figure 2 Step S202 can be further refined as follows: Figure 5 Steps S2025 to S2027 in the process.

[0065] In step S2011, when password input is triggered, if the size of the keyboard image in the pre-stored keyboard image group does not match the size of the keyboard display area of ​​the user terminal, the keyboard image is scaled so that the size of the scaled keyboard image matches the size of the keyboard display area.

[0066] The keyboard display area is the area on the user terminal where the keyboard is displayed. The size of the keyboard image does not match the size of the user terminal's keyboard display area; that is, the length of the keyboard image differs from the length of the keyboard display area, and / or, the width of the keyboard image differs from the width of the keyboard display area. To match the size of the keyboard image with the size of the keyboard display area, the keyboard image can be scaled, so that the scaled keyboard image's size matches the size of the keyboard display area. Scaled keyboard images can include two non-contradictory operations: reducing the length of the keyboard image, reducing the width of the keyboard image, increasing the length of the keyboard image, and increasing the width of the keyboard image. If the length of the keyboard image is greater than the length of the keyboard display area, the length of the keyboard image can be reduced; if the length of the keyboard image is less than the length of the keyboard display area, the length of the keyboard image can be increased; if the width of the keyboard image is greater than the width of the keyboard display area, the width of the keyboard image can be reduced; if the width of the keyboard image is less than the width of the keyboard display area, the width of the keyboard image can be increased. Matching the size of the scaled keyboard image with the size of the keyboard display area means that the scaled keyboard image has the same length as the keyboard display area, and the scaled keyboard image has the same width as the keyboard display area.

[0067] For example, Figure 6 This is a schematic diagram illustrating an example of a keyboard image and keyboard display area that do not match the dimensions provided in an embodiment of this application. Figure 6 As shown, the length W of the keyboard image is less than the length Ws of the keyboard display area, and the width H of the keyboard image is less than the width Hs of the keyboard display area. The length W of the keyboard image can be increased by a factor of Ws / W, and the width H of the keyboard image can be increased by a factor of Hs / H, so that the length of the scaled keyboard image is Ws and the width of the scaled keyboard image is Hs.

[0068] In step S2012, the scaled keyboard image is displayed.

[0069] The scaled keyboard image can overlap with the keyboard display area.

[0070] When password input is triggered, if the size of the keyboard image in the pre-stored keyboard image group matches the size of the keyboard display area on the user terminal, the keyboard image can be displayed directly without scaling.

[0071] In step S2025, the processing position information of each password input of the user in the scaled keyboard image is obtained.

[0072] The user terminal displays a scaled-down keyboard image, and the password input received by the user terminal is based on this scaled-down keyboard image. The pending position information refers to the position of the password input within the scaled-down keyboard image.

[0073] In step S2026, the position information to be processed is restored to the position information of the keyboard image before scaling, according to the scaling ratio of the keyboard image.

[0074] The scaled keyboard image differs in size from the original scaled image, and the password input position on the scaled image differs from that on the original image. To facilitate querying and confirmation, the input position information can be restored to its original position on the original keyboard image according to the scaling ratio. The scaling ratio of the keyboard image can include the ratio of the length of the original keyboard image to the length of the scaled image, and / or the ratio of the width of the original keyboard image to the width of the scaled image. If the original and scaled keyboard images differ in length, the scaling ratio can include the ratio of their respective lengths; similarly, if the original and scaled keyboard images differ in width, the scaling ratio can include the ratio of their respective widths.

[0075] For example, such as Figure 6 As shown, the keyboard image before scaling has a length of W and a width of H. The scaled keyboard image has the same length (Ws) and width (Hs) as the keyboard display area. The scaling ratio of the keyboard image can include the ratio of the length of the keyboard image before scaling to the length of the keyboard image after scaling (W / Ws), and the ratio of the width of the keyboard image before scaling to the width of the keyboard image after scaling (H / Hs). The position information of the password input is the coordinates (Xs1, Ys1). Based on the scaling ratio of the keyboard image, the reconstructed position information of the password input on the keyboard image is the coordinates (Xs1, Ys1).

[0076] In step S2027, a query and determination operation is performed based on the position information of the keyboard image before scaling obtained from the restoration, to obtain a set of password character representative information.

[0077] The system can perform a query and determination operation based on the keyboard image identifier of the keyboard image targeted by the password input and the position information of the reconstructed, scaled-down keyboard image. Specifically, it can utilize the function correspondence to determine whether the reconstructed position information corresponds to a keyboard function. If the position information of the reconstructed, scaled-down keyboard image corresponds to a keyboard function, the keyboard function corresponding to the position information of the reconstructed, scaled-down keyboard image is executed. If the position information of the reconstructed, scaled-down keyboard image does not correspond to a keyboard function, the keyboard image identifier of the keyboard image and the position information of the reconstructed, scaled-down keyboard image are determined as the set of password character representation information. For details on determining whether the position information corresponds to a keyboard function, please refer to the relevant descriptions in the above embodiments, which will not be repeated here.

[0078] By scaling the keyboard image, it can be adapted to different user terminals, thus improving the compatibility and adaptability of the password input protection method across different user terminals.

[0079] The second aspect of this application provides a password input protection method that can be applied to a server, i.e., the password input protection method can be executed by the server. Figure 7 A flowchart illustrating an embodiment of the password input protection method provided in the second aspect of this application. Figure 7 As shown, the password input protection method may include steps S401 and S402.

[0080] In step S401, the set of password character representation information sent by the user terminal is received.

[0081] The set of password character representation information is obtained by the user terminal through a query operation based on the position information of the keyboard image displayed in the keyboard image group for each password input. The set of password character representation information includes at least one password character representation information. Each password character representation information represents one character and includes the keyboard image identifier and the position information of the password input.

[0082] In some examples, location information may include pixel coordinates.

[0083] In some examples, different keyboard images in a keyboard image group have different types of characters or correspond to different types of keyboard layouts.

[0084] For details of step S401, please refer to the relevant descriptions in the above embodiments, which will not be repeated here.

[0085] In step S402, the stored character correspondence is used to restore the set of password character representative information to the password.

[0086] The character correspondence includes the correspondence between characters, keyboard image identifiers, and character position area information. For details, please refer to the relevant content in the above embodiments, which will not be repeated here.

[0087] In a character-to-character correspondence framework, the character, the keyboard image identifier, and the character position area information, knowing any two of these elements is sufficient to determine the third. Given the keyboard image identifier and the position of the password input within the keyboard image, the character corresponding to the password input can be determined. By combining the password character representation information from the set of character representation information, the password can be obtained by reconstructing the information.

[0088] For example, if the set of password character representative information includes 5 password character representative information, and using the character correspondence, we can determine that the characters corresponding to the 5 password character representative information are "m", "i", "m", "a", and "s" respectively, then the recovered password is "mimas".

[0089] In some embodiments, the server may send a keyboard image set to the user terminal before receiving the set of password character representation information sent by the user terminal. The server may also send a function mapping relationship to the user terminal before receiving the set of password character representation information sent by the user terminal. The function mapping relationship includes the mapping relationship between keyboard functions, keyboard image identifiers, and function location area information. In this embodiment, the order in which the server sends the keyboard image set and function mapping relationship to the user terminal is not limited. The server may send the keyboard image set and function mapping relationship to the user terminal synchronously or sequentially; this is not limited here. For details, please refer to the relevant descriptions in the above embodiments, which will not be repeated here.

[0090] In some examples, the keyboard functions include one or more of the following: character type switching function, keyboard type switching function, confirmation function, back function, clear function, and voice input function. For details, please refer to the relevant content in the above embodiments, which will not be repeated here.

[0091] In this embodiment, when password input is triggered, the user terminal displays a keyboard image. The user terminal can perform a query and determination operation based on the position information of the password input on the keyboard image to determine the characters input in the password, thereby obtaining a set of password character representation information including password character representation information. The user terminal sends this set of password character representation information to the server, and the server restores the password from the set of password character representation information into a password based on the character correspondence including characters, keyboard image identifiers, and character position area information. The data generated by the user's password input is password character representation information, which includes keyboard image identifiers and password input position information, and is not the plaintext of the characters in the password. The plaintext of the password will not appear during password input, password processing, and password transmission in the user terminal, avoiding the leakage of the plaintext password from the user terminal, thereby reducing the possibility of password leakage and improving the security of the user's password.

[0092] In some embodiments, each password character can be restored to its original form as a character, and the characters can be combined to form a password. Figure 8 A flowchart of another embodiment of the password input protection method provided in the second aspect of this application. Figure 8 and Figure 7 The difference is that, Figure 7 Step S402 can be further refined as follows: Figure 8 Steps S4021 and S4022 in the process.

[0093] In step S4021, the character correspondence is used to find the character corresponding to each password character in the character correspondence.

[0094] Specifically, in the character correspondence relationship, the character position area information corresponding to the keyboard image identifier in the password character representation information can be found; if the second position area includes the second position, the character corresponding to the character position area information of the second position area in the character correspondence relationship is determined as the character corresponding to the password character representation information in the character correspondence relationship.

[0095] The second position region represents the position area indicated by the found character position region information. The second position represents the position indicated by the password input position information within the password character representation information. In the character correspondence, there may be multiple character position region information corresponding to the keyboard image identifier in the password character representation information. When there are multiple character position region information corresponding to the keyboard image identifier in the password character representation information, the second position can be used to traverse the position region indicated by the character position region information corresponding to the keyboard image identifier in the password character representation information, i.e., the second position region. The character corresponding to the character position region information of the second position region, including the second position, is determined as the character corresponding to the password character representation information in the character correspondence relationship.

[0096] In step S4022, the found characters are arranged according to the order of the password character representation information in the password character representation information set to obtain the password.

[0097] For example, the character correspondence includes the following groups of correspondences: A-B1-[(Xa1, Xa2), (Ya1, Ya2)], b-B2-[(Xa3, Xa4), (Ya3, Ya4)], c-B2-[(Xa5, Xa6), (Ya5, Ya6)], d-B2-[(Xa7, Xa8), (Ya7, Ya8)]. Where A, b, c, and d are characters; B1 and B2 are keyboard image identifiers; [(Xa1, Xa2), (Ya1, Ya2)], [(Xa3, Xa4), (Ya3, Ya4)], [(Xa5, Xa6), (Ya5, Ya6)], [(Xa7, Xa8), (Ya7, Ya8)] are character position area information; in [(Xa1, Xa2), (Ya1, Ya2)], (Xa1, Xa2) means the horizontal coordinate is greater than Xa1 and less than Xa2, and (Ya1, Ya2) means the vertical coordinate is greater than Ya1 and less than Ya2, and the horizontal and vertical coordinate ranges in other character position area information are deduced in the same way. If the password characters represent the information set [(B1, X1, Y1), (B2, X3, Y3), (B2, X4, Y4), (B2, X5, Y5)], where Xa1 < X1 < Xa2, Ya1 < Y1 < Ya2, Xa3 < X3 < Xa4, Ya3 < Y3 < Ya4, Xa5 < X4 < Xa6, Ya5 < Y4 < Ya6, Xa7 < X5 < Xa8, Ya7 < Y5 < Ya8. The password characters (B1, X1, Y1) correspond to the character A in the character correspondence; (B2, X3, Y3) correspond to the character b; (B2, X4, Y4) correspond to the character c; and (B2, X5, Y5) correspond to the character d. By combining the characters according to the order of the password characters in the password character correspondence set, the password can be obtained as Abcd.

[0098] A third aspect of this application provides a user terminal. Figure 9 This is a schematic diagram of the structure of an embodiment of a user terminal provided in the third aspect of this application. Figure 9 As shown, the user terminal 500 may include a display module 501, a processing module 502, and a sending module 503.

[0099] The display module 501 can be used to display keyboard images from a pre-stored keyboard image group when password input is triggered.

[0100] In some examples, different keyboard images in a keyboard image group have different types of characters or correspond to different types of keyboard layouts.

[0101] The processing module 502 can be used to perform a query and determination operation based on the position information of each password input by the user on the keyboard image, and obtain a set of password character representative information.

[0102] The set of password character representation information includes at least one password character representation information. Each password character representation information represents one character and includes a keyboard image identifier and password input position information.

[0103] In some examples, the location information includes pixel coordinates.

[0104] The sending module 503 can be used to send a set of password character representation information to the server, so that the server can use the stored character correspondence to restore the set of password character representation information into a password.

[0105] The character mapping includes the mapping between characters, keyboard image identifiers, and character position area information.

[0106] In this embodiment, when password input is triggered, the user terminal displays a keyboard image. The user terminal can perform a query and determination operation based on the position information of the password input on the keyboard image to determine the characters input in the password, thereby obtaining a set of password character representation information including password character representation information. The user terminal sends this set of password character representation information to the server, and the server restores the password from the set of password character representation information into a password based on the character correspondence including characters, keyboard image identifiers, and character position area information. The data generated by the user's password input is password character representation information, which includes keyboard image identifiers and password input position information, and is not the plaintext of the characters in the password. The plaintext of the password will not appear during password input, password processing, and password transmission in the user terminal, avoiding the leakage of the plaintext password from the user terminal, thereby reducing the possibility of password leakage and improving the security of the user's password.

[0107] In some embodiments, the processing module 502 can be used to: obtain the target keyboard image identifier and the position information of the password input on the keyboard image; use a pre-stored function correspondence to determine whether the position information of the keyboard image corresponds to a keyboard function, wherein the function correspondence includes the correspondence between keyboard function, keyboard image identifier and function position area information, and the target keyboard image identifier is the keyboard image identifier of the keyboard image to which the password input is targeted; if the position information of the keyboard image corresponds to a keyboard function, execute the keyboard function corresponding to the position information of the keyboard image; if the position information of the keyboard image does not correspond to a function, use the keyboard image identifier and the position information of the keyboard image as password character representation information; and obtain a set of password character representation information based on the password character representation information.

[0108] In some examples, keyboard functions include one or more of the following: character type switching, keyboard type switching, confirmation, back, clear, and voice input.

[0109] In some embodiments, the processing module 502 may be used to: search whether a function correspondence exists for a first position region including a first position, where the first position is the position represented by the position information of the password input of the keyboard image, and the first position region includes the position region represented by the function position region information corresponding to the target keyboard image identifier; if a function correspondence exists for a first position region including the first position, determine that the position information of the keyboard image corresponds to the keyboard function; if a function correspondence does not exist for a first position region including the first position, determine that the position information of the keyboard image does not correspond to the keyboard function.

[0110] In some embodiments, the user terminal may further include a scaling module. The scaling module can be used to scale the keyboard images when the size of the keyboard images in the pre-stored keyboard image group does not match the size of the keyboard display area of ​​the user terminal, so that the size of the scaled keyboard images matches the size of the keyboard display area.

[0111] Correspondingly, the display module 501 can be used to display a scaled-down keyboard image.

[0112] In some embodiments, the processing module 502 may be used to: obtain the position information to be processed for each password input of the user in the scaled keyboard image; restore the position information to be processed according to the scaling ratio of the keyboard image to the position information of the keyboard image before scaling; and perform a query and determination operation based on the restored position information of the keyboard image before scaling to obtain a set of password character representative information.

[0113] In some embodiments, the user terminal 500 may further include a download module. The download module can be used to download keyboard image sets and function mappings from a server.

[0114] The fourth aspect of this application provides a server. Figure 10 This is a schematic diagram of the structure of an embodiment of the server provided in the fourth aspect of this application. Figure 10 As shown, the server 600 may include a receiving module 601 and a password recovery module 602.

[0115] The receiving module 601 can be used to receive a set of password character representation information sent by the user terminal.

[0116] The set of password character representation information is determined by the user terminal through a query operation based on the position information of the keyboard image displayed in the keyboard image group for each password input. The set of password character representation information includes at least one password character representation information. Each password character representation information represents one character. Each password character representation information includes the keyboard image identifier and the position information of the password input.

[0117] In some examples, the location information includes pixel coordinates.

[0118] In some examples, different keyboard images in a keyboard image group have different types of characters or correspond to different types of keyboard layouts.

[0119] The password recovery module 602 can be used to restore the set of password character representative information into a password by utilizing the stored character correspondence.

[0120] The character mapping includes the mapping between characters, keyboard image identifiers, and character position area information.

[0121] In this embodiment, when password input is triggered, the user terminal displays a keyboard image. The user terminal can perform a query and determination operation based on the position information of the password input on the keyboard image to determine the characters input in the password, thereby obtaining a set of password character representation information including password character representation information. The user terminal sends this set of password character representation information to the server, and the server restores the password from the set of password character representation information into a password based on the character correspondence including characters, keyboard image identifiers, and character position area information. The data generated by the user's password input is password character representation information, which includes keyboard image identifiers and password input position information, and is not the plaintext of the characters in the password. The plaintext of the password will not appear during password input, password processing, and password transmission in the user terminal, avoiding the leakage of the plaintext password from the user terminal, thereby reducing the possibility of password leakage and improving the security of the user's password.

[0122] In some embodiments, the password recovery module 602 can be used to: use the character correspondence to find the character corresponding to each password character representative information in the character correspondence; arrange the found characters according to the order of the password character representative information in the password character representative information set to obtain the password.

[0123] In some embodiments, the password recovery module 602 can be used to: find the character position area information corresponding to the keyboard image identifier in the password character representation information in the character correspondence relationship; when the second position area includes the second position, determine the character corresponding to the character position area information of the second position area in the character correspondence relationship as the character corresponding to the password character representation information in the character correspondence relationship, wherein the second position area is the position area represented by the found character position area information, and the second position is the position represented by the password input position information in the password character representation information.

[0124] In some embodiments, the server 600 may further include a sending module. The sending module can be used to send keyboard image groups and function mappings to the user terminal. The function mappings include the mappings between keyboard functions, keyboard image identifiers, and function location area information.

[0125] In some examples, keyboard functions include one or more of the following: character type switching, keyboard type switching, confirmation, back, clear, and voice input.

[0126] The fifth aspect of this application also provides a user terminal. Figure 11 This is a schematic diagram of the structure of an embodiment of the user terminal provided in the fifth aspect of this application. Figure 11 As shown, the user terminal 700 includes a memory 701, a processor 702, and a computer program stored in the memory 701 and capable of running on the processor 702.

[0127] In one example, the processor 702 described above may include a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.

[0128] Memory 701 may include read-only memory (ROM), random access memory (RAM), disk storage media device, optical storage media device, flash memory device, electrical, optical, or other physical / tangible memory storage device. Therefore, typically, memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the password input protection method according to the embodiments of the first aspect of this application.

[0129] The processor 702 runs a computer program corresponding to the executable program code by reading the executable program code stored in the memory 701, in order to implement the password input protection method in the first aspect embodiment above.

[0130] In one example, the user terminal 700 may further include a communication interface 703 and a bus 704. Wherein, for example... Figure 11 As shown, the memory 701, processor 702, and communication interface 703 are connected through bus 704 and complete communication with each other.

[0131] The communication interface 703 is mainly used to enable communication between various modules, devices, units, and / or equipment in the embodiments of this application. Input devices and / or output devices can also be connected through the communication interface 703.

[0132] Bus 704 includes hardware, software, or both, that couples the components of user terminal 700 together. For example, and not limitingly, bus 704 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-E) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses, or a combination of two or more of these. Where appropriate, bus 704 may include one or more buses. Although specific buses are described and illustrated in the embodiments of this application, this application considers any suitable bus or interconnection.

[0133] The sixth aspect of this application also provides a server. Figure 12 This is a schematic diagram of the structure of an embodiment of the server provided in the sixth aspect of this application. Figure 12 As shown, server 800 includes memory 801, processor 802, and computer program stored on memory 801 and executable on processor 802.

[0134] In one example, the processor 802 described above may include a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.

[0135] Memory 801 may include read-only memory (ROM), random access memory (RAM), disk storage media device, optical storage media device, flash memory device, electrical, optical, or other physical / tangible memory storage device. Therefore, typically, memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the password input protection method in the embodiments according to the second aspect of this application.

[0136] The processor 802 runs a computer program corresponding to the executable program code by reading the executable program code stored in the memory 801, in order to implement the password input protection method in the second aspect embodiment above.

[0137] In one example, server 800 may also include communication interface 803 and bus 804. For example, Figure 12 As shown, the memory 801, processor 802, and communication interface 803 are connected through bus 804 and complete communication with each other.

[0138] The communication interface 803 is mainly used to enable communication between various modules, devices, units, and / or equipment in the embodiments of this application. Input devices and / or output devices can also be connected through the communication interface 803.

[0139] Bus 804 includes hardware, software, or both, that couples components of user terminal 800 together. For example, and not limitingly, bus 804 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-E) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 804 may include one or more buses. Although specific buses are described and illustrated in the embodiments of this application, this application considers any suitable bus or interconnection.

[0140] The seventh aspect of this application provides a password input protection system, which may include the user terminal and server in the above embodiments. The specific contents of the user terminal and server can be found in the relevant descriptions in the above embodiments. The password input protection method performed by the user terminal and server can also be found in the relevant descriptions in the above embodiments, and will not be repeated here.

[0141] The eighth aspect of this application also provides a computer-readable storage medium storing computer program instructions. When executed by a processor, these computer program instructions can implement the password input protection method of the first aspect or the password input protection method of the second aspect described above, and achieve the same technical effect. To avoid repetition, further details are omitted here. The aforementioned computer-readable storage medium may include non-transitory computer-readable storage media, such as read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks, etc., and is not limited thereto.

[0142] This application also provides a computer program product in which the instructions are executed by the processor of an electronic device, causing the electronic device to perform the first aspect of the password input protection method or the second aspect of the password input protection method, and achieving the same technical effect. To avoid repetition, the details will not be repeated here.

[0143] It should be clarified that the various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. For user terminal embodiments, server embodiments, system embodiments, computer-readable storage medium embodiments, and computer program product embodiments, relevant parts can be referred to the description section of the method embodiments. This application is not limited to the specific steps and structures described above and shown in the figures. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application. Furthermore, for the sake of brevity, detailed descriptions of known method techniques are omitted here.

[0144] The aspects of this application have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by dedicated hardware performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.

[0145] Those skilled in the art will understand that the above embodiments are exemplary and not restrictive. Different technical features appearing in different embodiments can be combined to achieve beneficial effects. Based on a study of the drawings, specification, and claims, those skilled in the art should be able to understand and implement other variations of the disclosed embodiments. In the claims, the term "comprising" does not exclude other means or steps; the quantifier "a" does not exclude a plurality; the terms "first" and "second" are used to identify names and not to indicate any particular order. No reference numerals in the claims should be construed as limiting the scope of protection. The functionality of multiple parts appearing in the claims can be implemented by a single hardware or software module. The appearance of certain technical features in different dependent claims does not mean that these technical features cannot be combined to achieve beneficial effects.

Claims

1. A password input protection method, characterized in that, Applied to a user terminal, the method includes: When a password input is triggered, the keyboard image in the keyboard image group pre-stored on the user terminal is displayed; Based on the position information of each password input by the user on the keyboard image, a query and determination operation is performed to obtain a set of password character representative information. The set of password character representative information includes at least one password character representative information. Each password character representative information represents one character. Each password character representative information includes a keyboard image identifier and password input position information. The set of password character representation information is sent to the server so that the server can use the stored character correspondence to restore the set of password character representation information into a password. The character correspondence includes the correspondence between characters, keyboard image identifiers and character position area information. The step of querying and determining the position of each password input by the user on the keyboard image to obtain a set of password character representation information includes: The target keyboard image identifier and the position information of the password input on the keyboard image are obtained. Using the pre-stored function correspondence, it is determined whether the position information of the keyboard image corresponds to the keyboard function. The function correspondence includes the correspondence between keyboard function, keyboard image identifier and function position area information. The target keyboard image identifier is the keyboard image identifier of the keyboard image to which the password input is targeted. The keyboard function includes character type switching function and keyboard type switching function. Different keyboard images in the keyboard image group have different types of characters or correspond to different types of keyboard layouts. When the password input function is a character type switching function or a keyboard type switching function, the keyboard image displayed on the user terminal is switched from the first keyboard image to the second keyboard image.

2. The method according to claim 1, characterized in that, The step of querying and determining the password character representation information set based on the position information of each user's password input on the keyboard image, further includes: When the position information of the keyboard image corresponds to the keyboard function, execute the keyboard function corresponding to the position information of the keyboard image. When the position information of the keyboard image does not correspond to the function, the keyboard image identifier and the position information of the keyboard image are used as the password character representation information; Based on the password character representation information, the password character representation information set is obtained.

3. The method according to claim 2, characterized in that, The step of determining whether the position information of the keyboard image corresponds to the keyboard function using the pre-stored function correspondence includes: Check if the function correspondence exists in a first position region including a first position, where the first position is the position represented by the position information of the password input of the keyboard image, and the first position region includes the position region represented by the function position region information corresponding to the target keyboard image identifier; In the case where the function correspondence exists and includes a first position region, the position information of the keyboard image is determined to correspond to the keyboard function; If the function correspondence does not include a first position area, it is determined that the position information of the keyboard image does not correspond to the keyboard function.

4. The method according to claim 1, characterized in that, The step of displaying keyboard images from the pre-stored keyboard image group on the user terminal includes: If the size of the keyboard image in the pre-stored keyboard image group does not match the size of the keyboard display area of ​​the user terminal, the keyboard image is scaled so that the size of the scaled keyboard image matches the size of the keyboard display area. Displays a scaled-down keyboard image.

5. The method according to claim 4, characterized in that, The step of querying and determining the position of each password input by the user on the keyboard image yields a set of password character representation information, including: Obtain the unprocessed position information of each user's password input in the scaled keyboard image; According to the scaling ratio of the keyboard image, the position information to be processed is restored to the position information of the keyboard image before scaling; Based on the position information of the keyboard image before scaling obtained from the reconstruction, a query and determination operation is performed to obtain a set of password character representative information.

6. The method according to claim 2, characterized in that, Before displaying the keyboard image from the pre-stored keyboard image group when a password input is triggered, the following steps are also included: Download the keyboard image group and the corresponding function from the server.

7. The method according to claim 1, characterized in that, Location information includes pixel coordinates.

8. The method according to claim 1, characterized in that, The keyboard functions also include one or more of the following: confirmation function, back function, clear function, and voice input function.

9. A method for protecting password input, characterized in that, Applied to a server, the method includes: The system receives a set of password character representation information sent by a user terminal. The set of password character representation information is obtained by the user terminal through a query and determination operation based on the position information of the keyboard image displayed in the keyboard image group pre-stored in the user terminal for each password input. The set of password character representation information includes at least one password character representation information, each password character representation information represents one character, and each password character representation information includes a keyboard image identifier and password input position information. Using the stored character correspondence, the set of password character representative information is restored to a password. The character correspondence includes the correspondence between characters, keyboard image identifiers, and character position area information. Before receiving the set of password character representation information sent by the user terminal, the method further includes: sending the keyboard image group and function correspondence to the user terminal, wherein the function correspondence includes the correspondence between keyboard functions, keyboard image identifiers and function location area information; The function correspondence is used by the user terminal to determine whether the position information of the keyboard image corresponds to the keyboard function based on the target keyboard image identifier and the position information of the password input on the keyboard image. The function correspondence includes the correspondence between keyboard function, keyboard image identifier and function position area information. The target keyboard image identifier is the keyboard image identifier of the keyboard image targeted by the password input. The keyboard function includes character type switching function and keyboard type switching function. Different keyboard images in the keyboard image group have different types of characters or correspond to different types of keyboard layouts. When the password input is a character type switching function or a keyboard type switching function, the keyboard image displayed by the user terminal switches from the first keyboard image to the second keyboard image.

10. The method according to claim 9, characterized in that, The step of restoring the set of password character-represented information into a password using the stored character correspondence includes: Using the character mapping relationship, find the character corresponding to each password character in the character mapping relationship; The found characters are arranged in the order of the password character information in the password character information set to obtain the password.

11. The method according to claim 10, characterized in that, The step of using the character correspondence to find the character corresponding to each password character in the character correspondence includes: In the character correspondence, find the character position area information that corresponds to the keyboard image identifier in the password character representation information; When the second position area includes the second position, the character corresponding to the character position area information of the second position area in the character correspondence is determined as the character corresponding to the password character representative information in the character correspondence. The second position area is the position area represented by the found character position area information, and the second position is the position represented by the password input position information in the password character representative information.

12. The method according to claim 9, characterized in that, Location information includes pixel coordinates.

13. The method according to claim 9, characterized in that, The keyboard functions also include one or more of the following: confirmation function, back function, clear function, and voice input function.

14. A user terminal, characterized in that, include: The display module is used to display the keyboard image from the keyboard image group pre-stored in the user terminal when the password input is triggered. The processing module is used to perform a query and determination operation based on the position information of each password input by the user on the keyboard image, and obtain a set of password character representative information. The set of password character representative information includes at least one password character representative information, each of which represents a character and includes a keyboard image identifier and password input position information. The sending module is used to send the set of password character representative information to the server so that the server can use the stored character correspondence to restore the set of password character representative information into a password. The character correspondence includes the correspondence between characters, keyboard image identifiers and character position area information. The processing module is used to: obtain the target keyboard image identifier and the position information of the password input on the keyboard image; and use the pre-stored function correspondence to determine whether the position information of the keyboard image corresponds to the keyboard function. The function correspondence includes the correspondence between keyboard function, keyboard image identifier and function position area information. The target keyboard image identifier is the keyboard image identifier of the keyboard image to which the password input is applied. The keyboard function includes character type switching function and keyboard type switching function. Different keyboard images in the keyboard image group have different types of characters or correspond to different types of keyboard layouts. When the password input function is a character type switching function or a keyboard type switching function, the keyboard image displayed on the user terminal is switched from the first keyboard image to the second keyboard image.

15. A server, characterized in that, include: The receiving module is used to receive a set of password character representation information sent by the user terminal. The set of password character representation information is obtained by the user terminal through a query and determination operation based on the position information of the keyboard image displayed in the keyboard image group pre-stored in the user terminal for each password input. The set of password character representation information includes at least one password character representation information, each password character representation information represents one character, and each password character representation information includes a keyboard image identifier and password input position information. The password recovery module is used to restore the set of password character representative information into a password by using the stored character correspondence relationship. The character correspondence relationship includes the correspondence relationship between characters, keyboard image identifiers and character position area information. The sending module is used to send the keyboard image group and function correspondence to the user terminal before receiving the set of password character representative information sent by the user terminal. The function correspondence includes the correspondence between keyboard functions, keyboard image identifiers and function location area information. The function correspondence is used by the user terminal to determine whether the position information of the keyboard image corresponds to the keyboard function based on the target keyboard image identifier and the position information of the password input on the keyboard image. The function correspondence includes the correspondence between keyboard function, keyboard image identifier and function position area information. The target keyboard image identifier is the keyboard image identifier of the keyboard image to which the password input is applied. The keyboard function includes character type switching function and keyboard type switching function. Different keyboard images in the keyboard image group have different types of characters or correspond to different types of keyboard layouts. When the password input function is a character type switching function or a keyboard type switching function, the keyboard image displayed on the user terminal switches from the first keyboard image to the second keyboard image.

16. A user terminal, characterized in that, include: Processor and memory storing computer program instructions; When the processor executes the computer program instructions, it implements the password input protection method as described in any one of claims 1 to 8.

17. A server, characterized in that, include: Processor and memory storing computer program instructions; When the processor executes the computer program instructions, it implements the password input protection method as described in any one of claims 9 to 13.

18. A password input protection system, characterized in that, It includes the user terminal as described in claim 16 and the server as described in claim 17.

19. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions that, when executed by a processor, implement the password input protection method as described in any one of claims 1 to 13.

Citation Information

Patent Citations

  • Soft keyboard safety input method, server, client, electronic equipment and medium

    CN109613990A

  • Virtual keyboard encryption method and device and readable storage medium

    CN110598486A