Input method of encrypted keyboard, input device of encrypted keyboard, medium and equipment
By dynamically adjusting the target key function on the encrypted keyboard, and switching the deletion and backspace functions according to the input scene and character length, the problem of scene restrictions in the existing technology is solved and a more efficient user input experience is achieved.
Patent Information
- Application Number
- CN202510071463.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-16
- Publication Date
- 2025-05-16
AI Technical Summary
The existing encrypted keyboard cannot meet the needs of deletion and backspace functions at the same time in different scenarios, resulting in limitations in application scenarios.
By detecting the initial function of the current input scene and the target key, and combining the character length of the input information, the function of the target key is dynamically adjusted, so as to adapt to the user's input needs.
It realizes that the input needs in different scenarios are met without increasing the number of keys, and improves the keyboard's function utilization rate and user input efficiency.
Smart Images

Figure CN120010677A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of input, and in particular to an input method of an encryption keyboard, an input device, a medium and a device of an encryption keyboard. Background Art
[0002] The encryption keyboard has a blank key. For hardware, this key has no special characteristics. The SP layer can enable the blank key by configuring EnableBackSpace. If it is 0, the blank key is not enabled; if it is 1, the blank key is enabled. If the blank key is enabled, the SP layer uses it as a backspace key, which deletes the previous input, and this backspace effect is only valid in GET_DATA; for GET_PIN, that is, when entering a password, the blank key is invalid, and it cannot delete the existing password from the hardware layer. For the "Correct" key of the encryption keyboard, this key has no special characteristics for the hardware device. Due to inconsistent understanding of the correction key by applications, some applications think it is to correct the last key, and some applications think it is to correct all the inputs this time. At the SP layer, the use of the correction key can be configured by ClearToBackspace. When the configuration is 0, it is used as a clear key; when the configuration is 1, it is used as a backspace, and this performance is only valid in GET_DATA. For GET_PIN, this configuration is invalid and can only be used as a clear key. Usually, a keyboard only has one delete key or backspace key, and both keys are not available at the same time, so the delete or backspace functions cannot be used in different application scenarios at the same time. Summary of the invention
[0003] The present application provides an input method, device, medium and electronic device for an encryption keyboard, which can dynamically adjust the functions of keys, increase key functions without increasing the number of keys, and meet input requirements in different scenarios.
[0004] In a first aspect, the present application provides an input method of an encryption keyboard, comprising:
[0005] Detecting the current input scenario and the initial key function of the target key, wherein the key functions of the target key include a delete function and a backspace function;
[0006] Detecting the character length of the input information, and determining whether to switch the key function of the target key according to the input scenario and the character length;
[0007] When the target key is triggered, the corresponding input operation is performed according to the current key function of the target key.
[0008] According to the encryption keyboard input method of this embodiment, when the user inputs information, the key function of the target key can be automatically adjusted according to the character length of the input information, so that it can adapt to the user's input needs to achieve deletion and backspace.
[0009] In a second aspect, the present application provides an input device for an encryption keyboard, comprising:
[0010] An information confirmation module, used to detect the current input scene and the initial key function of the target key, wherein the key functions of the target key include a delete function and a backspace function;
[0011] An adaptive adjustment module, used to detect the character length of the input information, and determine whether to switch the key function of the target key according to the input scenario and the character length;
[0012] The function determination module is used to perform a corresponding input operation according to the current key function of the target key when the target key is triggered.
[0013] In a third aspect, the present application provides an electronic device, the electronic device comprising a memory and one or more processors. The memory stores one or more computer programs, the computer programs comprising instructions, and when the instructions are executed by the processor, the electronic device can execute the input method of the encryption keyboard in the first aspect.
[0014] In a fourth aspect, the present application provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on an electronic device, the electronic device executes the input method of the encryption keyboard in the first aspect.
[0015] In a fifth aspect, the present application provides a computer program product, which, when executed on an electronic device, enables the electronic device to execute the encryption keyboard input method as described in the first aspect.
[0016] It can be understood that the beneficial effects that can be achieved by the input device, electronic device, computer-readable storage medium, and computer program product of the encryption keyboard provided above can refer to the beneficial effects in the first aspect and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A schematic diagram of a flow chart of an input method of an encryption keyboard provided in an embodiment of the present application;
[0018] Figure 2 A schematic diagram of the structure of an input device of an encryption keyboard provided in an embodiment of the present application;
[0019] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0020] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second" and the like are used to distinguish the same items or similar items with substantially the same functions and effects. For example, the first chip and the second chip are only used to distinguish different chips, and their order is not limited. Those skilled in the art can understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not necessarily limit the difference. It should be noted that in the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design solutions. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way. In the embodiments of the present application, "at least one" refers to one or more, and "more" refers to two or more.
[0021] It should be noted that the “at…” in the embodiments of the present application may be the instant when a certain situation occurs, or may be a period of time after the occurrence of a certain situation, and the embodiments of the present application do not specifically limit this.
[0022] The implementation of this embodiment will be described in detail below with reference to the accompanying drawings.
[0023] This embodiment provides an input method for an encryption keyboard. By way of example, the input method for an encryption keyboard can be applied to various electronic devices such as computers (PCs), tablet computers, financial terminals (such as ATMs), virtual reality / augmented reality devices, wearable devices, industrial computers, and car computers; it can also be applied to servers, cloud computing, server clusters, etc., and this embodiment does not make any special limitations on this.
[0024] Figure 1 A flow chart of an input method of an encryption keyboard provided in an embodiment of the present application is shown.
[0025] like Figure 1 As shown, the input method of the encryption keyboard may include the following steps:
[0026] Step 101: Detect the current input scene and the initial key function of the target key, where the key functions of the target key include a delete function and a backspace function.
[0027] Step 102: Detect the character length of the input information, and determine whether to switch the key function of the target key according to the input scenario and the character length.
[0028] Step 103: When the target key is triggered, a corresponding input operation is performed according to the current key function of the target key.
[0029] The encryption keyboard refers to the input tool of the application or terminal, which can be a physical keyboard or a virtual keyboard. The target key is a physical key or a virtual key on the encryption keyboard, which can include a backspace key, a delete key, and a blank key. Usually, there is only one target key on the encryption keyboard. When the target key is used to perform the backspace function, it is called the backspace key. When the target key is used to delete, it is called the delete key.
[0030] In an exemplary embodiment, the input scenario includes a plain text scenario; determining whether to switch the key function of the target key based on the input scenario and the character length includes: when the input scenario is a plain text scenario and the initial key function is a delete function, when the character length is greater than a first preset value, the key function of the target key is switched to a backspace function, and when the character length is not greater than the first preset value, the key function of the target key is maintained as the delete function; when the input scenario is a plain text scenario and the initial key function is a backspace function, when the character length is greater than the first preset value, the key function of the target key is maintained as the backspace function, and when the character length is not greater than the first preset value, the key function of the target key is switched to the delete function.
[0031] In an exemplary embodiment, the input scenario includes a ciphertext scenario; determining whether to switch the key function of the target key based on the input scenario and the character length includes: when the input scenario is a ciphertext scenario and the initial key function is a delete function, when the character length is not less than a second preset value, the key function is switched to a backspace function, and when the character length is less than the second preset value, the key function is maintained as the delete function; when the input scenario is a ciphertext scenario and the initial key function is a backspace function, when the character length is not less than the second preset value, the key function is maintained as the backspace function, and when the character length is less than the second preset value, the key function is switched to the delete function.
[0032] In an exemplary embodiment, the method also includes determining whether the encryption algorithm adopted by the ciphertext scenario is the target algorithm when the input scenario is a ciphertext scenario; if the encryption algorithm is the target algorithm, when the initial key function is a delete function, when the character length is not less than a third preset value, the key function is switched to a backspace function, and when the character length is less than the third preset value, the key function is maintained as the delete function; when the initial key function is the backspace function, when the character length is not less than the third preset value, the key function is maintained as the backspace function, and when the character length is less than the third preset value, the key function is switched to the delete function; the third preset value is greater than the second preset value.
[0033] The first preset value may be 6 characters, the second preset value may be 4 characters, and the third preset value may be 16 characters. It is understandable that the first preset value, the second preset value, and the third preset value may be set according to actual needs, for example, the first preset value is 5, the second preset value is 5, the third preset value is 10, etc., and the present embodiment is not limited thereto.
[0034] This embodiment includes two different business scenarios, one is a plain text scenario, in which the information input by the user can be displayed, the user can see the content he / she input, and the application can also read the content input by the user; the other is a cipher text scenario, in which the application cannot read the content input by the user, and the content input by the user is displayed as cipher text. The following introduces these two scenarios respectively:
[0035] 1) Plain text scenario (such as transfer account input):
[0036] If the target key is initially the Delete key:
[0037] If the entered account number is longer than 6 characters, the delete key will be converted to a backspace key and only 1 character will be deleted.
[0038] If the length of the entered account number is less than or equal to 6 characters, the delete key retains its original function and deletes all characters.
[0039] If the target key is initially the backspace key:
[0040] If the entered account number is longer than 6 characters, the backspace key retains its original function and only deletes 1 character.
[0041] If the length of the entered account number is less than or equal to 6 characters, the backspace key will become the delete key to delete all characters.
[0042] 2) Ciphertext scenarios (such as password input, key input):
[0043] If the target key is initially the Delete key:
[0044] If the entered password is longer than or equal to 4 characters, the delete key turns into a backspace key and only 1 character is deleted.
[0045] If the entered password is less than 4 characters long, the Delete key retains its original function and deletes all characters.
[0046] If the encryption algorithm is 3DES or SM4, when the length of the entered key is greater than or equal to 16 characters, the delete key will be converted to a backspace key, and only one character will be deleted.
[0047] If the entered key is less than 16 characters long, the Delete key retains its original function and deletes all characters.
[0048] If the target key is initially the backspace key:
[0049] If the entered password is longer than or equal to 4 characters, the backspace key retains its original function and only deletes 1 character.
[0050] If the entered password is less than 4 characters long, the backspace key becomes the delete key, deleting all characters.
[0051] If the encryption algorithm is 3DES or SM4, and the key length entered is greater than or equal to 16 characters, the backspace key retains its original function and only deletes one character.
[0052] If the entered key is less than 16 characters long, the backspace key becomes the delete key, deleting all characters.
[0053] In the above implementation, the key function can be dynamically adjusted according to the input length of the input information when the user inputs, so as to adapt to the input scenario of the application and meet the input needs of the user. This implementation can also adjust the key type according to the user's key event. Specifically, it includes: when the initial key function of the target key is to move the cursor left, detecting the user's trigger operation on the target key; if the trigger operation is an operation of clicking twice in a row, the key function of the target key is switched to the cursor left function; if the trigger operation of clicking twice in a row is detected again, the key function of the target key is switched to the backspace function.
[0054] If the key is detected to be pressed twice in quick succession, the key working mode switches to the cursor left shift function. Each time the key is pressed, the cursor moves one position to the left. If it is detected to be pressed twice in quick succession again, the key working mode switches to the backspace key function. If the cursor is in the middle of a character or number, and a number key or character key is detected to be pressed, the number or character is entered at the cursor position, and other numbers or characters to the right of the cursor automatically move to the right. Until the position is full.
[0055] In this implementation, one key switches between delete, backspace, and cursor functions in different scenarios, which can adapt to application services to the greatest extent, improve key utilization, and improve user input efficiency.
[0056] The key function of the target key is adaptively adjusted according to the character length of the input information. When it is detected that the user clicks the target key, the target key is triggered and the corresponding input operation is performed according to the current key function of the target key. If the current key function of the target key is the delete function, the input information that has been entered is deleted; if the current key function of the target key is the backspace function, the last character of the input information that has been entered is deleted.
[0057] The implementation method further includes: displaying prompt information, wherein the prompt information is used to prompt the user of the current key function of the target key. While the key function of the target key is adaptively adjusted, prompt information is displayed to prompt the user of the current key function, so that the user can understand the function of the target key. In addition, switching prompt information can also be displayed, and the switching prompt information is used to prompt the switching condition of the character length.
[0058] The implementation process of the above method is as follows:
[0059] 1) Initialization:
[0060] First, the input buffer is initialized to store the characters entered by the user. Then the key state is initialized to record whether the initial key is the delete function or the backspace function.
[0061] 2)Key event processing
[0062] Capture user key events and determine whether the key type is the delete key or the backspace key.
[0063] Dynamically adjust key functions based on the current input scenario (plain text or cipher text) and input length.
[0064] 3) Plaintext scene processing
[0065] Delete key:
[0066] Check input length:
[0067] If the length is > 6, call the backspace function to delete 1 character.
[0068] If the length is ≤ 6, call the delete key function to delete all characters.
[0069] Backspace key:
[0070] Check input length:
[0071] If the length is > 6, call the backspace function to delete 1 character.
[0072] If the length is ≤ 6, call the delete key function to delete all characters.
[0073] 4) Ciphertext scene processing
[0074] Delete key:
[0075] Check input type (password or key) and length:
[0076] If it is a password and its length is ≥ 4, call the backspace function to delete 1 character.
[0077] If it is a password and its length is < 4, call the delete key function to delete all characters.
[0078] If it is a key and its length is ≥ 16, call the backspace function to delete 1 character.
[0079] If it is a key and its length is <16, call the delete key function to delete all characters.
[0080] Backspace key:
[0081] Check input type (password or key) and length:
[0082] If it is a password and its length is ≥ 4, call the backspace function to delete 1 character.
[0083] If it is a password and its length is < 4, call the delete key function to delete all characters.
[0084] If it is a key and its length is ≥ 16, call the backspace function to delete 1 character.
[0085] If it is a key and its length is <16, call the delete key function to delete all characters.
[0086] In financial terminals (such as ATMs and self-service terminals), users often need to enter sensitive information, such as ID card numbers, bank card numbers, or passbook numbers. In order to improve user experience and input accuracy, terminals usually provide delete or backspace functions to allow users to modify during the input process.
[0087] The present application also provides an adaptive system for key matching deletion or backspace function of a financial terminal, including the following system function modules:
[0088] 1. User input module
[0089] Function: Receive user key input, including numbers, letters, symbols, and special function keys (such as delete key, backspace key, etc.).
[0090] Interaction: Pass the key information entered by the user to the input parsing module for processing.
[0091] 2. Input parsing module
[0092] Function: Parse the key information entered by the user and identify the key type (numbers, letters, symbols, delete key, backspace key, etc.).
[0093] Interaction: Pass the parsed key information to the adaptive matching module for further processing.
[0094] 3. Adaptive matching module
[0095] Functionality: Adaptively match the behavior of the delete or backspace functionality based on the user input history and current input context.
[0096] Interaction: Pass the matching results to the operation execution module to perform corresponding operations.
[0097] 4. Operation execution module
[0098] Function: Execute specific deletion or backspace operations according to the instructions of the adaptive matching module.
[0099] Interaction: Feedback the operation results to the user interface module for display.
[0100] 5. User interface module
[0101] Function: Display user input information and operation results, and provide an intuitive user interaction interface.
[0102] Interaction: Receive feedback from the operation execution module and update the displayed content.
[0103] 6. History Module
[0104] Function: Record the user's input history, including key sequence, operation time, etc., for reference by the adaptive matching module.
[0105] Interaction: Provide history records to the adaptive matching module for analysis.
[0106] 7. Configuration Management Module
[0107] Function: Manage the configuration parameters of the system, including adaptive matching strategies, user preference settings, etc.
[0108] Interaction: Provide configuration parameters to the adaptive matching module and the operation execution module to ensure the personalization and flexibility of the system.
[0109] Collaborative interaction principles of each module
[0110] 1. User input module → input parsing module
[0111] After receiving the key input from the user, the user input module passes it to the input parsing module for parsing.
[0112] 2. Input parsing module → adaptive matching module
[0113] After the input parsing module parses the key information input by the user, it passes the parsing result to the adaptive matching module for matching processing.
[0114] 3. Adaptive matching module → History module
[0115] The adaptive matching module performs adaptive matching based on the current input and the historical data provided by the history record module.
[0116] 4. Adaptive matching module → operation execution module
[0117] The adaptive matching module passes the matching result to the operation execution module, instructing it to execute the corresponding deletion or backspace operation.
[0118] 5. Operation execution module → user interface module
[0119] After the operation execution module executes the delete or backspace operation, it feeds back the operation result to the user interface module to update the display content.
[0120] 6. Adaptive matching module → configuration management module
[0121] The adaptive matching module adjusts the matching strategy and behavior according to the configuration parameters provided by the configuration management module.
[0122] 1. Input detection: detect each character entered by the user and record the complete string of input.
[0123] 2. Delete / backspace processing: Execute the delete or backspace operation according to the user's selection.
[0124] 3. Input verification: After each modification, re-verify the legality of the input to ensure that the input conforms to the expected format.
[0125] 4. Adaptive prompts: Provide appropriate prompt information based on the current input status to help users complete input.
[0126] For example, suppose a user needs to enter an 18-digit ID number, and the user is allowed to modify it during the input process.
[0127] Initial Input
[0128] User input: 123456789012345678
[0129] Modify Operation
[0130] 1. Delete the last digit
[0131] User action: Press the Backspace key
[0132] System processing:
[0133] Get the current input string: 123456789012345678
[0134] Delete the last character: 12345678901234567
[0135] Results: Displayed on screen: 12345678901234567
[0136] 2. Delete the 10th position
[0137] User operation: Move the cursor to the 10th position and press the Delete key.
[0138] System processing:
[0139] Get the current input string: 12345678901234567
[0140] Delete the 10th character: 1234567891234567
[0141] Results: Displayed on screen: 1234567891234567
[0142] 3. Add a
[0143] User operation: Move the cursor to the 10th position and enter the number 0
[0144] System processing:
[0145] Get the current input string: 1234567891234567
[0146] Insert character 0 at position 10: 12345678901234567
[0147] Results: Displayed on screen: 12345678901234567
[0148] 4. Delete multiple bits continuously
[0149] User operation: Press the Backspace key three times in a row
[0150] System processing:
[0151] Get the current input string: 12345678901234567
[0152] Delete the last three characters consecutively: 12345678901234
[0153] Results: Displayed on screen: 12345678901234
[0154] 5. Input verification
[0155] User operation: After completing the input, the system automatically performs input verification
[0156] System processing:
[0157] Check input length: Make sure the input length is 18 bits
[0158] Verify format: Make sure the input meets the format requirements of the ID card number
[0159] The results show:
[0160] If the input is legal, a confirmation message will be displayed: The ID number entered is: 123456789012345678. If the input is illegal, an error message will be displayed: Please enter a valid 18-digit ID number.
[0161] Furthermore, this embodiment also provides an input device for an encryption keyboard, which can be used to execute the above-mentioned input method for the encryption keyboard. Figure 2 As shown, the input device 200 of the encryption keyboard specifically includes: an information confirmation module 201, which is used to currently detect the current input scene and the initial key function of the target key, and the key function of the target key includes a delete function and a backspace function; an adaptive adjustment module 202, which is used to detect the character length of the input information, and determine whether to switch the key function of the target key according to the input scene and the character length; a function determination module 203, which is used to perform a corresponding input operation according to the current key function of the target key when the target key is triggered.
[0162] In an exemplary embodiment, the input scenario includes a plain text scenario; the adaptive adjustment module 202 is specifically used to, when the input scenario is a plain text scenario and the initial key function is a delete function, switch the key function of the target key to a backspace function when the character length is greater than a first preset value, and keep the key function of the target key as the delete function when the character length is not greater than the first preset value; when the input scenario is a plain text scenario and the initial key function is a backspace function, when the character length is greater than the first preset value, keep the key function of the target key as the backspace function, and switch the key function of the target key to the delete function when the character length is not greater than the first preset value.
[0163] In an exemplary embodiment, the input scenario includes a ciphertext scenario; the adaptive adjustment module 202 is specifically used to, when the input scenario is a ciphertext scenario and the initial key function is a delete function, switch the key function to a backspace function when the character length is not less than a second preset value, and maintain the key function as the delete function when the character length is less than the second preset value; when the input scenario is a ciphertext scenario and the initial key function is a backspace function, when the character length is not less than the second preset value, maintain the key function as the backspace function, and switch the key function to the delete function when the character length is less than the second preset value.
[0164] In an exemplary embodiment, the adaptive adjustment module 202 is also used to determine whether the encryption algorithm adopted by the ciphertext scenario is the target algorithm when the input scenario is a ciphertext scenario; if the encryption algorithm is the target algorithm, when the initial key function is the delete function, when the character length is not less than a third preset value, the key function is switched to a backspace function, and when the character length is less than the third preset value, the key function is maintained as the delete function; when the initial key function is the backspace function, when the character length is not less than the third preset value, the key function is maintained as the backspace function, and when the character length is less than the third preset value, the key function is switched to the delete function; the third preset value is greater than the second preset value.
[0165] In an exemplary embodiment, the input device 200 of the encryption keyboard also includes a key event capture module, which is used to detect the user's trigger operation on the target key when the initial key function of the target key is to move the cursor left; if the trigger operation is performed twice in a row, the key function of the target key is switched to the cursor left function; if the trigger operation of clicking twice in a row is detected again, the key function of the target key is switched to the backspace function.
[0166] In an exemplary embodiment, the function determination module 203 is specifically used to delete the input information that has been entered if the current key function of the target key is the delete function; if the current key function of the target key is the backspace function, delete the last character of the input information that has been entered.
[0167] In an exemplary embodiment, a prompt module is further included, which is used to display prompt information, where the prompt information is used to prompt the user of the current key function of the target key.
[0168] The specific details of each module or unit in the input device of the above-mentioned encryption keyboard have been described in detail in the corresponding input method of the encryption keyboard, so they will not be repeated here.
[0169] The embodiment of the present application also provides an electronic device, Figure 3 A schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure is shown. Figure 3 The electronic device 600 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0170] like Figure 3 As shown, electronic device 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In RAM 603, various programs and data required for system operation are also stored. CPU 601, ROM 602 and RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to bus 604.
[0171] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0172] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the embodiment of the present application are executed.
[0173] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0174] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0175] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, and the units described may also be arranged in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0176] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and the one or more programs include instructions, and when the instructions are executed by the electronic device, the electronic device implements the method described in the above embodiment.
[0177] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0178] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. An input method for an encryption keyboard, characterized in that: include: Detecting the current input scenario and the initial key function of the target key, wherein the key functions of the target key include a delete function and a backspace function; Detecting the character length of the input information, and determining whether to switch the key function of the target key according to the input scenario and the character length; When the target key is triggered, the corresponding input operation is performed according to the current key function of the target key.
2. The encryption keyboard input method according to claim 1, characterized in that: The input scenario includes a plain text scenario; The determining whether to switch the key function of the target key according to the input scenario and the character length includes: When the input scenario is a plain text scenario and the initial key function is a delete function, when the character length is greater than a first preset value, the key function of the target key is switched to a backspace function, and when the character length is not greater than the first preset value, the key function of the target key is kept as the delete function; When the input scenario is a plain text scenario and the initial key function is a backspace function, when the character length is greater than the first preset value, the key function of the target key is kept as the backspace function; when the character length is not greater than the first preset value, the key function of the target key is switched to the delete function.
3. The input method of the encryption keyboard according to claim 1, characterized in that: The input scenario includes a ciphertext scenario; The determining whether to switch the key function of the target key according to the input scenario and the character length includes: When the input scenario is a ciphertext scenario and the initial key function is a delete function, when the character length is not less than a second preset value, the key function is switched to a backspace function, and when the character length is less than the second preset value, the key function is kept as the delete function; When the input scenario is a ciphertext scenario and the initial key function is a backspace function, when the character length is not less than a second preset value, the key function is maintained as the backspace function, and when the character length is less than the second preset value, the key function is switched to the delete function.
4. The input method of the encryption keyboard according to claim 3, characterized in that: Also includes: When the input scenario is a ciphertext scenario, determining whether the encryption algorithm adopted by the ciphertext scenario is a target algorithm; If the encryption algorithm is the target algorithm and the initial key function is the delete function, when the character length is not less than a third preset value, the key function is switched to the backspace function, and when the character length is less than the third preset value, the key function is kept as the delete function; When the initial key function is the backspace function, when the character length is not less than a third preset value, the key function is maintained as the backspace function; when the character length is less than the third preset value, the key function is switched to the delete function; the third preset value is greater than the second preset value.
5. The input method of the encryption keyboard according to claim 1, characterized in that: The performing a corresponding input operation according to the current key function of the target key includes: If the current key function of the target key is a delete function, delete the input information that has been entered; If the current key function of the target key is a backspace function, the last character of the input information that has been entered is deleted.
6. The input method of the encryption keyboard according to claim 1, characterized in that: Also includes: When the initial key function of the target key is to move the cursor left, detecting a triggering operation of the target key by the user; If the trigger operation is performed twice in succession, the key function of the target key is switched to a cursor left movement function; If the trigger operation of clicking twice in succession is detected again, the key function of the target key is switched to the backspace function.
7. The input method of the encryption keyboard according to claim 1, characterized in that: Also includes: Display prompt information, where the prompt information is used to prompt the user of the current key function of the target key.
8. An input device for an encryption keyboard, characterized in that: include: An information confirmation module, used to detect the current input scene and the initial key function of the target key, wherein the key functions of the target key include a delete function and a backspace function; An adaptive adjustment module, used to detect the character length of the input information, and determine whether to switch the key function of the target key according to the input scenario and the character length; The function determination module is used to perform a corresponding input operation according to the current key function of the target key when the target key is triggered.
9. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the input method of the encryption keyboard as claimed in any one of claims 1 to 7.
10. An electronic device, characterized in that: It comprises a processor and a memory, wherein one or more computer programs are stored in the memory, and the one or more computer programs include instructions. When the instructions are executed by the electronic device, the electronic device executes the input method of the encryption keyboard described in any one of claims 1 to 7.