Input box control method and device, equipment, storage medium and product

By setting plain text and cipher text input boxes in the browser's preset security page, the history function is avoided, and the privacy leakage caused by automatic backfill of the browser is solved, which significantly improves user privacy and data security.

CN119089501AInactive Publication Date: 2024-12-06CHINA MERCHANTS BANK
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411222259.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-02
Publication Date
2024-12-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing browsers can easily lead to privacy leakage when users enter content, especially when non-users themselves operate, sensitive information that is automatically backfilled is easily leaked.

Method used

Set the plain text input box and cipher text input box in the browser's preset security page, and dynamically adjust the type of the input box by receiving external switching operations to avoid the history function and ensure that sensitive information is not automatically recorded or leaked.

Benefits of technology

Effectively prevent the automatic backfill and leakage of sensitive information, enhance user privacy and data security, meet privacy needs in different scenarios, and improve users' ability to control information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119089501A_ABST
    Figure CN119089501A_ABST
Patent Text Reader

Abstract

The invention discloses an input box control method and device, equipment, a storage medium and a computer program product, and relates to the technical field of front-end development, the input box control method and device are applied to a browser, a preset security page of the browser comprises an original input box, the original input box is not configured with a historical record function, and the original input box comprises a plaintext input box and a ciphertext input box. The input box control method comprises the steps that switching operation input externally is received; and displaying the plaintext input box or the ciphertext input box based on the switching operation, and rendering the input content in the corresponding form in the plaintext input box or the ciphertext input box. The technical problem of how to reduce the risk of privacy disclosure and ensure the security of user data is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of front-end development technology, and in particular to an input box control method, device, equipment, storage medium and computer program product. Background Art

[0002] At present, with the development of science and technology, the Internet has become a broad stage for knowledge exploration and information acquisition. As a bridge connecting users and the online world, browsers have won the favor of the majority of users with their convenient operation interface and powerful functions. However, with the widespread use of browsers, users' privacy protection needs are gradually increasing. Browsers will record user history records and automatically fill in the information when users search or enter the same content next time. However, this situation is very easy to lose personal data when it is not operated by the user himself, resulting in privacy leakage. Summary of the invention

[0003] The main purpose of this application is to provide an input box control method, device, equipment, storage medium and computer program product, aiming to solve the technical problem of how to reduce the risk of privacy leakage and ensure the security of user data.

[0004] To achieve the above object, the present application proposes an input box control method, which is applied to a browser, wherein a preset security page of the browser includes an original input box, the original input box is not configured with a history record function, and the original input box includes a plain text input box and a cipher text input box. The input box control method includes:

[0005] Receive switching operations from external input;

[0006] Based on the switching operation, the plain text input box or the cipher text input box is displayed, and input content of a corresponding form is rendered in the plain text input box or the cipher text input box.

[0007] In one embodiment, the step of displaying the plain text input box or the cipher text input box based on the switching operation, and rendering the input content of the corresponding form in the plain text input box or the cipher text input box includes:

[0008] In response to an external switching operation on the original input box, determining the type of the state switching icon before triggering the switching operation, wherein the type of the state switching icon includes a plain text icon and a cipher text icon, which is used to determine a response action for the switching operation;

[0009] If the type of the state switching icon is the ciphertext icon, the response action of the switching operation is to switch the ciphertext icon to the plaintext icon, hide the ciphertext input box, render the input content in plaintext form in the plaintext input box, and display the plaintext input box;

[0010] If the type of the status switching icon is the plain text icon, the response action of the switching operation is to switch the plain text icon to the cipher text icon, hide the plain text input box, render the input content in cipher text form in the cipher text input box, and display the cipher text input box.

[0011] In one embodiment, the input box control method further includes:

[0012] Responding to an external editing operation on the content input in the original input box;

[0013] The input content in the original input box is adjusted according to the editing operation, where the editing operation includes at least one of an insert operation and a delete operation.

[0014] In one embodiment, the step of adjusting the input content in the original input box according to the editing operation includes:

[0015] Determine the type of the original input box;

[0016] If the type of the original input box is a plain text input box, adjusting the input content in the plain text input box according to the editing operation, and rendering the adjusted input content in plain text to the plain text input box;

[0017] If the type of the original input box is a ciphertext input box, the input content in the plaintext state is obtained, the input content in the plaintext state is adjusted according to the editing operation, and the adjusted input content is rendered in the ciphertext input box in ciphertext form.

[0018] In one embodiment, the step of adjusting the input content in the plain text input box according to the editing operation includes:

[0019] If the operation type is the insert operation, confirming the type of the insert operation;

[0020] When the type of the insert operation is normal cursor-after-insert, obtaining the position of the system cursor in the input content of the plain text input box, recording it as a first cursor position, inserting the first user content to be inserted at the first cursor position, and recording the input content after the insertion as the first input content;

[0021] When the type of the insert operation is selected insert, the starting position and the ending position of the system cursor in the current input content are obtained and recorded as the first cursor starting position and the first cursor ending position respectively, and the input content between the first cursor starting position and the first cursor ending position is replaced with the second user content to be inserted, and the input content after insertion is recorded as the second input content.

[0022] In one embodiment, the step of adjusting the input content in the plain text input box according to the editing operation includes:

[0023] If the operation type is the deletion operation, confirming the type of the deletion operation;

[0024] When the type of the deletion operation is normal cursor-back deletion, the position of the system cursor in the current input content is obtained and recorded as the second cursor position, and the content to be deleted by the user is deleted from the second cursor position forward, and the input content after the deletion is recorded as the third input content;

[0025] When the type of the deletion operation is selected deletion, the starting position and the ending position of the cursor in the current input content are obtained, which are recorded as the second cursor starting position and the second cursor ending position respectively, the input content between the second cursor starting position and the second cursor ending position is deleted, and the deleted input content is recorded as the fourth input content.

[0026] In addition, to achieve the above purpose, the present application also proposes an input box control device, the input box control device comprising:

[0027] A receiving module, used for receiving a switching operation inputted from an external source;

[0028] A switching module is used to display the plain text input box or the cipher text input box based on the switching operation, and render the input content of the corresponding form in the plain text input box or the cipher text input box.

[0029] In addition, to achieve the above-mentioned purpose, the present application also proposes an input box control device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the input box control method described above.

[0030] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the input box control method described above are implemented.

[0031] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the input box control method described above are implemented.

[0032] This application sets an original input box that does not retain the user input history in the preset security page of the browser, displays the plain text input box and the cipher text input box based on the switching operation of the received external input, and displays the corresponding form of input content in the plain text input box and the cipher text input box. That is, in the preset security page of the browser, two types of original input boxes are designed: the plain text input box and the cipher text input box, and the original input box is not configured with the history record function, which effectively prevents sensitive information from being automatically recorded or leaked by the browser, and by receiving the switching operation of the external input, according to the received switching operation, the corresponding form of input content is rendered in the displayed plain text input box or cipher text input box, which enhances the flexibility of user use. At the same time, it allows the user to flexibly choose between the plain text input box and the cipher text input box according to the current needs, meets the privacy needs of users in different scenarios, protects sensitive information from being stolen, and achieves a significant improvement in user privacy and data security. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0034] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0035] Figure 1 A flowchart of the first embodiment of the input box control method of the present application is provided;

[0036] Figure 2 A schematic diagram of a plaintext-encrypted text switching scenario provided in Embodiment 1 of the input box control method of the present application;

[0037] Figure 3 A flowchart of the second embodiment of the input box control method of the present application is provided;

[0038] Figure 4 This is a schematic diagram of the module structure of the input box control device according to an embodiment of the present application;

[0039] Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the input box control method in the embodiment of the present application.

[0040] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0041] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0042] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0043] The input box control method of the embodiment of the present application is applied to a browser, and the preset security page of the browser includes an original input box, and the original input box is not configured with a history record function. The original input box includes a plain text input box and a cipher text input box. The input box control method includes: receiving a switching operation of an external input; based on the switching operation, displaying a plain text input box or a cipher text input box, and rendering a corresponding form of input content in the plain text input box or the cipher text input box.

[0044] In this embodiment, for the convenience of description, the following description is made with the browser system as the execution subject.

[0045] Since most current browsers have the function of recording user history, the original intention of this design is to improve the user experience. Through intelligent prediction and automatic backfill functions, it provides convenience when the user searches or enters similar content next time. However, this feature also invisibly lays hidden dangers to the user's privacy and security. When the device is not operated by the user himself, these automatically backfilled personal information, such as search keywords, login credentials and other sensitive data, can easily be inadvertently exposed, thereby causing privacy leakage and security risks to the user.

[0046] The present application provides a solution, which can prevent the leakage of sensitive information by setting a plaintext input box and a ciphertext input box on a preset security page in the browser, and the plaintext input box and the ciphertext input box do not have a history record function. At the same time, the user can flexibly choose between plain text and ciphertext through switching operations, and render the input content in the plaintext input box or the ciphertext input box as needed, thereby enhancing the flexibility of use, meeting different privacy needs, and significantly improving user privacy and data security.

[0047] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a browser system, etc. The following takes the browser system as an example to illustrate this embodiment and the following embodiments.

[0048] Based on this, the embodiment of the present application provides an input box control method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the input box control method of the present application.

[0049] In this embodiment, the input box control method is applied to a browser, the preset security page of the browser includes an original input box, the original input box is not configured with a history record function, the original input box includes a plain text input box and a cipher text input box, and the input box control method includes steps S10 to S20:

[0050] Step S10, receiving a switching operation input from an external source;

[0051] It should be noted that the preset security page refers to the page where the browser processes sensitive information, such as the user login page, payment operation page, etc. The original input box does not have functions such as automatic filling and recording history that may leak user privacy, thereby ensuring the immediacy and security of the input content. In the preset security page of the browser, the browser system monitors and receives operation events of the original input box from the user or external device: by clicking the status switching icon next to the original input box that indicates the current input content form, a switching request between the plaintext input box and the ciphertext input box is triggered, including switching the plaintext input box to the ciphertext input box and switching the ciphertext input box to the plaintext input box. These operation events are recorded as switching operations.

[0052] Step S20: Based on the switching operation, a plain text input box or a cipher text input box is displayed, and input content of a corresponding form is rendered in the plain text input box or the cipher text input box.

[0053] It should be noted that the type of state switching icon is determined according to the switching operation of the received external input, including a plaintext icon and a ciphertext icon. The plaintext icon corresponds to switching the plaintext input box to a ciphertext input box, and the ciphertext icon corresponds to switching the ciphertext input box to a plaintext input box. The plaintext input box is used to receive and display input content in plaintext form, and the user can directly view and edit the input content. The ciphertext input box is used to receive and display input content in ciphertext form, and the input content in the input box is encrypted or hidden to prevent sensitive information from being read directly.

[0054] It is understandable that since most current browsers have the function of recording user history records, when the device is not operated by the user himself, the personal information that is automatically filled in can easily be stolen by others, causing the user's personal privacy to be leaked. Therefore, deploying the original input box without the history record function in the browser's preset security page solves the problem of sensitive information leakage that may be caused by the browser's auto-fill function, avoids the risk of malicious exploitation due to security vulnerabilities in the browser or third-party plug-ins, and then leaking user privacy, significantly improves the level of privacy protection when users enter sensitive information, and ensures the security of information during transmission and storage.

[0055] It is understandable that since users need to flexibly switch input box types according to different scenarios to ensure that data input is both convenient and safe, steps S10 to S20 are performed. After receiving the user's switching operation, the browser system dynamically adjusts the type of the original input box according to the specific content of the operation to display input content in different forms, thereby meeting the user's demand for information transparency in different usage scenarios, and ensuring that sensitive information can be protected when it does not need to be directly viewed.

[0056] In a feasible implementation, in step S20, based on the switching operation, the steps of displaying the plain text input box or the cipher text input box and rendering the corresponding form of input content in the plain text input box or the cipher text input box include A01 to A03:

[0057] Step A01, responding to an external switching operation on the original input box, determining the type of the state switching icon before triggering the switching operation, wherein the type of the state switching icon includes a plain text icon and a cipher text icon, which is used to determine the response action of the switching operation;

[0058] It should be noted that the status switching icon refers to the icon next to the original input box that indicates the display status (plain text or cipher text) of the input content in the current original input box. By clicking the status switching icon, the change of the display status of the input content in the current original input box is triggered, including two response actions: switching from cipher text to plain text and from plain text to cipher text. The plain text icon indicates that the display status of the input content in the current original input box is in plain text, which is convenient for users to read and edit directly. The cipher text icon indicates that the display status of the input content in the current original input box is in cipher text, which is used to protect sensitive information from being directly read.

[0059] Step A02, if the type of the state switching icon is a ciphertext icon, the response action of the switching operation is to switch the ciphertext icon to a plaintext icon, hide the ciphertext input box, render the input content in plaintext in the plaintext input box, and display the plaintext input box;

[0060] It should be noted that after the browser system confirms that the type of the current status switch icon is a ciphertext icon, it switches the ciphertext icon to a plaintext icon, visually feedbacks to the user that it has switched to plaintext input mode, hides the current ciphertext input box, and displays the plaintext input box on the browser page. If there is content in the ciphertext input box before hiding, the content in the ciphertext input box before hiding is decrypted and rendered in plaintext in the plaintext input box. If there is no content in the ciphertext input box before hiding, the plaintext input box is kept empty.

[0061] In addition, it should be noted that when the user enters content in the plain text input box, the browser system will enable camera permissions and obtain the current user's surrounding environment image (for example, it can be obtained through the front camera of a mobile phone or computer). The current user's surrounding environment refers to the range of a preset radius (for example, 1 meter) around the user. The acquired current user's surrounding environment image is detected, and the existing people in the current user's surrounding environment image are determined through face recognition. When the number of existing people exceeds 1, the browser system automatically hides the plain text input box and displays the ciphertext input box to make the current plain text input content invisible.

[0062] Step A03, if the type of the status switching icon is a plain text icon, the response action of the switching operation is to switch the plain text icon to a cipher text icon, hide the plain text input box, render the input content in cipher text form in the cipher text input box, and display the cipher text input box.

[0063] It should be noted that, similar to step A02, after confirming that the type of the current status switch icon is a plain text icon, the browser system switches the plain text icon to a cipher text icon, visually feedbacks to the user that the current mode has been switched to cipher text input mode, hides the current plain text input box, and displays the cipher text input box on the browser page. If there is content in the plain text input box before hiding, the content in the plain text input box before hiding is encrypted and rendered in cipher text in the cipher text input box. If there is no content in the plain text input box before hiding, the cipher text input box is kept empty.

[0064] In addition, it should be noted that if the browser system detects that the number of existing people in the user's surrounding environment image exceeds 1, the browser system hides the plaintext input box and displays the ciphertext input box. If the user clicks the status switch icon again within a preset time range (for example, 100 milliseconds to 200 milliseconds), it is determined that the user confirms that the input content is visible, and the browser system hides the ciphertext input box and displays the plaintext input box.

[0065] For example, to help understand the technical concept or technical principle of this application, please refer to Figure 2 , Figure 2A schematic diagram of a scenario for switching between plaintext and ciphertext is provided. In a browser system, initially, the original input box is a ciphertext input box K1. When a user needs to edit or view input content in plaintext form, the user clicks the ciphertext icon M1 next to the ciphertext input box. The ciphertext icon M1 will immediately switch to a plaintext icon M2, and hide the ciphertext input box K1 at the same time. The plaintext input box K2 is displayed to the user, and the input content in plaintext form is rendered in the plaintext input box K2. The user can directly read the content in the plaintext input box. After the user has edited the input content in the plaintext input box K2, if the user wants to hide the input content again, the user can click the plaintext icon M2. The plaintext icon M2 will immediately switch to the ciphertext icon M1, and hide the plaintext input box K2 at the same time. The display of the ciphertext input box K1 is restored, and the input content in ciphertext form is rendered in the ciphertext input box K1.

[0066] In this implementation, by introducing a status switching icon, flexible switching of the input content display status is achieved, which not only meets the user's needs for information visibility in different scenarios, but also ensures that sensitive information is protected when it does not need to be read, protects user privacy from being leaked, simplifies user operations, and improves the usability and security of the system. At the same time, by detecting the number of existing people in the user's surrounding environment image, when other people except the user are detected, it automatically switches to the ciphertext input box, effectively preventing sensitive information from being peeped or stolen by others, thereby improving the security of data input. In addition, the user is allowed to restore the plaintext input box by clicking the status switching icon within a preset time period, taking into account the user's actual need to display the input content, thereby improving the flexibility and convenience of use.

[0067] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 3 The input box control method further includes: steps S11 to S12:

[0068] Step S11, responding to an external editing operation on the input content in the original input box;

[0069] It should be noted that editing operations refer to any form of modification or adjustment of the input content in the original input box, including but not limited to insertion, deletion, replacement, etc. The browser system captures the user's editing behavior on the original input box through a listener or event handler, such as keyboard input, mouse clicks, etc. These operations are regarded as editing operations on the input content in the original input box.

[0070] Step S12: adjusting the input content in the original input box according to an editing operation, where the editing operation includes at least one of an insert operation and a delete operation.

[0071] It should be noted that the insert operation refers to adding new content or characters to the specified position in the original input box, and the delete operation refers to removing part or all of the input content in the original input box. Once the user's editing operation is captured, the browser system will adjust the content of the input box accordingly according to the specific type of editing operation (insert or delete). For the insert operation, the system will add a new string at the specified position, and for the delete operation, it will remove the string at the selected or specified position.

[0072] In this embodiment, in response to the editing operation of external input, it is ensured that the response speed of the user interface is synchronized with the user's operating intention, the delay is reduced, the user experience is improved, the input content in the original input box is adjusted according to the editing operation, the user's editing instructions are accurately processed, and misoperation or data loss is avoided. The integrity and accuracy of the data are guaranteed, and multiple editing methods are supported at the same time to meet the user's usage needs.

[0073] In a feasible implementation manner, in step S12, the step of adjusting the input content in the input box according to the editing operation includes steps E01 to E03:

[0074] Step E01, determine the type of the original input box;

[0075] It should be noted that determining whether the original input box is a plain text input box or a cipher text input box is the basis for subsequent editing operations.

[0076] Step E02: if the type of the original input box is a plain text input box, the input content in the plain text input box is adjusted according to the editing operation, and the adjusted input content is rendered in plain text to the plain text input box;

[0077] It should be noted that, for the plain text input box, the input content in the plain text input box is directly adjusted, and the adjusted input content is saved.

[0078] Step E03, if the type of the original input box is a ciphertext input box, obtain the input content in the plaintext state, adjust the input content in the plaintext state according to the editing operation, and render the adjusted input content in the ciphertext input box in ciphertext form.

[0079] It should be noted that for the ciphertext input box, since the input content is not directly visible, the input content in the ciphertext input box cannot be directly adjusted. It is necessary to first obtain the input content in the plaintext input box corresponding to the ciphertext input box, and then adjust the input content in the corresponding plaintext input box. For the adjusted input content, determine the string length of the adjusted input content, and render a number of ciphertext symbols equal to the string length in the ciphertext input box.

[0080] In this implementation, by processing the user's editing operations, regardless of whether the input box is a plain text or ciphertext type, the user can obtain immediate and accurate feedback. At the same time, it supports multiple editing operations, so that the system can flexibly respond to different editing needs of users, thereby improving the usability and flexibility of the system. In the ciphertext input box, the user's input content is always displayed in ciphertext form, which effectively prevents the risk of data leakage and greatly improves the security of the system.

[0081] In a feasible implementation manner, in step E02, the step of adjusting the input content in the plain text input box according to the editing operation includes: steps E11 to E13:

[0082] Step E11, if the operation type is an insert operation, confirm the type of the insert operation;

[0083] It should be noted that the insert operation includes normal cursor insertion and selected insertion. By identifying the type of the insert operation that the current user intends to perform, it is ensured that the system can execute corresponding logic according to the type of different insert operations.

[0084] Step E12, when the type of the insert operation is normal cursor insertion, obtaining the position of the system cursor in the input content of the plain text input box, recording it as the first cursor position, inserting the first user content to be inserted at the first cursor position, and recording the input content after the insertion as the first input content;

[0085] It should be noted that the first cursor position refers to the index where the system cursor is currently located in the normal cursor insertion operation, which is used to determine the cursor insertion point position; the first user content to be inserted refers to the text or data that the user wishes to insert at the first cursor position; and the first input content refers to the updated content in the plain text input box after performing the normal cursor insertion operation.

[0086] In addition, it should be noted that when the browser system determines that the type of insert operation is a normal cursor insert, the position of the current system cursor in the input content of the plain text input box is obtained. The system cursor can select only one position or multiple positions at the same time. The first user content to be inserted is inserted at the position selected by the system cursor. When the user makes an input error or wants to re-enter, an undo and redo function is provided to allow the user to cancel an unsatisfactory insert operation or redo the previous operation. When the user completes the input, the display content of the input box is updated, and the inserted content is recorded as the first input content.

[0087] Step E13, when the type of the insert operation is selected insert, obtain the starting position and the ending position of the system cursor in the current input content, record them as the first cursor starting position and the first cursor ending position respectively, replace the input content between the first cursor starting position and the first cursor ending position with the second user content to be inserted, and record the input content after insertion as the second input content.

[0088] It should be noted that the first cursor starting position refers to the starting point index of the plain text input box selected by the user in the select and insert operation, the first cursor ending position refers to the ending point index of the plain text input box selected by the user in the select and insert operation, the second user content to be inserted refers to the new text or data that the user wishes to replace in the selected area, which may be the same as or different from the first user content to be inserted, and the second input content refers to the updated content in the plain text input box after the select and insert operation is performed.

[0089] In addition, it should be noted that when the browser system determines that the type of insert operation is selected insert, the starting position and ending position of the current system cursor in the input content of the plain text input box are obtained. The system cursor can select only the starting position and the ending position, or it can select more than two even positions at the same time. Every two adjacent positions are recorded as a pair of positions to be inserted, and the input content between each pair of positions to be inserted is replaced with the second user content to be inserted. When the user makes an input error or wants to re-enter, an undo and redo function is provided to allow the user to cancel an unsatisfactory insert operation or redo the previous operation. When the user completes the input, the display content of the input box is updated, and the inserted content is recorded as the second input content.

[0090] In this embodiment, by supporting different types of insert operations, users can choose different types of insert operations as needed, thereby improving the flexibility of text editing. At the same time, it supports multi-cursor operations, making complex editing tasks more efficient, and allows users to easily correct errors through the undo / redo function, significantly improving the user's fluency and satisfaction during the editing process.

[0091] In a feasible implementation manner, in step E02, the step of adjusting the input content in the plain text input box according to the editing operation includes: steps E21 to E23:

[0092] Step E21, if the operation type is a delete operation, confirm the type of the delete operation;

[0093] It should be noted that the delete operation includes normal cursor delete and selected delete. By identifying the type of delete operation that the current user intends to perform, it is ensured that the system can execute corresponding logic according to the type of different delete operations.

[0094] Step E22, when the type of the deletion operation is normal cursor-back deletion, the position of the system cursor in the current input content is obtained, recorded as the second cursor position, and the content to be deleted by the user is deleted from the second cursor position forward, and the input content after deletion is recorded as the third input content;

[0095] It should be noted that the second cursor position refers to the index where the system cursor is currently located in the normal cursor delete operation, which is used to determine the cursor deletion point position; the user content to be deleted refers to the text or data that the user wants to delete; the third input content refers to the updated input content in the plain text input box after the normal cursor delete operation is performed.

[0096] In addition, it should be noted that when the browser system determines that the type of deletion operation is normal cursor deletion, the position of the current system cursor in the input content of the plain text input box is obtained. The system cursor can select only one position or multiple positions at the same time, and the user's content to be deleted is deleted from the position selected by the system cursor. When the user deletes incorrectly or wants to delete again, an undo and redo function is provided to allow the user to cancel an unsatisfactory deletion operation or redo the previous operation. When the user completes the deletion, the display content of the input box is updated, and the deleted content is recorded as the third input content.

[0097] Step E23, when the type of deletion operation is selected deletion, obtain the starting position and the ending position of the cursor in the current input content, record them as the second cursor starting position and the second cursor ending position respectively, delete the input content between the second cursor starting position and the second cursor ending position, and record the deleted input content as the fourth input content.

[0098] It should be noted that the second cursor starting position and the second cursor ending position respectively indicate the starting and ending positions of the input content that the user wishes to delete in the plain text input box in the select and delete operation, and the fourth input content refers to the updated input content in the plain text input box after the select and delete operation is performed.

[0099] In addition, it should be noted that when the browser system determines that the type of deletion operation is selected deletion, the starting position and ending position of the current system cursor in the input content of the plain text input box are obtained. The system cursor can select only the starting position and the ending position, or it can select more than two even positions at the same time. Every two adjacent positions are recorded as a pair of positions to be deleted, and the input content between each position to be deleted is deleted. When the user deletes incorrectly or wants to delete again, an undo and redo function is provided to allow the user to cancel an unsatisfactory deletion operation or redo the previous operation. When the user completes the deletion, the display content of the input box is updated, and the inserted content is recorded as the fourth input content.

[0100] In this implementation, multiple types of deletion operations are supported to meet the needs of users in different editing scenarios, and precise operation processing based on different deletion needs of users is achieved, thereby improving the accuracy and flexibility of text editing. At the same time, multi-cursor operations are supported to make complex editing tasks more efficient, and the undo / redo function allows users to easily correct errors, significantly improving the fluency and satisfaction of users during the editing process.

[0101] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the input box control method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0102] This application also provides an input box control device, please refer to Figure 4 The input box control device is applied to a browser, the preset security page of the browser includes an original input box, the original input box is not configured with a history record function, the original input box includes a plain text input box and a cipher text input box, and the input box control device includes:

[0103] The receiving module 10 is used to receive a switching operation input from the outside;

[0104] The switching module 20 is used to display the plain text input box or the cipher text input box based on the switching operation, and render the input content of the corresponding form in the plain text input box or the cipher text input box.

[0105] Optionally, the switching module 20 is further used for:

[0106] In response to an external switching operation on the original input box, determine the type of the state switching icon before triggering the switching operation, wherein the type of the state switching icon includes a plain text icon and a cipher text icon, which is used to determine the response action of the switching operation;

[0107] If the type of the state switching icon is a ciphertext icon, the response action of the switching operation is to switch the ciphertext icon to a plaintext icon, hide the ciphertext input box, render the input content in plaintext in the plaintext input box, and display the plaintext input box;

[0108] If the type of the state switching icon is a plain text icon, the response action of the switching operation is to switch the plain text icon to a cipher text icon, hide the plain text input box, render the input content in cipher text form in the cipher text input box, and display the cipher text input box.

[0109] Optionally, the input box control device further includes an editing module 30, and the editing module 30 is used to:

[0110] Respond to external editing operations on the input content in the original input box;

[0111] The input content in the original input box is adjusted according to the editing operation, where the editing operation includes at least one of an insert operation and a delete operation.

[0112] Optionally, the editing module 30 is further used for:

[0113] Determine the type of the original input box;

[0114] If the type of the original input box is a plain text input box, the input content in the plain text input box is adjusted according to the editing operation, and the adjusted input content is rendered in plain text to the plain text input box;

[0115] If the type of the original input box is a ciphertext input box, the input content in the plaintext state is obtained, the input content in the plaintext state is adjusted according to the editing operation, and the adjusted input content is rendered in the ciphertext input box in ciphertext form.

[0116] Optionally, the editing module 30 is further used for:

[0117] If the operation type is an insert operation, confirm the type of the insert operation;

[0118] When the type of the insert operation is normal cursor insertion, the position of the system cursor in the input content of the plain text input box is obtained, recorded as the first cursor position, the first user content to be inserted is inserted at the first cursor position, and the input content after the insertion is recorded as the first input content;

[0119] When the type of the insert operation is selected insert, the starting position and the ending position of the system cursor in the current input content are obtained and recorded as the first cursor starting position and the first cursor ending position respectively, and the input content between the first cursor starting position and the first cursor ending position is replaced with the second user content to be inserted, and the input content after insertion is recorded as the second input content.

[0120] Optionally, the editing module 30 is further used for:

[0121] If the operation type is a delete operation, confirm the type of the delete operation;

[0122] When the type of the delete operation is normal cursor-back delete, the position of the system cursor in the current input content is obtained and recorded as the second cursor position, and the content to be deleted by the user is deleted from the second cursor position forward, and the input content after the deletion is recorded as the third input content;

[0123] When the type of deletion operation is selected deletion, the starting position and the ending position of the cursor in the current input content are obtained and recorded as the second cursor starting position and the second cursor ending position respectively, the input content between the second cursor starting position and the second cursor ending position is deleted, and the deleted input content is recorded as the fourth input content.

[0124] The input box control device provided by the present application adopts the input box control method in the above embodiment, which can solve the technical problem of how to reduce the risk of privacy leakage and ensure the security of user data. Compared with the prior art, the beneficial effects of the input box control device provided by the present application are the same as the beneficial effects of the input box control method provided by the above embodiment, and other technical features in the input box control device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0125] The present application provides an input box control device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the input box control method in the above-mentioned embodiment one.

[0126] Reference below Figure 5 , which shows a schematic diagram of the structure of an input box control device suitable for implementing the embodiment of the present application. The input box control device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, notebook computers, PADs (Portable Application Description: tablet computers), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The input box control device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0127] like Figure 5As shown, the input box control device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read On ly Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the input box control device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a microphone, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Disp lay), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the input box control device to communicate with other devices wirelessly or by wire to exchange data. Although the input box control device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided alternatively.

[0128] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable 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 a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0129] The input box control device provided by the present application adopts the input box control method in the above embodiment, which can solve the technical problem of how to reduce the risk of privacy leakage and ensure the security of user data. Compared with the prior art, the beneficial effects of the input box control device provided by the present application are the same as the beneficial effects of the input box control method provided by the above embodiment, and the other technical features in the input box control device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0130] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0131] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0132] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the input box control method in the above-mentioned embodiment.

[0133] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination thereof. 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: Erasable Programmab le Read On ly Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read On ly Memory), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination thereof.

[0134] The computer-readable storage medium may be included in the input box control device; or may exist independently without being assembled into the input box control device.

[0135] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the input box control device, the input box control device: receives a switching operation of external input; based on the switching operation, displays the plain text input box or the cipher text input box, and renders the corresponding form of input content in the plain text input box or the cipher text input box.

[0136] The computer program code for performing the operation of the present application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).

[0137] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the 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 square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / 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.

[0138] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0139] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned input box control method, and can solve the technical problem of how to reduce the risk of privacy leakage and ensure the security of user data. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the input box control method provided by the above-mentioned embodiment, and will not be repeated here.

[0140] The present application also provides a computer program product, including a computer program, which implements the steps of the input box control method as described above when the computer program is executed by a processor.

[0141] The computer program product provided by this application can solve the technical problem of how to reduce the risk of privacy leakage and ensure the security of user data. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the input box control method provided by the above embodiment, which will not be repeated here.

[0142] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. An input box control method, characterized in that: Applied to a browser, the preset security page of the browser includes an original input box, the original input box is not configured with a history record function, the original input box includes a plain text input box and a cipher text input box, and the input box control method includes: Receive switching operations from external input; Based on the switching operation, the plain text input box or the cipher text input box is displayed, and input content of a corresponding form is rendered in the plain text input box or the cipher text input box.

2. The input box control method according to claim 1, characterized in that: The step of displaying the plain text input box or the cipher text input box based on the switching operation and rendering the input content of a corresponding form in the plain text input box or the cipher text input box comprises: In response to an external switching operation on the original input box, determining the type of the state switching icon before triggering the switching operation, wherein the type of the state switching icon includes a plain text icon and a cipher text icon, which is used to determine a response action for the switching operation; If the type of the state switching icon is the ciphertext icon, the response action of the switching operation is to switch the ciphertext icon to the plaintext icon, hide the ciphertext input box, render the input content in plaintext form in the plaintext input box, and display the plaintext input box; If the type of the status switching icon is the plain text icon, the response action of the switching operation is to switch the plain text icon to the cipher text icon, hide the plain text input box, render the input content in cipher text form in the cipher text input box, and display the cipher text input box.

3. The input box control method according to claim 1, characterized in that: The input box control method further includes: Responding to an external editing operation on the content input in the original input box; The input content in the original input box is adjusted according to the editing operation, where the editing operation includes at least one of an insert operation and a delete operation.

4. The input box control method according to claim 3, characterized in that: The step of adjusting the input content in the original input box according to the editing operation comprises: Determine the type of the original input box; If the type of the original input box is a plain text input box, adjusting the input content in the plain text input box according to the editing operation, and rendering the adjusted input content in plain text to the plain text input box; If the type of the original input box is a ciphertext input box, the input content in the plaintext state is obtained, the input content in the plaintext state is adjusted according to the editing operation, and the adjusted input content is rendered in the ciphertext input box in ciphertext form.

5. The input box control method according to claim 4, characterized in that: The step of adjusting the input content in the plain text input box according to the editing operation includes: If the operation type is the insert operation, confirming the type of the insert operation; When the type of the insert operation is normal cursor-after-insert, obtaining the position of the system cursor in the input content of the plain text input box, recording it as a first cursor position, inserting the first user content to be inserted at the first cursor position, and recording the input content after the insertion as the first input content; When the type of the insert operation is selected insert, the starting position and the ending position of the system cursor in the current input content are obtained and recorded as the first cursor starting position and the first cursor ending position respectively, and the input content between the first cursor starting position and the first cursor ending position is replaced with the second user content to be inserted, and the input content after insertion is recorded as the second input content.

6. The input box control method according to claim 4, characterized in that: The step of adjusting the input content in the plain text input box according to the editing operation includes: If the operation type is the deletion operation, confirming the type of the deletion operation; When the type of the deletion operation is normal cursor-back deletion, the position of the system cursor in the current input content is obtained and recorded as the second cursor position, and the content to be deleted by the user is deleted from the second cursor position forward, and the input content after the deletion is recorded as the third input content; When the type of the deletion operation is selected deletion, the starting position and the ending position of the cursor in the current input content are obtained, which are recorded as the second cursor starting position and the second cursor ending position respectively, the input content between the second cursor starting position and the second cursor ending position is deleted, and the deleted input content is recorded as the fourth input content.

7. An input box control device, characterized in that: The input frame control device comprises: A receiving module, used for receiving a switching operation inputted from an external source; A switching module is used to display the plain text input box or the cipher text input box based on the switching operation, and render the input content of the corresponding form in the plain text input box or the cipher text input box.

8. An input box control device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the input box control method according to any one of claims 1 to 6.

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

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the input box control method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Password reveal selector

    CN102929498A

  • Password input method and device

    CN103714301A

  • Interface interaction method and apparatus

    CN106293439A

  • Important information processing method and terminal

    CN106778381A

  • Data protection based on user and gesture recognition

    IN201647043965A