Input method association method, system, storage medium and electronic device
By randomly generating new characters and associated characters in the password input mode of the input method, the problem of leaking information during password input is solved, improving security and improving user input speed in non-password input mode.
Patent Information
- Application Number
- CN202011119111.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-19
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2040-10-19
AI Technical Summary
The existing input method is prone to leak account and password information when users enter passwords, and the solution to switch secure keyboards is expensive and easily leads to lag.
When the terminal device is in password input mode, new characters are randomly generated according to the user's current input character, and associated characters related to the new character are displayed to prevent the memory function of the input method from leaking the user's personal information.
Improves the security of the input method, prevents password information from being leaked, and improves user input speed when not needed.
Smart Images

Figure CN112162646B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of input methods, and in particular relates to an input method association method, system, storage medium and electronic equipment. Background Art
[0002] The rapid development of the Internet era has made people increasingly dependent on mobile phones. While mobile terminals bring convenience to people, they also inevitably bury some hidden dangers. Personal information leakage problems emerge in an endless stream, and information security has become one of the most concerned issues for people today. As we all know, the input method in the mobile terminal is memory-based. It saves your input habits and makes intelligent associations. This design can greatly improve the typing speed when we use mobile terminals to communicate with people, but it is very easy to expose the user's account and password information when entering passwords. Summary of the invention
[0003] The present invention is based on the technical problem that the existing input method is easy to leak password information when the user inputs the password, and proposes an input method association method, system, storage medium and electronic device.
[0004] In a first aspect, an embodiment of the present invention provides an input method association method, comprising:
[0005] Determine the current input mode of the terminal device;
[0006] When the current input mode is a preset input mode, obtaining the current input character;
[0007] According to the currently input character, a new character is generated using preset rules, and associated characters related to the new character are displayed; wherein the associated character is the next character that the user will input after inputting the new character, as learned from historical input records.
[0008] Optionally, determining the current input mode of the terminal device includes:
[0009] Detect the current input interface of the terminal device;
[0010] When a preset keyword and / or a preset graphic element is detected from the current input interface, determining that the current input mode of the terminal device is a preset input mode;
[0011] When the preset keyword and / or the preset graphic element is not detected from the current input interface, it is determined that the current input mode of the terminal device is not the preset input mode.
[0012] Optionally, the method further comprises:
[0013] When the current input mode is not the preset input mode, an associated character related to the current input character is displayed.
[0014] Optionally, the preset input mode includes a password input mode.
[0015] Optionally, the keyword includes at least one of user name information, account information, password information, login information, registration information and payment information.
[0016] Optionally, generating a new character according to the currently input character by using a preset rule, and displaying associated characters related to the new character, includes:
[0017] Obtain the code corresponding to the currently input character; wherein each character corresponds to a code;
[0018] Add a random number to the code corresponding to the currently input character to obtain a new code;
[0019] Display the associated characters related to the character corresponding to the new code.
[0020] Optionally, the encoding includes ASCII code.
[0021] In a second aspect, an embodiment of the present invention provides an input method association system, comprising:
[0022] A mode determination module, configured to determine a current input mode of the terminal device;
[0023] An acquisition module, configured to acquire a current input character when the current input mode is a preset input mode;
[0024] The association module is configured to generate a new character according to the current input character using preset rules, and display associated characters related to the new character; wherein the associated character is the next character that the user will enter after entering the new character learned from historical input records.
[0025] In a third aspect, an embodiment of the present invention provides a storage medium having program code stored thereon. When the program code is executed by a processor, the input method association method as described in any one of the above embodiments is implemented.
[0026] In a fourth aspect, an embodiment of the present invention provides an electronic device, comprising a memory and a processor, wherein the memory stores program code executable on the processor, and when the program code is executed by the processor, an input method association method as described in any one of the above embodiments is implemented.
[0027] An input method association method, system, storage medium and electronic device provided in an embodiment of the present invention randomly generates a new character according to the character currently input by the user when the terminal device is in a preset input mode, thereby displaying associated characters related to the new character. It can be seen that the input method association method provided in an embodiment of the present invention can prevent the characters prompted by the memory function of the input method from leaking the user's account, password and other personal information when the user is in a password input mode, thereby improving the security of the input method. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The scope of the present disclosure may be better understood by reading the following detailed description of exemplary embodiments in conjunction with the accompanying drawings. The drawings included are:
[0029] Figure 1 A schematic diagram showing a flow chart of an input method association method proposed in the first embodiment of the present invention;
[0030] Figure 2 A schematic diagram of a normal associative function of an input method is shown;
[0031] Figure 3 A schematic diagram showing the association function of the input method association method proposed by the present invention is shown;
[0032] Figure 4 A schematic flow chart of an input method association method proposed in the second embodiment of the present invention is shown. DETAILED DESCRIPTION
[0033] In order to make the objectives, technical solutions and advantages of the present invention clearer, the implementation method of the present invention will be described in detail below in conjunction with the accompanying drawings and embodiments, so that the implementation process of how the present invention applies technical means to solve technical problems and achieve technical effects can be fully understood and implemented accordingly.
[0034] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0035] In the prior art, the input method has a certain memory function, that is, based on the user's historical input habits, it learns the next character that the user may enter after entering a character, so that after the user enters a character, the next character that the user may enter is prompted. For example, after learning that the user often enters word B after entering word A, the input method will automatically show word B after the user enters word A. For another example, by recording the user's input frequency of different words, associative words are learned, that is, the more times the word is entered, the higher it is. Although the memory function of this input method provides convenience for users, such as increasing the user's input speed, in the scenario where the user enters a password, if the input method records the user's password input order and prompts the next password character when the user enters a password character, it may bring the risk of password leakage.
[0036] The conventional solution to the above technical problem is to switch to another secure keyboard for password input, which does not have memory and association functions but only simple numeric keys. However, this solution requires redesigning a new keyboard, which results in high costs and is prone to jamming when switching keyboards.
[0037] Based on the above technical problems, the present invention proposes an input method association method, system, storage medium and electronic device, which randomly generates a new character according to the character currently input by the user when the terminal device is in the password input mode, thereby displaying the associated characters associated with the new character. When the user is in the password input mode, the characters prompted by the memory function of the input method can be prevented from leaking the user's account, password and other personal information, thereby improving the security of the input method.
[0038] Embodiment 1
[0039] According to an embodiment of the present invention, an input method association method is provided. Figure 1 FIG. 1 shows a flow chart of an input method association method proposed in Embodiment 1 of the present invention. Figure 1 As shown, the input method association method may include: steps 110 to 130.
[0040] In step 110, the current input mode of the terminal device is determined.
[0041] Here, the current input mode refers to the input mode in which the input method of the terminal device is currently located. If the input method is called when the terminal device is on the login interface, payment interface, or other interfaces, the current input mode of the terminal device is the password input mode. When the input method is called and the terminal device is on an interface such as the search interface or communication interface where passwords and accounts do not need to be entered, the terminal device is in a non-password input mode. Among them, the terminal device can be a mobile terminal such as a smart phone or a tablet computer, or a terminal device such as a desktop computer or a laptop computer.
[0042] In step 120, when the current input mode is a preset input mode, obtain the current input character.
[0043] Here, when the input method is called when the terminal device is in a preset input mode, the current input character of the user is obtained. Among them, the preset input mode includes the password input mode. For example, when the user needs to enter an account and password on the interface of the login application, the characters typed by the user through the input method keyboard are obtained. It should be understood that the current input character is the character that has been input.
[0044] In step 130, according to the current input character, use a preset rule to generate a new character and display the associated character related to the new character; among them, the associated character is the next character that the user will input after inputting the new character learned according to the historical input record.
[0045] Here, when the input method makes an association, it randomly generates a new character to recommend the associated character related to the new character. Therefore, after the user inputs word A, the associated character associated by the input method will not be the associated character related to word A learned according to the user's historical input record. For example, the input method learns from the user's historical input record that the word B will be input immediately after the word A by the user. However, according to the method proposed in the present invention, in the password input mode, after the user inputs the word A, a word C is randomly generated according to the word A, and then the associated character word D associated with the word C is displayed. Therefore, in the password input mode, the user does not have to worry about the leakage of the input account and password due to the memory association function of the input method.
[0046] Next, the above embodiments will be described through a specific example:
[0047] Figure 2 Shows a schematic diagram of the normal association function of the input method, such as Figure 2 As shown, in the existing input method, whether it is the password input mode or the non-password input mode, when the user's current input character is "I", the input method will synchronously display the associated characters learned according to the user's historical input record, such as the characters "of", "we", "in", etc.
[0048] Figure 3 shows a schematic diagram of the association function of the input method association method proposed by the present invention. As Figure 3 shown, when the character currently input by the user is "I", the input method regenerates a new character according to the character "I", and then displays the associated characters associated with the new character. For example, generating a character "am" according to "I", and then recommending the associated characters associated with the character "am", such as recommending "I", "am not", "of", "because", etc. associated characters, rather than as Figure 2 shown to recommend the associated characters associated with the character "I".
[0049] Embodiment 2
[0050] Based on the above embodiments, Embodiment 2 of the present invention can also provide an input method association method. Figure 4 shows a schematic flowchart of an input method association method proposed by Embodiment 2 of the present invention. As Figure 4 shown, the input method association method may include: Step 210 to Step 240.
[0051] In Step 210, determine the current input mode of the terminal device.
[0052] In an optional embodiment, in Step 210, the determining the current input mode of the terminal device includes: Step 211 to Step 213.
[0053] In Step 211, detect the current input interface of the terminal device.
[0054] Here, the current input interface refers to the application program interface where the terminal device is currently located.
[0055] In Step 212, when a preset keyword and / or a preset graphic element are detected from the current input interface, determine that the current input mode of the terminal device is the preset input mode.
[0056] Here, the preset input mode includes a password input mode, and the text and / or graphic elements in the current input interface can be detected. When the presence of preset keywords and / or graphic elements is detected, it can be determined that the terminal device is in the password input mode. Wherein, the keywords include at least one of user name information, account information, password information, login information, registration information and payment information. For example, in the user login interface of the application, there are generally words such as login, registration, account, user name, etc. Therefore, after detecting the presence of preset keywords in the current input interface, it can be determined that the current input mode of the terminal device is the password input mode. In the payment interface of the application, there is often a word of payment, so it can be determined that the current input mode of the terminal device is the password input mode. It is worth noting that the keywords include at least one of user name, account, password, login, registration and payment, which is only the optimal embodiment proposed by the present invention. When there are other keywords that can also determine the password input mode, it should also be within the scope of protection of the present invention.
[0057] Similarly, the graphic element may be a UI element such as an account name input box, a password input box, and a login box.
[0058] In step 213, when the preset keyword and / or the preset graphic element is not detected from the current input interface, it is determined that the current input mode of the terminal device is not the preset input mode.
[0059] Here, when the preset keywords and / or preset graphic elements are not detected, it can be determined that the current input mode of the terminal device is not the preset input mode, which can be a non-password input mode. Among them, the non-password input mode can be a user's daily chat interface, search interface, news browsing interface, etc., which do not involve inputting an account number or password.
[0060] Therefore, by detecting the current input interface of the terminal device, it can be accurately determined whether the terminal device is in the password input mode.
[0061] In step 220, when the current input mode is a preset input mode, the current input character is obtained.
[0062] Here, when the input method is called in the password input mode of the terminal device, the user's current input characters are obtained. For example, when the user needs to enter the account number and password on the interface of the application login, the characters typed by the user through the input method keyboard are obtained. It should be understood that the current input characters are the characters that have been entered.
[0063] In step 230, according to the current input character, a new character is generated using a preset rule, and an associated character related to the new character is displayed; wherein, the associated character is the next character that the user will input after inputting the new character learned based on the historical input record.
[0064] In an optional embodiment, in step 230, according to the current input character, a new character is generated using a preset rule, and an associated character related to the new character is displayed, including: steps 231 to 233.
[0065] In step 231, the encoding corresponding to the current input character is obtained; wherein, each character corresponds to an encoding respectively.
[0066] Here, in the input method, each character corresponds to an encoding. Therefore, after the user inputs a character, the encoding corresponding to the current input character of the user can be obtained. Among them, the encoding can be an ASCII code. For example, the ASCII code corresponding to the character "我" input by the user currently is "0000 0011".
[0067] In step 232, a random number is added to the encoding corresponding to the current input character to obtain a new encoding.
[0068] Here, by adding a random number to the encoding corresponding to the current input character, a new encoding can be obtained. For example, if the ASCII code of the current input character "我" is "0000 0011", then after adding the random number, the new ASCII code obtained is "0000 01011".
[0069] In step 233, the associated character related to the character corresponding to the new encoding is displayed.
[0070] Here, after obtaining the new encoding, since in the input method, each encoding corresponds to a character, the corresponding character can be obtained according to the new encoding, and then the associated character can be determined according to the corresponding character obtained from the new encoding. For example, if the ASCII code of the current input character "我" is "0000 0011", and the new encoding obtained after adding the random number is "000001011", and the character corresponding to "0000 01011" is "力", then the input method displays the associated character of "力".
[0071] Thus, due to the irregularity, contingency, and randomness of the random number, there is no longer a relationship between the associated character in the display box of the input method system and the character initially input by the user, thereby hiding the user's true input habit and improving the security of the input method.
[0072] It is worth noting that when the input method associates, it recommends the associated characters associated with the new character based on the random generation of a new character. Therefore, after the user inputs word A, the associated characters associated with the input method will not be the associated characters associated with word A learned based on the user's historical input records. For example, the input method learns from the user's historical input records that the user will enter word B immediately after word A, but according to the method proposed by the present invention, in the password input mode, after the user enters word A, a word C is randomly generated based on word A, and then the associated character word D associated with word C is displayed. Therefore, in the password input mode, the user does not need to worry about the user's password being leaked due to the input account number and password due to the memory association function of the input method.
[0073] In step 240, when the current input mode is not the preset input mode, associated characters related to the current input character are displayed.
[0074] Here, when the current input mode is not the preset input mode, such as in a non-password input mode, such as a daily chat interface, a search interface, a news browsing interface, and other interfaces that do not involve inputting an account number or password, the user input speed is prioritized over security. When the terminal device is in the non-password input mode, the associated characters associated with the currently input characters are directly displayed, thereby increasing the user's input speed.
[0075] Therefore, in this embodiment, by judging the current input mode of the terminal device, when judging that the current input mode of the terminal device is in the password input mode, a new character is randomly generated according to the character currently input by the user, and the associated character associated with the new character is displayed, so as to prevent the character prompted by the memory function of the input method from leaking the user's account, password and other personal information, thereby improving the security of the input method. When the current input mode of the terminal device is in the non-password input mode, the associated character associated with the current input character is directly displayed, thereby improving the input speed of the user.
[0076] Embodiment 3
[0077] According to an embodiment of the present invention, there is also provided an input method association system, comprising:
[0078] A mode determination module, configured to determine a current input mode of the terminal device;
[0079] An acquisition module, configured to acquire a current input character when the current input mode is a preset input mode;
[0080] The association module is configured to generate a new character according to the current input character using preset rules, and display associated characters related to the new character; wherein the associated character is the next character that the user will enter after entering the new character learned based on historical input records.
[0081] Embodiment 4
[0082] According to an embodiment of the present invention, a storage medium is further provided, on which a program code is stored. When the program code is executed by a processor, the input method association method as described in any one of the above embodiments is implemented.
[0083] Embodiment 5
[0084] According to an embodiment of the present invention, an electronic device is also provided, which includes a memory and a processor, wherein the memory stores a program code that can be run on the processor, and when the program code is executed by the processor, the input method association method described in any one of the above embodiments is implemented.
[0085] The technical solution of the present invention is described in detail above in conjunction with the accompanying drawings. Considering that in the related art, the existing input method is easy to leak password information when the user enters the password. The present invention provides an input method association method, system, storage medium and electronic device, which randomly generates a new character according to the user's current input character when the terminal device is in a preset input mode, thereby displaying the associated characters associated with the new character. When the user is in the password input mode, it can prevent the characters prompted by the memory function of the input method from leaking the user's account, password and other personal information, thereby improving the security of the input method.
[0086] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0087] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0088] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0089] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling an electronic device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0090] Although the embodiments disclosed in the present invention are as above, the contents described are only embodiments adopted for facilitating the understanding of the present invention and are not intended to limit the present invention. Any technician in the technical field to which the present invention belongs can make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed in the present invention, but the protection scope of the present invention shall still be subject to the scope defined in the attached claims.
Claims
1. An input method association method, characterized in that: include: Determine the current input mode of the terminal device; When the current input mode is a preset input mode, obtaining the current input character; According to the currently input character, a new character is generated by using a preset rule, and associated characters related to the new character are displayed; wherein the associated characters are the next characters that the user will input after inputting the new character, as learned from historical input records; The step of generating a new character according to the current input character by using a preset rule and displaying associated characters related to the new character includes: Obtain the code corresponding to the currently input character; wherein each character corresponds to a code; Add a random number to the code corresponding to the currently input character to obtain a new code; Display the associated characters related to the character corresponding to the new code.
2. The input method association method according to claim 1, characterized in that: The determining the current input mode of the terminal device includes: Detect the current input interface of the terminal device; When a preset keyword and / or a preset graphic element is detected from the current input interface, determining that the current input mode of the terminal device is a preset input mode; When the preset keyword and / or the preset graphic element is not detected from the current input interface, it is determined that the current input mode of the terminal device is not the preset input mode.
3. The input method association method according to claim 2, characterized in that: The method further comprises: When the current input mode is not the preset input mode, an associated character related to the current input character is displayed.
4. The input method association method according to any one of claims 1 to 3, characterized in that: The preset input mode includes a password input mode.
5. The input method association method according to claim 2, characterized in that: The keywords include at least one of user name information, account information, password information, login information, registration information and payment information.
6. The input method association method according to claim 1, characterized in that: The encoding includes ASCII code.
7. An input method association system, characterized in that: include: A mode determination module, configured to determine a current input mode of the terminal device; An acquisition module, configured to acquire a current input character when the current input mode is a preset input mode; An association module is configured to generate a new character according to the currently input character by using a preset rule, and display associated characters related to the new character; wherein the associated character is the next character that the user will input after inputting the new character, learned from historical input records; The system is configured to obtain the code corresponding to the currently input character; wherein each character corresponds to a code; Add a random number to the code corresponding to the currently input character to obtain a new code; Display the associated characters related to the character corresponding to the new code.
8. A storage medium having a program code stored thereon, characterized in that: When the program code is executed by a processor, the input method association method according to any one of claims 1 to 6 is implemented.
9. An electronic device, characterized in that: The electronic device comprises a memory and a processor. The memory stores a program code that can be run on the processor. When the program code is executed by the processor, the input method association method according to any one of claims 1 to 6 is implemented.