Virtual keyboard management method and device, computer equipment, readable storage medium and program product

Through custom virtual keyboard layout and input behavior matching inspection, combined with obfuscation processing and multi-factor authentication, the security risks of virtual keyboards in sensitive input scenarios are solved, and the security of virtual keyboards is significantly improved.

CN119475321APending Publication Date: 2025-02-18CHINA TELECOM CLOUD TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411742569.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

The prior art poses certain risks to the security protection of virtual keyboards, especially in sensitive input scenarios, the code logic of virtual keyboards is easily crawled and analyzed by crawlers, resulting in security risks.

Method used

By responding to user input operations, customize the keyboard layout based on the user's input habit data and the security level of the current input environment, and display it on the virtual keyboard. Gets the user's input behavior data and issues a security warning when the data does not match the user's input habits; sends the input characters to the server when the match. At the same time, the logic code of the virtual keyboard is obfuscated with user-defined code, and multi-factor authentication is performed when sensitive information is detected.

Benefits of technology

Through custom keyboard layout and input behavior matching checks, the security of the virtual keyboard is improved and illegal data acquisition and abnormal input behavior is prevented. At the same time, obfuscation processing and multi-factor authentication further enhance the security protection capabilities of the virtual keyboard.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119475321A_ABST
    Figure CN119475321A_ABST
Patent Text Reader

Abstract

The invention relates to a virtual keyboard management method and device, computer equipment, a computer readable storage medium and a computer program product. The method comprises the following steps: in response to an input operation in an application program, determining a corresponding keyboard layout mode based on input habit data of a user or a security level corresponding to a current input environment; according to the keyboard layout mode, a virtual keyboard is displayed, input behavior data generated by a user based on the virtual keyboard are obtained, and the input behavior data comprise at least one of keystroke behavior data, modification behavior data, search behavior data, selection behavior data or confirmation behavior data; when the input behavior data is not matched with the input habit data of the user, sending out a safety warning; and under the condition that the input behavior data is matched with the input habit data of the user, sending the characters input by the user to a server. By adopting the method, the safety of the virtual keyboard in the using process can be enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of computer Internet software development, and in particular to a virtual keyboard management method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0002] Virtual keyboards are often used as on-screen keyboards for touch screens. They are often used in web applications (applications accessed through a browser) and are the most commonly used input method for users on touch screens.

[0003] In some sensitive places involving secure input, highly customized virtual keyboards are required, such as transaction payment platforms and sensitive information input platforms. In web applications, the logic code of the user interface is public and readable, and it is easy to be crawled by crawlers to analyze the code logic, which will lead to certain risks.

[0004] The existing technology for the security protection of virtual keyboards still has certain risks. Summary of the invention

[0005] Based on this, it is necessary to provide a virtual keyboard management method, device, computer equipment, computer-readable storage medium and computer program product that can protect the security of the virtual keyboard during use in order to address the above technical problems.

[0006] In a first aspect, the present application provides a virtual keyboard management method, comprising:

[0007] In response to an input operation in the application, determining a corresponding keyboard layout mode based on the user's input habit data or the corresponding security level of the current input environment;

[0008] According to the keyboard layout mode, a virtual keyboard is displayed, and input behavior data generated by the user based on the virtual keyboard is obtained, wherein the input behavior data includes at least one of keystroke behavior data, modification behavior data, search behavior data, selection behavior data, or confirmation behavior data;

[0009] In the case where the input behavior data does not match the input habit data of the user, a security warning is issued externally; in the case where the input behavior data matches the input habit data of the user, the characters input by the user are sent to the server.

[0010] In one embodiment, the method further comprises:

[0011] During the process of the user inputting characters based on the virtual keyboard, when it is detected that the input characters contain sensitive information, multi-factor authentication is initiated to the user, and the multi-factor authentication includes at least one of biometric authentication or password authentication.

[0012] In one of the embodiments, the process corresponding to the virtual keyboard runs in an isolated sandbox environment.

[0013] In one of the embodiments, before displaying the virtual keyboard according to the keyboard layout, the method further includes:

[0014] The logic code of the virtual keyboard and the code injected into the virtual keyboard by the user are obfuscated.

[0015] In one embodiment, sending the characters input by the user to a server includes:

[0016] The characters input by the user are encrypted through the digital certificate and the encrypted characters are sent to the server.

[0017] In one embodiment, the method further comprises:

[0018] In response to the setting operation for the virtual keyboard, the key size of the virtual keyboard, and the font and color used when input characters are displayed on the screen are set.

[0019] In a second aspect, the present application further provides a virtual keyboard management device, comprising:

[0020] A response module, used to respond to input operations in the application program and determine a corresponding keyboard layout mode based on the user's input habit data or the corresponding security level of the current input environment;

[0021] an acquisition module, configured to display a virtual keyboard according to the keyboard layout mode, and acquire input behavior data generated by the user based on the virtual keyboard, wherein the input behavior data includes at least one of keystroke behavior data, modification behavior data, search behavior data, selection behavior data, or confirmation behavior data;

[0022] The sending module is used to issue a security warning when the input behavior data does not match the input habit data of the user; when the input behavior data matches the input habit data of the user, send the characters input by the user to the server.

[0023] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0024] In response to an input operation in the application, determining a corresponding keyboard layout mode based on the user's input habit data or the corresponding security level of the current input environment;

[0025] According to the keyboard layout mode, a virtual keyboard is displayed, and input behavior data generated by the user based on the virtual keyboard is obtained, wherein the input behavior data includes at least one of keystroke behavior data, modification behavior data, search behavior data, selection behavior data, or confirmation behavior data;

[0026] In the case where the input behavior data does not match the input habit data of the user, a security warning is issued externally; in the case where the input behavior data matches the input habit data of the user, the characters input by the user are sent to the server.

[0027] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0028] In response to an input operation in the application, determining a corresponding keyboard layout mode based on the user's input habit data or the corresponding security level of the current input environment;

[0029] According to the keyboard layout mode, a virtual keyboard is displayed, and input behavior data generated by the user based on the virtual keyboard is obtained, wherein the input behavior data includes at least one of keystroke behavior data, modification behavior data, search behavior data, selection behavior data, or confirmation behavior data;

[0030] In the case where the input behavior data does not match the input habit data of the user, a security warning is issued externally; in the case where the input behavior data matches the input habit data of the user, the characters input by the user are sent to the server.

[0031] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0032] In response to an input operation in the application, determining a corresponding keyboard layout mode based on the user's input habit data or the corresponding security level of the current input environment;

[0033] According to the keyboard layout mode, a virtual keyboard is displayed, and input behavior data generated by the user based on the virtual keyboard is obtained, wherein the input behavior data includes at least one of keystroke behavior data, modification behavior data, search behavior data, selection behavior data, or confirmation behavior data;

[0034] In the case where the input behavior data does not match the input habit data of the user, a security warning is issued externally; in the case where the input behavior data matches the input habit data of the user, the characters input by the user are sent to the server.

[0035] The above-mentioned virtual keyboard management method, device, computer equipment, computer-readable storage medium and computer program product first determine the corresponding keyboard layout mode in response to the input operation in the application program based on the user's input habit data or the corresponding security level of the current input environment; display the virtual keyboard according to the keyboard layout mode, obtain the input behavior data generated by the user based on the virtual keyboard, and the input behavior data includes at least one of keystroke behavior data, modification behavior data, search behavior data, selection behavior data or confirmation behavior data; issue a security warning to the outside when the input behavior data does not match the user's input habit data; send the characters input by the user to the server when the input behavior data matches the user's input habit data. In this way, by customizing the layout of the keyboard according to different situations and automatically issuing a security warning when an abnormality is identified, the security of the virtual keyboard during use is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0037] FIG1 is an application environment diagram of a business data processing method in one embodiment;

[0038] FIG2 is a diagram showing an implementation structure of a virtual keyboard management method in one embodiment;

[0039] FIG3 is a schematic diagram of a flow chart of a virtual keyboard management method in one embodiment;

[0040] FIG4 is a schematic diagram of a flow chart of a virtual keyboard management method in another embodiment;

[0041] FIG5 is a block diagram of a virtual keyboard management device according to an embodiment;

[0042] FIG. 6 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0044] The virtual keyboard management method provided in the embodiment of the present application can be applied to the application environment shown in Figure 1. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the input character data of the user that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The head-mounted device can be a virtual reality (VR) device, an augmented reality (AR) device, smart glasses, etc. The server 104 can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.

[0045] The virtual keyboard management method provided in the embodiment of the present application, as shown in the structure of FIG2 , can be applied to most application scenarios of web applications (applications accessed through a browser) that require secure input.

[0046] In one embodiment, as shown in FIG3 , a virtual keyboard management method is provided. This embodiment is illustrated by applying the method to a terminal. It is understandable that the method can also be applied to a server, or to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0047] Step 302, in response to an input operation in the application, based on the user's input habit data or the corresponding security level of the current input environment, determine a corresponding keyboard layout mode.

[0048] In some embodiments, the terminal responds to the user's input operation on the virtual keyboard and customizes the corresponding keyboard layout according to the user's input habits and the security level of the current input environment response.

[0049] Among them, the virtual keyboard is a keyboard displayed on the screen, which the user can operate through a mouse or touch screen; the security level of the current input environment response can be determined by factors such as the current input environment, connected network, and input device.

[0050] Step 304, displaying a virtual keyboard according to the keyboard layout, and obtaining input behavior data generated by the user based on the virtual keyboard, the input behavior data including at least one of keystroke behavior data, modification behavior data, search behavior data, selection behavior data or confirmation behavior data.

[0051] Exemplarily, after the layout of the virtual keyboard is determined, the virtual keyboard is displayed, and at least one of keystroke behavior data of the user on the virtual keyboard is obtained, behavior data is modified, behavior data is searched, behavior data is selected, or behavior data is confirmed.

[0052] Step 306, when the input behavior data does not match the user's input habit data, a security warning is issued externally; when the input behavior data matches the user's input habit data, the characters input by the user are sent to the server.

[0053] In some embodiments, the terminal establishes a normal behavior baseline based on the user's historical input habit data. When it is detected that the user's input behavior deviates from the normal behavior baseline, that is, it does not match the user's input habits, indicating abnormal behavior, a security warning is automatically issued; when the user's input behavior matches the normal behavior baseline, the characters input by the user are sent to the server.

[0054] Among them, the normal behavior baseline is the typical behavior pattern exhibited by an individual or group under normal circumstances in a specific environment; abnormal behavior refers to behavior that does not conform to the user's historical input habits, such as abnormally fast or abnormally slow input speed.

[0055] In another embodiment, the terminal may pre-set a preset risk level. When the risk level of the abnormal behavior is less than the preset risk level, it is ignored; when the risk level of the abnormal behavior is greater than the preset risk level, a security warning is automatically issued.

[0056] In the above virtual keyboard management method, in response to input operations within the application, the corresponding keyboard layout mode is determined based on the user's input habit data or the corresponding security level of the current input environment; according to the keyboard layout mode, the virtual keyboard is displayed, and the input behavior data generated by the user based on the virtual keyboard is obtained, and the input behavior data includes at least one of keystroke behavior data, modification behavior data, search behavior data, selection behavior data or confirmation behavior data; in the case where the input behavior data does not match the user's input habit data, a security warning is issued to the outside; in the case where the input behavior data matches the user's input habit data, the characters input by the user are sent to the server. In this way, by customizing the layout of the keyboard according to different situations and automatically issuing a security warning when an abnormality is identified, the security of the virtual keyboard during use is improved.

[0057] In an exemplary embodiment, the virtual keyboard management method also includes: during the process of the user inputting characters based on the virtual keyboard, when it is detected that the input characters contain sensitive information, initiating multi-factor authentication to the user, and the multi-factor authentication includes at least one of biometric authentication or password authentication.

[0058] In actual implementation, when the user inputs characters based on the virtual keyboard, when the terminal detects that the input characters contain sensitive information, it automatically initiates multi-factor authentication to the user. When the user passes the multi-factor authentication, the characters containing sensitive information entered by the user continue to be uploaded to the server.

[0059] Among them, multi-factor authentication requires users to provide two or more identity authentication factors to access the system, which may be biometric authentication or password authentication, etc., which is not limited in the embodiments of the present application; sensitive information refers to information that may cause harm to personal life, property and safety once it is leaked or used illegally, which may be identity information, payment passwords, etc., which is not limited in the embodiments of the present application.

[0060] In the above embodiment, during the virtual keyboard input process, when sensitive information is involved, multi-factor verification is required to continue uploading the input data, thereby ensuring the security of the input process and preventing information upload errors due to accidental touches.

[0061] In some exemplary embodiments, the process corresponding to the virtual keyboard runs in an isolated sandbox environment.

[0062] Among them, a sandbox environment is an isolated testing environment that allows users to run software, programs or codes in a closed setting without affecting external systems and environments.

[0063] In actual implementation, the entire process of the virtual keyboard running is in an isolated sandbox environment.

[0064] In the above embodiment, by isolating the virtual keyboard and running it in a sandbox environment, it is ensured that even if the web application is attacked, the virtual keyboard will not be invaded.

[0065] In some exemplary embodiments, before displaying the virtual keyboard according to the keyboard layout, the method further includes: obfuscating the logic code of the virtual keyboard and the code injected into the virtual keyboard by the user.

[0066] In actual implementation, before the terminal displays the virtual keyboard according to the customized keyboard layout, it will confuse the logic code of the virtual keyboard and the user-defined code injected into the virtual keyboard. When non-developers enter the debugging interface, they will be stuck in a debugging loop.

[0067] Specifically, the obfuscation process may include replacing some letters, adding meaningless codes, etc. in the logic code of the virtual keyboard without affecting the normal operation of the virtual keyboard.

[0068] In the above embodiment, by performing obfuscation processing in the logic code of the virtual keyboard, the difficulty of cracking the virtual keyboard is increased.

[0069] In some exemplary embodiments, sending the characters input by the user to the server includes: encrypting the characters input by the user by using a digital certificate, and sending the encrypted characters to the server.

[0070] In some embodiments, the terminal uses a digital certificate to encrypt the characters input by the user before sending the characters input by the user to the server.

[0071] The encryption method may be digital certificate encryption, such as TLS / SSL certificate, or other methods with encryption function, which is not limited in the embodiments of the present application.

[0072] In the above embodiment, the security of data during transmission is ensured by encrypting the characters input by the user.

[0073] In some exemplary embodiments, the virtual keyboard management method further includes: in response to a setting operation for the virtual keyboard, setting the key size of the virtual keyboard, and the font and color used when input characters are displayed on the screen.

[0074] In the actual implementation process, the terminal will respond to different users' setting operations for the patrol keyboard, and generate a personalized virtual keyboard layout for each user based on the size of the virtual keyboard set by different users, and the font and color used when input characters are displayed on the screen.

[0075] In the above embodiment, the virtual keyboard layout is different for each user, which increases the difficulty of cracking and improves the security of the virtual keyboard during use.

[0076] To explain the virtual keyboard management method in the present application in detail, an embodiment is used for explanation below. The specific flow chart is shown in FIG4 . By way of example, the present application is explained with a virtual keyboard management method on a specific web application.

[0077] First, before displaying the virtual keyboard according to the customized keyboard layout, the terminal will confuse the logic code of the virtual keyboard and the user-defined code injected into the virtual keyboard.

[0078] Respond to the user's input operation on the virtual keyboard, and customize the size of the corresponding virtual keyboard, the font and color used when the input characters are displayed on the screen according to the user's input habits and the security level of the current input environment response, and generate a personalized keyboard layout.

[0079] A normal behavior baseline is established based on the user's historical input habit data. When it is detected that the user's input behavior deviates from the normal behavior baseline, that is, it does not match the user's input habits, it indicates abnormal behavior, and a security warning is automatically issued; when the user's input behavior matches the normal behavior baseline,

[0080] When the user inputs characters based on the virtual keyboard, it is detected whether the input characters contain sensitive information. If sensitive information is contained, multi-factor authentication is automatically initiated to the user. When the user passes the multi-factor authentication, the characters containing sensitive information input by the user continue to be uploaded to the server.

[0081] Before the characters input by the user are sent to the server, the characters input by the user are encrypted using a digital certificate, and the encrypted characters input by the user are sent to the server.

[0082] This application supports users to set custom encryption methods and layout of keyboard interface keys in a virtual keyboard device, and confuses and anti-debugs user-set logic codes, thereby enhancing the security of the virtual keyboard during use.

[0083] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0084] Based on the same inventive concept, the embodiment of the present application also provides a virtual keyboard management device for implementing the virtual keyboard management method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more virtual keyboard management device embodiments provided below can refer to the limitations of the virtual keyboard management method above, and will not be repeated here.

[0085] In an exemplary embodiment, as shown in FIG5 , a virtual keyboard management device is provided, including: a response module 501, an acquisition module 502 and a sending module 503, wherein:

[0086] The response module is used to respond to the input operation in the application program and determine the corresponding keyboard layout mode based on the user's input habit data or the corresponding security level of the current input environment.

[0087] An acquisition module is used to display a virtual keyboard according to the keyboard layout, and obtain input behavior data generated by the user based on the virtual keyboard, wherein the input behavior data includes at least one of keystroke behavior data, modification behavior data, search behavior data, selection behavior data or confirmation behavior data.

[0088] The sending module is used to issue a security warning when the input behavior data does not match the input habit data of the user; when the input behavior data matches the input habit data of the user, send the characters input by the user to the server.

[0089] In some embodiments, the device also includes a verification module for initiating multi-factor authentication to the user when it is detected that the input characters contain sensitive information during the process of the user inputting characters based on the virtual keyboard. The multi-factor authentication includes at least one of biometric authentication or password authentication.

[0090] In some embodiments, the device further includes a running module for ensuring that a process corresponding to the virtual keyboard runs in an isolated sandbox environment.

[0091] In some embodiments, the device further includes an obfuscation module for obfuscating the logic code of the virtual keyboard and the code injected into the virtual keyboard by the user.

[0092] In some embodiments, the device further includes an encryption module for encrypting characters input by a user through a digital certificate and sending the encrypted characters to a server.

[0093] In some embodiments, the above-mentioned response module is also used to set the key size of the virtual keyboard, and the font and color used when inputting characters on the screen in response to the setting operation on the virtual keyboard.

[0094] Each module in the above virtual keyboard management device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0095] In an exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG6. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner may be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a virtual keyboard management method is implemented. The display unit of the computer device is used to form a visually visible picture, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0096] Those skilled in the art will understand that the structure shown in FIG. 6 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0097] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0098] In response to an input operation in the application, determining a corresponding keyboard layout mode based on the user's input habit data or the corresponding security level of the current input environment;

[0099] According to the keyboard layout mode, a virtual keyboard is displayed, and input behavior data generated by the user based on the virtual keyboard is obtained, wherein the input behavior data includes at least one of keystroke behavior data, modification behavior data, search behavior data, selection behavior data, or confirmation behavior data;

[0100] In the case where the input behavior data does not match the input habit data of the user, a security warning is issued externally; in the case where the input behavior data matches the input habit data of the user, the characters input by the user are sent to the server.

[0101] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0102] In response to an input operation in the application, determining a corresponding keyboard layout mode based on the user's input habit data or the corresponding security level of the current input environment;

[0103] According to the keyboard layout mode, a virtual keyboard is displayed, and input behavior data generated by the user based on the virtual keyboard is obtained, wherein the input behavior data includes at least one of keystroke behavior data, modification behavior data, search behavior data, selection behavior data, or confirmation behavior data;

[0104] In the case where the input behavior data does not match the input habit data of the user, a security warning is issued externally; in the case where the input behavior data matches the input habit data of the user, the characters input by the user are sent to the server.

[0105] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0106] In response to an input operation in the application, determining a corresponding keyboard layout mode based on the user's input habit data or the corresponding security level of the current input environment;

[0107] According to the keyboard layout mode, a virtual keyboard is displayed, and input behavior data generated by the user based on the virtual keyboard is obtained, wherein the input behavior data includes at least one of keystroke behavior data, modification behavior data, search behavior data, selection behavior data, or confirmation behavior data;

[0108] In the case where the input behavior data does not match the input habit data of the user, a security warning is issued externally; in the case where the input behavior data matches the input habit data of the user, the characters input by the user are sent to the server.

[0109] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0110] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0111] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0112] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A virtual keyboard management method, characterized in that: The method comprises: In response to an input operation in the application, determining a corresponding keyboard layout mode based on the user's input habit data or the corresponding security level of the current input environment; According to the keyboard layout mode, a virtual keyboard is displayed, and input behavior data generated by the user based on the virtual keyboard is obtained, wherein the input behavior data includes at least one of keystroke behavior data, modification behavior data, search behavior data, selection behavior data, or confirmation behavior data; In the case where the input behavior data does not match the input habit data of the user, a security warning is issued externally; in the case where the input behavior data matches the input habit data of the user, the characters input by the user are sent to the server.

2. The method according to claim 1, characterized in that The method further comprises: During the process of the user inputting characters based on the virtual keyboard, when it is detected that the input characters contain sensitive information, multi-factor authentication is initiated to the user, and the multi-factor authentication includes at least one of biometric authentication or password authentication.

3. The method according to claim 1, characterized in that The process corresponding to the virtual keyboard runs in an isolated sandbox environment.

4. The method according to claim 1, characterized in that Before displaying the virtual keyboard according to the keyboard layout, the method further includes: The logic code of the virtual keyboard and the code injected into the virtual keyboard by the user are obfuscated.

5. The method according to claim 1, characterized in that The sending the characters input by the user to the server comprises: The characters input by the user are encrypted through the digital certificate and the encrypted characters are sent to the server.

6. The method according to claim 1, characterized in that The method further comprises: In response to the setting operation for the virtual keyboard, the key size of the virtual keyboard, and the font and color used when input characters are displayed on the screen are set.

7. A virtual keyboard management device, characterized in that: The device comprises: A response module, used to respond to input operations in the application program and determine a corresponding keyboard layout mode based on the user's input habit data or the corresponding security level of the current input environment; an acquisition module, configured to display a virtual keyboard according to the keyboard layout mode, and acquire input behavior data generated by the user based on the virtual keyboard, wherein the input behavior data includes at least one of keystroke behavior data, modification behavior data, search behavior data, selection behavior data, or confirmation behavior data; The sending module is used to issue a security warning when the input behavior data does not match the input habit data of the user; when the input behavior data matches the input habit data of the user, send the characters input by the user to the server.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

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

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Cited By

  • Payment equipment keyboard anti-stabbing intelligent safety protection method and payment equipment keyboard anti-stabbing intelligent safety protection system

    CN120805203A

  • A Smart Security Protection Method and System for Anti-Prying of Payment Device Keyboard

    CN120805203B