Input box rendering method and device, computer equipment and storage medium

By obtaining the configuration information and rendering resources of the password control, the rendering method of the privacy data input box can be flexibly adjusted, solving the problem of poor rendering flexibility in the existing technology and realizing flexible rendering and protection according to security requirements.

CN121597314APending Publication Date: 2026-03-03TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411127211.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2026-03-03

Smart Images

  • Figure CN121597314A_ABST
    Figure CN121597314A_ABST
Patent Text Reader

Abstract

The invention discloses an input box rendering method and device, computer equipment and a storage medium. The method comprises the steps that in response to rendering operation of private data input boxes, configuration information of password controls corresponding to the private data input boxes is obtained from a configuration server, and the configuration server maintains the configuration information of the password controls corresponding to different private data input boxes; if the configuration information describes that the state of the password control is an open state, obtaining a first rendering resource corresponding to the password control from a resource server; rendering the private data input box according to the first rendering resource; if the configuration information describes that the state of the password control is a closed state, acquiring a default second rendering resource; and rendering the private data input box according to the second rendering resource. According to the method and the device, the flexibility of private data input box rendering can be better.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and specifically to a method, apparatus, computer device, and computer-readable storage medium for rendering an input box. Background Technology

[0002] Password controls are client-side programs used to enhance data security, primarily in scenarios involving the input of private data. Their purpose is to prevent users' passwords and other private data from being stolen by Trojans or viruses. Password controls are typically used in private data input fields to protect the security of user-entered private data in a special way. When using password controls in private data input fields, they are usually rendered by rendering the corresponding private data input field. In related technologies, when rendering a private data input field is required, the private data input field corresponding to the password control is always rendered in a fixed manner, resulting in poor flexibility in rendering private data input fields. Summary of the Invention

[0003] This application provides a method, apparatus, computer device, and storage medium for rendering an input box, which can improve the flexibility of rendering privacy data input boxes.

[0004] This application provides a method for rendering an input box, including:

[0005] In response to the rendering operation of the privacy data input box, the configuration information of the password control corresponding to the privacy data input box is obtained from the configuration server. The configuration server maintains the configuration information of the password control corresponding to different privacy data input boxes.

[0006] If the configuration information describes the password control as being in an enabled state, then the first rendering resource corresponding to the password control is obtained from the resource server.

[0007] Render the privacy data input box according to the first rendering resource;

[0008] If the configuration information describes the password control as being in a closed state, then the default second rendering resource is obtained;

[0009] The privacy data input box is rendered based on the second rendering resource.

[0010] Accordingly, embodiments of this application also provide a rendering device for an input box, including:

[0011] The information acquisition module is used to respond to the rendering operation of the privacy data input box by obtaining the configuration information of the password control corresponding to the privacy data input box from the configuration server. The configuration server maintains the configuration information of the password control corresponding to different privacy data input boxes.

[0012] The first resource acquisition module is used to acquire the first rendering resource corresponding to the password control from the resource server if the configuration information describes the password control as being in an enabled state.

[0013] The first input box rendering module is used to render the privacy data input box according to the first rendering resource;

[0014] The second resource acquisition module is used to acquire the default second rendering resource if the configuration information describes the password control as being in a closed state.

[0015] The second input box rendering module is used to render the privacy data input box according to the second rendering resource.

[0016] Optionally, the configuration information also describes the encryption method corresponding to the password control, and the rendering device of the input box further includes a data encryption module, which is specifically used to perform:

[0017] The privacy data is received through the privacy data input box;

[0018] The privacy data is obtained through the password control;

[0019] The privacy data is encrypted using the aforementioned encryption method to obtain ciphertext data.

[0020] Optionally, the data encryption module is specifically used to perform:

[0021] Get a random string;

[0022] The privacy data is populated with the random string to obtain the processed data;

[0023] The processed data is encrypted using the aforementioned encryption method to obtain ciphertext data.

[0024] Optionally, the data encryption module is specifically used to perform:

[0025] Obtain the public key corresponding to the encryption method;

[0026] The processed data is encrypted using the public key to obtain ciphertext data.

[0027] Optionally, the rendering device for the input box further includes a data transmission module, which is specifically used to perform:

[0028] In response to a request to transmit the privacy data, obtain the private key corresponding to the encryption method;

[0029] The encrypted data is decrypted using the private key to obtain the processed data.

[0030] Remove the random string from the processed data to obtain the privacy data;

[0031] The privacy data is transmitted to the target device corresponding to the transmission request.

[0032] Optionally, the first input box rendering module is specifically used to perform:

[0033] If the password control has been installed, then the privacy data input box is rendered according to the first rendering resource.

[0034] Optionally, the first input box rendering module is specifically used to perform:

[0035] If the password control is not installed, an installation prompt message will be output to encourage the installation of the password control.

[0036] Optionally, the rendering device for the input box further includes an information configuration module, which is specifically used to perform:

[0037] Display the configuration page for the password control;

[0038] The configuration page receives configuration operations for the password control;

[0039] In response to the configuration operation, obtain the configuration information configured by the configuration operation;

[0040] The configuration information configured by the configuration operation is sent to the configuration server to update the configuration information of the password control.

[0041] Accordingly, this application also provides a computer device, including a memory and a processor; the memory stores a computer program, and the processor is used to run the computer program in the memory to execute any of the input box rendering methods provided in this application.

[0042] Accordingly, embodiments of this application also provide a computer-readable storage medium for storing a computer program, which is loaded by a processor to execute any of the input box rendering methods provided in embodiments of this application.

[0043] Accordingly, this application also provides a computer program product, including a computer program / instruction, wherein the computer program / instruction, when executed by a processor, implements the input box rendering method shown in this application embodiment.

[0044] In this embodiment, in response to the rendering operation of the privacy data input box, configuration information of the password control corresponding to the privacy data input box is obtained from a configuration server. The configuration server maintains configuration information of password controls corresponding to different privacy data input boxes. If the configuration information describes the password control as being in an "on" state, a first rendering resource corresponding to the password control is obtained from a resource server; the privacy data input box is rendered according to the first rendering resource. If the configuration information describes the password control as being in a "off" state, a default second rendering resource is obtained; the privacy data input box is rendered according to the second rendering resource. Thus, in privacy data input scenarios, when it is necessary to render the privacy data input box, the configuration information can be obtained according to the password control. The password control's state is used to render the privacy data input box. The password control's state can be set based on the actual needs of privacy data protection. When privacy data needs to be protected by the password control, the password control's state can be set to the on state to render the corresponding privacy data input box, thus protecting the privacy data received by the privacy data input box. When privacy data does not need to be protected by the password control, the password control's state can be set to the off state to render a normal privacy data input box, without protecting the privacy data received by the privacy data input box through the password control. Compared with the scheme of fixed rendering of the privacy data input box corresponding to the password control, this application has better flexibility in rendering the privacy data input box. Attached Figure Description

[0045] The technical solution and its beneficial effects will become apparent from the following detailed description of specific embodiments of this application, in conjunction with the accompanying drawings.

[0046] Figure 1 This is a schematic diagram of the rendering system for the privacy data input box provided in an embodiment of this application.

[0047] Figure 2 This is a flowchart illustrating the rendering method of the input box provided in the embodiments of this application.

[0048] Figure 3 This is a schematic diagram of the system architecture of the input box rendering method provided in the embodiments of this application.

[0049] Figure 4 This is a schematic diagram of the configuration page of the password control provided in the embodiments of this application.

[0050] Figure 5 This is a schematic diagram of the configuration page for the encryption method corresponding to the password control provided in this application embodiment.

[0051] Figure 6 This is a schematic diagram of the prompt message for installing the password control provided in the embodiments of this application.

[0052] Figure 7 This is a schematic diagram of the rendering process of the login page of a bank system provided in an embodiment of this application.

[0053] Figure 8 This is a schematic diagram of the login page of a bank system displayed in a browser, provided in an embodiment of this application.

[0054] Figure 9 This is a schematic diagram of the login process of a bank system provided in an embodiment of this application.

[0055] Figure 10 This is a schematic diagram of the structure of the rendering device for the input box provided in the embodiments of this application.

[0056] Figure 11 This is a schematic diagram of the structure of the computer device provided in the embodiments of this application. Detailed Implementation

[0057] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0058] This application provides a method for rendering an input box and related equipment. The related equipment may include an input box rendering device, a computer device, a computer-readable storage medium, and a computer program product. Specifically, the input box rendering device may be integrated into the computer device, which may be a terminal or a server, etc.

[0059] It is understood that the input box rendering method in this embodiment can be executed on the terminal, on the server, or jointly by the terminal and the server. The above examples should not be construed as limiting this application.

[0060] like Figure 1 As shown, taking the rendering method of an input box executed by a terminal as an example, the rendering system for the privacy data input box provided in this embodiment includes a terminal 10, a configuration server 11, and a resource server 12, etc.; the terminal 10 and the configuration server 11 are connected via a network, such as through a wired or wireless network. The terminal 10 and the resource server 12 are connected via a network, such as through a wired or wireless network. The rendering device for the input box can be integrated into the terminal 10.

[0061] Terminal 10 can be used to: respond to the rendering operation of the privacy data input box, obtain the configuration information of the password control corresponding to the privacy data input box from the configuration server 11, the configuration server 11 maintains the configuration information of the password control corresponding to different privacy data input boxes; if the configuration information describes the password control as being in an open state, obtain the first rendering resource corresponding to the password control from the resource server 12; render the privacy data input box according to the first rendering resource; if the configuration information describes the password control as being in a closed state, obtain the default second rendering resource; render the privacy data input box according to the second rendering resource.

[0062] Configure server 11, which can be used to maintain the configuration information of password controls corresponding to different privacy data input boxes.

[0063] Resource server 12 can be used to maintain the first rendering resources corresponding to the password controls for different privacy data input boxes and the installation packages for different password controls.

[0064] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the preferred order of the embodiments.

[0065] It is understood that in the specific embodiments of this application, data such as user information are involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0066] Please see Figure 2 , Figure 2 This is a flowchart illustrating the rendering method of the input box provided in an embodiment of this application. The process may include:

[0067] In 101, in response to the rendering operation of the privacy data input box, the configuration information of the password control corresponding to the privacy data input box is obtained from the configuration server. The configuration server maintains the configuration information of the password control corresponding to different privacy data input boxes.

[0068] Privacy data refers to sensitive or private data, such as passwords, ID card numbers, verification codes, and phone numbers. Privacy data input fields refer to user interface elements used to collect privacy data, such as password input fields, ID card number input fields, verification code input fields, and phone number input fields.

[0069] Password controls are client-side programs used to enhance data security in scenarios involving the input of private data. Their purpose is to prevent users' passwords and other private data from being stolen by Trojans or viruses. Password controls are typically used in private data input fields to protect the security of user-entered private data in a special way. When using password controls in private data input fields, they are usually rendered by displaying the corresponding private data input field. If the private data input field is a password control-corresponding private data input field, the private data entered by the user will be captured and encrypted by the password control, thus preventing operating system-level attacks. If the private data input field is a regular private data input field, the private data entered by the user may only be encrypted after entering the operating system, thus failing to prevent operating system-level attacks.

[0070] The main functions of a password control may include:

[0071] Obtain and encrypt the input from the privacy data input box:

[0072] The password control detects input in the privacy data input field. When a user enters privacy data in the privacy data input field, the password control retrieves the privacy data and encrypts it.

[0073] Hidden input:

[0074] When a user enters characters in a privacy data input box, these characters are hidden and are usually displayed as an asterisk (*) or a dot (·).

[0075] Hiding input helps prevent bystanders from snooping on private data.

[0076] Confirm input:

[0077] In some cases, users may be asked to enter their privacy data again for confirmation.

[0078] The password control can detect whether two inputs match, and if they do not match, it will give a prompt.

[0079] Intensity indicator:

[0080] In scenarios where the privacy data is password data, feedback on password strength can be provided, such as by using color coding or text hints to inform users of the password strength level.

[0081] Password strength can be assessed by factors such as length, the presence of special characters, numbers, and combinations of uppercase and lowercase letters.

[0082] Complexity rules:

[0083] In scenarios where the privacy data is password data, password controls can restrict the password format according to preset rules, such as requiring a minimum length, including uppercase letters, lowercase letters, numbers, and special characters.

[0084] Passwords that do not meet the rules may be rejected, and the user will need to re-enter them.

[0085] Visibility switching:

[0086] Provide an option that allows users to choose to show or hide the private data they enter.

[0087] This can help users check for errors during the input process.

[0088] Error handling:

[0089] If the privacy data is entered incorrectly, the password control should be able to provide a clear error message and guide the user on how to correct it.

[0090] Anti-keylogging:

[0091] To prevent keylogging software from recording user input, some controls may have built-in additional security measures to protect users from such attacks.

[0092] In practical applications, different systems have different requirements for the security of privacy data. For example, banking and financial systems have high security requirements for privacy data, while ordinary systems have lower requirements. Systems with high privacy data security requirements need to use password controls in the privacy data input field to prevent operating system-level attacks, while systems with lower privacy data security requirements do not need to use password controls in the privacy data input field. To adapt to the requirements of different systems, please refer to the following in this embodiment. Figure 3 The system allows maintenance personnel of different systems to configure the password controls corresponding to the privacy data input boxes on the configuration pages of computer devices such as D1, D2, and D3, according to the actual security requirements of their systems. The system can receive these configurations from maintenance personnel on the computer devices D1, D2, and D3, generate configuration information for the password controls corresponding to the privacy data input boxes, send it to the configuration server, and send corresponding resources, such as the first rendering resource for the privacy data input box and the installation package for the password controls, to the resource server. Thus, the configuration server can maintain the configuration information for the password controls corresponding to different privacy data input boxes, and the resource server can maintain the resources corresponding to the password controls for different privacy data input boxes.

[0093] The configuration information of the password control describes at least one of the following: the state of the password control, the encryption method corresponding to the password control, the storage location of the first rendering resource for rendering the privacy data input box corresponding to the password control, and the storage location of the installation package of the password control.

[0094] For example, such as Figure 4 As shown, the configuration page for a password control corresponding to a privacy data input box can be displayed. Maintenance personnel can perform configuration operations on this page to configure the password control's state. The computer device then generates configuration information describing the password control's state and sends it to the configuration server. The password control's state includes an on state and an off state. When the password control is on, the corresponding privacy data input box can be rendered, meaning the password control is used in that privacy data input box. When the password control is off, a regular privacy data input box can be rendered, meaning the password control is not used in that privacy data input box.

[0095] Maintenance personnel can also configure the encryption method corresponding to the password control on this configuration page. The computer device then generates configuration information describing the encryption method for that password control and sends it to the configuration server. When a user enters private data into the privacy data input box corresponding to the password control, the user can encrypt that private data using that encryption method. The encryption method can include encrypting private data using the RSA encryption algorithm, encrypting private data using the national cryptographic standard SM encryption algorithm, etc.

[0096] For example, please refer to the following: Figure 5 If the maintenance personnel select the national cryptographic standard SM2 algorithm type on the configuration page, the computer device can generate configuration information describing that the encryption method corresponding to the password control is to use the national cryptographic standard SM2 encryption algorithm to encrypt the privacy data entered by the user in the privacy data input box corresponding to the password control.

[0097] Maintenance personnel can also configure the first rendering resource corresponding to the password control on this configuration page, that is, the first rendering resource of the privacy data input box corresponding to the password control. The computer device can send the first rendering resource to the resource server, obtain the storage location of the first rendering resource on the resource server, generate configuration information describing the storage location of the first rendering resource on the resource server, and send it to the configuration server; the computer device can also directly send the first rendering resource to the configuration server, and the configuration server will send the first rendering resource to the resource server, obtain the storage location of the first rendering resource on the resource server, generate configuration information describing the storage location of the first rendering resource on the resource server, and store it.

[0098] The first rendering resource is provided by the password control vendor and may include a JSSDK and encryption scripts. Different encryption methods require different JSSDKs and encryption scripts. For example, the JSSDK and encryption scripts for encrypting private data using the RSA encryption algorithm are different from those for encrypting private data using the Chinese national cryptographic algorithm SM.

[0099] A JSSDK (JavaScript Software Development Kit) typically refers to a JavaScript development toolkit used on a specific platform or service. It provides developers with a series of methods that allow them to easily access the platform's functions and services in web pages or applications.

[0100] Encrypted scripts are JavaScript (JS) scripts. JS scripts are lightweight interpreted or just-in-time (JIT) programming languages. Originally designed to add interactivity to HTML (an application of Standard Generalized Markup Language) web pages, they are now widely used in front-end and back-end development, and even mobile and desktop application development. Encrypted scripts can call methods of the JSSDK to achieve corresponding functions, such as rendering a password control's privacy data input field or encrypting the privacy data entered by the user in the privacy data input field.

[0101] Maintenance personnel can also configure the password control installation package on this configuration page to install the password control. Computer devices can upload the configured password control installation package to the resource server, obtain its storage location on the resource server, generate configuration information describing the storage location, and send it to the configuration server. Alternatively, computer devices can directly send the configured password control installation package to the configuration server, which will then forward it to the resource server, obtain its storage location, generate and store configuration information describing the storage location. Different encryption methods require different password control installation packages, as do different operating systems and architectures. For example, password control installation packages may include RSA versions for Windows, RSA versions for Mac, Chinese national cryptographic standard (SM) versions for Windows, Mac, AMD, and ARM.

[0102] In an optional embodiment, maintenance personnel can also update the configuration information of the password control on the configuration server in real time according to changes in the actual security requirements of their system. That is, the rendering method of the input box further includes: displaying the configuration page of the password control; receiving configuration operations for the password control through the configuration page; responding to the configuration operations, obtaining the configuration information configured by the configuration operations; and sending the configuration information configured by the configuration operations to the configuration server to update the configuration information of the password control.

[0103] For example, suppose the configuration information for a password control on the configuration server describes its state as "closed." If a maintenance personnel wants to update this to "open," they can trigger a computer to display the password control's configuration page and perform a configuration operation on that page, such as changing the password control's state from "closed" to "open." The computer device receives this configuration operation. In response, the computer device retrieves the configuration information describing the password control's state as "open." The computer device can then send this "open" configuration information to the configuration server to update the password control's configuration information, changing its state from "closed" to "open."

[0104] For example, suppose the configuration information of a password control on the configuration server describes the password control's state as "off" and the encryption method as "using RSA encryption algorithm to encrypt private data." If a maintenance personnel wants to update the password control's configuration information to show the password control's state as "on" and the encryption method as "using the national standard SM encryption algorithm," the personnel can trigger the computer device to display the password control's configuration page and perform configuration operations on that page. For instance, they could change the password control's state from "off" to "on" and change the encryption method from RSA to the national standard SM encryption algorithm. The computer device then receives these configuration operations. In response to these operations, the computer device retrieves the configuration information that was set to show the password control's state as "on" and the encryption method as "using the national standard SM encryption algorithm to encrypt private data." The computer device can send configuration information describing the password control's state as "on" and the encryption method corresponding to the password control as "encrypting privacy data using the national cryptographic SM encryption algorithm" to the configuration server to update the password control's configuration information. That is, the configuration information of the password control is updated from describing the password control as "off" to describing the password control's state as "on", and the encryption method corresponding to the password control as "encrypting privacy data using the RSA encryption algorithm" is updated to describing the encryption method corresponding to the password control as "encrypting privacy data using the national cryptographic SM encryption algorithm".

[0105] In this embodiment, the user can perform a rendering operation on the privacy data input box, thereby the computer device receives the rendering operation of the privacy data input box. The rendering operation of the privacy data input box can be an operation that triggers the rendering of the privacy data input box.

[0106] For example, a user can access a system's login page, which requires the computer device to render the login page. This login page typically includes privacy data input fields, such as password input fields. In this case, the computer device receives the rendering operation for the privacy data input fields.

[0107] For example, when a user makes a payment, the computer device needs to render a privacy data input box for the user to enter their payment password. At this time, the computer device receives the rendering operation of the privacy data input box.

[0108] For example, such as Figure 3 As shown, after receiving the rendering operation of the privacy data input box, in response to the rendering operation of the privacy data input box, the computer device D4 can obtain the configuration information of the password control corresponding to the privacy data input box from the configuration server.

[0109] It should be noted that computer device D4 can be any of computer devices D1, D2, and D3, or it can be any other computer device besides computer devices D1, D2, and D3.

[0110] In step 102, if the configuration information describes the password control as being in an "on" state, then the first rendering resource corresponding to the password control is obtained from the resource server.

[0111] In step 103, the privacy data input box is rendered based on the first rendering resource.

[0112] In this embodiment, after obtaining the configuration information of the password control corresponding to the privacy data input box from the configuration server, if the configuration information describes the password control as being in an "on" state, then the first rendering resource corresponding to the password control is obtained from the resource server. Once the first rendering resource is obtained, the privacy data input box is rendered according to the first rendering resource.

[0113] For example, such as Figure 3 As shown, if the configuration information describes the password control as being in the enabled state, then computer device D4 obtains the first rendering resource corresponding to the password control from the resource server.

[0114] Specifically, the first rendering resources include JSSDK and encrypted script. After obtaining JSSDK and encrypted script, the encrypted script is executed. When the encrypted script is executed, it calls the methods provided by JSSDK to render the privacy data input box.

[0115] In an optional embodiment, rendering the privacy data input box according to the first rendering resource includes: if a password control has been installed, then rendering the privacy data input box according to the first rendering resource.

[0116] Considering that the privacy data input box is the privacy data input box corresponding to the password control, the password control needs to be installed on the computer device before the privacy data input box corresponding to the password control can be rendered. Therefore, in this embodiment, it can first detect whether the password control has been installed on the computer device. If the password control has been installed, the privacy data input box is rendered according to the first rendering resource.

[0117] In an optional embodiment, the method for rendering the input box further includes: if the password control is not installed, outputting an installation prompt message, the installation prompt message being used to prompt the user to install the password control.

[0118] Considering that the privacy data input box is the same as the password control, the password control needs to be installed on the computer device before the privacy data input box corresponding to the password control can be rendered. When the password control is not installed on the computer device, the user can be prompted to install the password control so that the privacy data input box corresponding to the password control can be rendered after the password control is installed. Therefore, in this embodiment, it is possible to first detect whether the password control is installed on the computer device. If the password control is not installed, an installation prompt message can be output to prompt the user to install the password control.

[0119] For example, such as Figure 6 As shown, the encryption script can call methods provided by the JSSDK to render a virtual button displaying the text "Click here to install password control". Users can click this virtual button to trigger the computer device to retrieve the password control installation package from the resource server and install the password control. After the password control is installed on the computer device, the encryption script can call methods provided by the JSSDK to render the corresponding privacy data input box for the password control.

[0120] In an optional embodiment, the configuration information further describes the encryption method corresponding to the password control. After rendering the privacy data input box according to the first rendering resource, the method further includes: receiving the input privacy data through the privacy data input box; obtaining the privacy data through the password control; and encrypting the privacy data using the encryption method to obtain ciphertext data.

[0121] In this embodiment, when a user enters privacy data in the privacy data input box, the privacy data input box receives the privacy data entered by the user. The password control can detect the input in the privacy data input box in real time, and when it detects the privacy data entered in the privacy data input box, it obtains the privacy data and encrypts the privacy data using the encryption method corresponding to the password control described in the configuration information.

[0122] The encryption methods corresponding to the password control include encrypting private data using the RSA encryption algorithm and encrypting private data using the national standard SM encryption algorithm. If the configuration information describes the encryption method of the password control as encrypting private data using the RSA encryption algorithm, then the private data can be encrypted using the RSA encryption algorithm; if the configuration information describes the encryption method of the password control as encrypting private data using the national standard SM encryption algorithm, then the private data can be encrypted using the national standard SM encryption algorithm.

[0123] In one optional embodiment, encrypting privacy data using an encryption method to obtain ciphertext data includes: obtaining a random string; padding the privacy data with the random string to obtain processed data; and encrypting the processed data using an encryption method to obtain ciphertext data.

[0124] To further enhance the security of user-inputted private data, when encrypting the private data using the encryption method corresponding to the password control to obtain ciphertext data, a random string can be obtained first, and the private data can be padded with this random string to obtain processed data, thus achieving the first layer of encryption for the private data; then, the processed data can be encrypted again using the encryption method corresponding to the password control to obtain ciphertext data, thus achieving the second layer of encryption for the private data. In this way, double encryption of the private data can be achieved through the random string and the encryption method corresponding to the password control.

[0125] In one optional embodiment, encrypting the processed data using an encryption method to obtain ciphertext data includes: obtaining the public key corresponding to the encryption method; and encrypting the processed data using the public key to obtain ciphertext data.

[0126] In this embodiment, after obtaining the processed data, the public key can be obtained from the configuration file corresponding to the encryption method as the public key corresponding to the encryption method, and the processed data can be encrypted using the public key to obtain ciphertext data.

[0127] Different configuration files are used to store the keys corresponding to different encryption methods. For example, the configuration file for encrypting private data using the RSA encryption algorithm stores the public and private keys for this encryption method, while the configuration file for encrypting private data using the national standard cryptographic algorithm SM stores the public and private keys for this encryption method. The public key in the same configuration file is used to encrypt the private data, and the private key is used to decrypt the ciphertext data encrypted with the public key. Configuration files can be stored on computer devices, such as computer devices D1, D2, D3, and D4, or on a configuration server or resource server.

[0128] For example, if the configuration information describes the encryption method of the password control as using the RSA encryption algorithm to encrypt private data, then the public key is obtained from the configuration file corresponding to that encryption method; if the configuration information describes the encryption method of the password control as using the national cryptographic SM encryption algorithm to encrypt private data, then the public key is obtained from the configuration file corresponding to that encryption method.

[0129] In one possible implementation, when rendering the privacy data input box corresponding to the password control, the encryption script also obtains a random string and the public key corresponding to the encryption method of the password control described in the configuration information, and calls the method provided by JSSDK to pass in the random string and the public key to render the privacy data input box corresponding to the password control. Subsequently, when the privacy data is obtained, the encryption script can be executed to fill the privacy data with the random string to obtain the processed data, and then the privacy data is encrypted with the public key to obtain the ciphertext data.

[0130] In an optional embodiment, after encrypting the data with a public key to obtain ciphertext data, the method further includes: in response to a request to transmit privacy data, obtaining a private key corresponding to the encryption method; decrypting the ciphertext data with the private key to obtain processed data; removing random strings from the processed data to obtain privacy data; and transmitting the privacy data to the target device corresponding to the transmission request.

[0131] It is understandable that privacy data such as login passwords or payment passwords need to be transmitted to the corresponding target device for verification. Therefore, in this embodiment, a transmission request for privacy data can be received; in response to the transmission request for privacy data, the private key corresponding to the encryption method can be obtained; the encrypted data can be decrypted using the private key to obtain the processed data; the random string in the processed data can be removed to obtain the privacy data; and the privacy data can be transmitted to the target device corresponding to the transmission request.

[0132] For example, in a payment password input scenario, after a user enters their payment password in the privacy data input box, the system first obtains the payment password through a password control. Then, it fills the privacy data with a random string to obtain the processed payment password. This processed payment password is then encrypted using the public key corresponding to the encryption method of the password control, resulting in ciphertext data. When the user clicks the "Confirm Payment" button, the computer device receives a transmission request for the payment password. In response to this transmission request, the computer device decrypts the ciphertext data using the private key corresponding to the encryption method of the password control, obtaining the processed payment password. It then removes the random string from the processed payment password to obtain the final payment password. Finally, it generates a transmission request carrying the payment password and transmits it to the target device, enabling the target device to verify the payment password.

[0133] In 104, if the configuration information describes the password control as being in a closed state, then the default second rendering resource is obtained.

[0134] In step 105, the privacy data input box is rendered based on the second rendering resource.

[0135] In this embodiment, if the configuration information describes the password control as being in a closed state, then the default second rendering resource is obtained, and the privacy data input box is rendered according to the default second rendering resource.

[0136] The default second rendering resource can be pre-configured by the relevant technical personnel. The default second rendering resource is used to render a regular privacy data input box. For this privacy data input box, no password control is used, that is, the privacy data received through this privacy data input box is not detected, acquired, or encrypted using a password control.

[0137] It should be noted that the embodiments of this application do not impose specific restrictions on the process after rendering the privacy data input box according to the first rendering resource or the process after rendering the privacy data input box according to the default second rendering resource, which can be determined by those skilled in the art based on actual needs.

[0138] In this embodiment, in response to the rendering operation of the privacy data input box, the configuration information of the password control corresponding to the privacy data input box is obtained from the configuration server. The configuration server maintains configuration information of password controls corresponding to different privacy data input boxes. If the configuration information describes the password control as being in an "on" state, the first rendering resource corresponding to the password control is obtained from the resource server. The privacy data input box is rendered according to the first rendering resource. If the configuration information describes the password control as being in a "off" state, a default second rendering resource is obtained. The privacy data input box is rendered according to the second rendering resource. Thus, in a privacy data input scenario, when it is necessary to render the privacy data input box, the privacy data input box can be rendered according to the state of the password control. The state of the password control can be set based on the actual needs of privacy data protection. When privacy data needs to be protected by the password control, the state of the password control can be set to the on state to render the privacy data input box corresponding to the password control, and the privacy data received by the privacy data input box is protected by the password control. When privacy data does not need to be protected by the password control, the state of the password control can be set to the off state to render a normal privacy data input box, and the privacy data received by the privacy data input box is not protected by the password control. Compared with the scheme of fixed rendering of the privacy data input box corresponding to the password control, the privacy data input box rendering in this application has better flexibility.

[0139] The following will further explain the rendering method of the input box provided in this application embodiment, taking the example of using private data as password data and logging into a bank system.

[0140] Please see Figure 7 , Figure 7 This is a schematic diagram of the rendering process of the login page of a bank system provided in an embodiment of this application.

[0141] 201. The browser sends a rendering request for the login page to the Node.js middleware layer.

[0142] As we can understand, a browser is an application used to access and display front-end content. The front-end refers to the part of a website or application that users can directly see and interact with.

[0143] The Node.js middleware is a middleware built using the Node.js technology stack. It can receive requests from the browser, process those requests, and then communicate with the backend server.

[0144] Users can access a bank's login page in their browser. When a user accesses this login page, the browser first needs to render it. Therefore, the browser receives the rendering operation for the login page. In response to this rendering operation, the browser generates a rendering request for the login page and sends this request to the Node.js middleware layer.

[0145] Please see Figure 8 The login page includes a username input field 21, a password input field 22, and other interface elements 23. The rendering operations of the login page include rendering operations for the password input field 22, the username input field 21, and other interface elements 23. The rendering requests for the login page include rendering requests for the password input field 22 and for the username input field 21 and other interface elements 23. The rendering request for the password input field 22 is used to request rendering of the password input field 22. The rendering requests for the username input field 21 and other interface elements 23 are used to request rendering of the username input field 21 and other interface elements 23.

[0146] 202. In response to the rendering request of the login page, the Node middleware obtains the configuration information of the password control corresponding to the password data input box from the configuration server.

[0147] For example, in response to a rendering request from the login page, the Node.js middleware sends an HTTP request to the configuration server to retrieve the configuration information of the password control corresponding to the password input box 22. This configuration information can describe at least one of the following: the state of the password control corresponding to the password input box 22; the encryption method of the password control; the address of the first rendering resource for rendering the password input box 22 on the resource server; and the address of the installation package of the password control on the resource server. The first rendering resource includes a JSSDK and an encryption script. The encryption script renders the password input box 22 and encrypts the password data received by the password input box 22 by calling methods provided by the JSSDK.

[0148] The configuration server stores the configuration information of password controls for password input fields in different systems, such as different websites or applications. The configuration information of different password controls can be configured by the maintenance personnel of the corresponding system on the configuration page and then uploaded to the configuration server.

[0149] 203. If the configuration information describes the password control as enabled, then the node middleware layer obtains the random string randomStr and the public key publicKey.

[0150] In this embodiment, if the configuration information describes the password control as being enabled, the node intermediate layer can generate and obtain a random string randomStr, and obtain the public key publicKey from the configuration file corresponding to the encryption method of the password control described in the configuration information.

[0151] Random strings are strings composed of random characters, which are usually randomly selected from a predetermined character set.

[0152] After generating the random string ramdomStr, the Node.js middleware sets the random string ramdomStr into the browser's cookie for use in the subsequent decryption of encrypted data.

[0153] Different configuration files are used to store the keys corresponding to different encryption methods. For example, the configuration file for encrypting private data using the RSA encryption algorithm stores the public and private keys for this encryption method, while the configuration file for encrypting private data using the Chinese national cryptographic algorithm SM stores the public and private keys for this encryption method. The public key in the same configuration file is used to encrypt the private data, and the private key is used to decrypt the ciphertext data encrypted with the public key.

[0154] For example, if the configuration information describes that the encryption method corresponding to the password control is to encrypt the private data using the RSA encryption algorithm, then obtain the public key publicKey from the configuration file corresponding to this encryption method; if the configuration information describes that the encryption method corresponding to the password control is to encrypt the private data using the national encryption SM encryption algorithm, then obtain the public key publicKey from the configuration file corresponding to this encryption method.

[0155] 204. The node middle layer constructs a target data structure and inserts the target data structure into the default html document to obtain the html document after insertion.

[0156] Among them, the default html document includes rendering resources for rendering the username input box 21 and other interface elements 23, such as css style sheets, JS scripts, image files, or font files, etc.

[0157] The target data structure can be: passwordControl = {enabled: 'whether the password control is enabled', randomStr, publicKey}. Inserting the target data structure into the default html resource can include: injecting passwordControl under the window of the default html document, that is

[0158] window.passwordControl = passwordControl.

[0159] 205. The node middle layer inserts the address of the first rendering resource into the html document after insertion to obtain the first target html document.

[0160] For example, the node middle layer can insert the addresses of the JSSDK and encryption script for rendering the password data input box 22 described in the configuration information into the html document after insertion in the form of script.

[0161] Among them, the script code snippet is:

[0162] <% if(passwordControl.enabled){ %>

[0163] <!-- Load the JSSDK and encryption script for rendering the password data input box 22 -->

[0164] <script

[0165] src = “the address of the JSSDK for rendering the password data input box 22”>

[0166] <script

[0167] src="the address of the encryption script that renders password data input box 22">

[0168] <%}%>

[0169] 206. The Node.js middleware returns the first target HTML document to the browser.

[0170] 207. The browser renders the login page based on the first target HTML document.

[0171] For example, after receiving the first target HTML document, the browser can use a default JavaScript script to render the username input box 21 and other interface elements 23 based on the first target HTML document, and determine the state of the password control based on the enabled property of the passwordControl under the window in the first target HTML document. If the password control is enabled, the browser can obtain the JSSDK and encryption script from the resource server using the address of the JSSDK and the address of the encryption script in the first target HTML document.

[0172] For example, the value of enabled can be "true" or "false". When determining the state of the password control based on enabled, if the value of enabled is "true", the password control is determined to be in the enabled state; if the value of enabled is "false", the password control is determined to be in the disabled state.

[0173] After obtaining the encrypted script, the browser executes it. During execution, the encrypted script first determines the password control's state based on the `enabled` property of the `passwordControl` under the `window` property in the target HTML document. If the password control is enabled, it checks whether the password control is installed on the computer device where the browser is located using the JSSDK. If the password control is installed, the encrypted script will call methods provided by the JSSDK to render the password data input box 22.

[0174] Specifically, when the encryption script calls the method provided by JSSDK to render the password data input box 22, it first obtains the random string ramdomSt and the public key publicKey from the first target HTML document; then it calls the method provided by JSSDK, passing in the random string ramdomSt and the public key publicKey, to render the password data input box 22. The password data entered by the user in the password data input box 22 will be encrypted using the random string ramdomSt and the public key publicKey.

[0175] The first target HTML document can also insert the address of the installation package for the password control corresponding to the password data input box 22 with configuration information. If the computer device on which the browser is located does not have the password control installed, the encryption script will call the JSSDK method to render an installation button displaying the prompt message "Click here to download password control" when it is executed. If the user clicks the installation button, the installation package of the password control will be obtained from the resource server through the address of the password control installation package in the first target HTML document and installed. After the password control is installed, the JSSDK method will be called again to render the password data input box 22.

[0176] 208. If the configuration information describes the password control as being off, the Node.js middleware will return the default second target HTML document to the browser.

[0177] The second target HTML document includes default second rendering resources for rendering the password data input box 22, such as CSS stylesheets, JS scripts, image files, or font files, as well as other rendering resources for rendering the username input box 21 and other interface elements 23, such as CSS stylesheets, JS scripts, image files, or font files. It should be noted that the password data input box 22 rendered through the second rendering resources is a regular password data input box 22; that is, the password data received through this password data input box 22 is not protected by a password control.

[0178] 209. The browser renders the login page based on the second target HTML document.

[0179] For example, after receiving the second target HTML document, the browser can use the default JavaScript script to render the password data input box 22 based on the second rendering resources in the second target HTML document, and render the username input box 21 and other interface elements 23 based on other resources in the second target HTML document.

[0180] Please see Figure 9 , Figure 9 This is a schematic diagram of the login process of a bank system provided in an embodiment of this application.

[0181] 301. The browser sends a login request to the Node.js middleware layer.

[0182] When rendered as follows Figure 8After the login page is displayed, the browser shows the login page. The user enters username data in username input box 21 and password data in password input box 22 and clicks the login button. If password input box 22 is rendered according to the first rendering resource, the browser obtains the password data received by password input box 22 through the password control, and uses the JSSDK method to fill the password data with a random string randomStr through the encryption script to obtain the processed password data. Then, the processed password data is encrypted with public key publicKey to obtain ciphertext data. Then, a login request carrying ciphertext data and username data is generated and sent to the Node middleware layer. If password input box 22 is rendered according to the second rendering resource, the browser directly generates a login request carrying password data and username data and sends it to the Node middleware layer.

[0183] 302. In response to the login request, the Node middleware obtains the configuration information of the password control corresponding to the password data input box 22 from the configuration server.

[0184] Upon receiving a login request, in response to the login request, the Node middleware sends an HTTP request to the configuration server to obtain the configuration information of the password control corresponding to the password data input box 22.

[0185] 303. If the configuration information describes the password control as being enabled, then the node middleware layer obtains the random string and the private key.

[0186] 304. The node intermediate layer uses a random string and a private key to decrypt the ciphertext data to obtain the password data.

[0187] For example, if the configuration information describes the password control as enabled, the login request received by the Node middleware will be a login request carrying encrypted data and username data. This login request will also carry a cookie with a random string ramdomStr set. The Node middleware can obtain the random string ramdomStr from the login request cookie, and obtain the private key from the configuration file corresponding to the encryption method described in the configuration information; then, it uses the private key to decrypt the encrypted data to obtain the processed password data; and finally, it removes the random string from the processed password data based on the obtained random string to obtain the password data.

[0188] 305. The node middleware sends a login request carrying password and username data to the target device in order to log in to the bank system.

[0189] Understandably, to ensure the security of password and username data during transmission, the Node.js middleware layer can encrypt the password and username data during transmission when it sends a login request carrying the password and username data to the target device corresponding to the bank system to request login to the bank system.

[0190] 306. If the configuration information describes the password control as being in the off state, then the node middleware will send a login request carrying username and password data to the target device to request login to the bank system.

[0191] Understandably, to ensure the security of password and username data during transmission, the Node.js middleware layer can encrypt the password and username data during transmission when it sends a login request carrying the password and username data to the target device corresponding to the bank system to request login to the bank system.

[0192] In one possible implementation, after verifying the password and username data, the target device can generate a request result and return it to the Node.js middleware. Upon receiving the request result, the Node.js middleware can return it to the browser. The browser can then perform subsequent processing based on the request result. Specifically, if verification is successful, a login success request result can be generated; if verification fails, a login failure request result can be generated.

[0193] It should be noted that the above is merely an example provided in this application and is not intended to limit this application. That is to say, in practical applications, the browser can interact with the configuration server, resource server, and target device through the Node.js middleware to implement the input box rendering method provided in the embodiments of this application, or it can interact directly with the configuration server, resource server, and target device without going through the Node.js middleware to implement the input box rendering method provided in the embodiments of this application.

[0194] Please see Figure 10 , Figure 10 This is a schematic diagram of the structure of the input box rendering device provided in an embodiment of this application. The input box rendering device includes: an information acquisition module 401, a first resource acquisition module 402, a first input box rendering module 403, a second resource acquisition module 404, and a second input box rendering module 405.

[0195] The information acquisition module 401 is used to respond to the rendering operation of the privacy data input box by obtaining the configuration information of the password control corresponding to the privacy data input box from the configuration server. The configuration server maintains the configuration information of the password control corresponding to different privacy data input boxes.

[0196] The first resource acquisition module 402 is used to acquire the first rendering resource corresponding to the password control from the resource server if the configuration information describes the password control as being in the enabled state.

[0197] The first input box rendering module 403 is used to render the privacy data input box according to the first rendering resource;

[0198] The second resource acquisition module 404 is used to acquire the default second rendering resource if the configuration information describes the password control as being in a closed state.

[0199] The second input box rendering module 405 is used to render the privacy data input box according to the second rendering resource.

[0200] Optionally, the configuration information also describes the encryption method corresponding to the password control, and the rendering device of the input box also includes a data encryption module, which is specifically used to perform:

[0201] Receive the privacy data entered through the privacy data input box;

[0202] Accessing private data via password controls;

[0203] The privacy data is encrypted using encryption methods to obtain ciphertext data.

[0204] Optionally, the data encryption module is specifically used to perform:

[0205] Get a random string;

[0206] The privacy data is populated with random strings to obtain the processed data;

[0207] The data is encrypted using an encryption method to obtain ciphertext data.

[0208] Optionally, the data encryption module is specifically used to perform:

[0209] Obtain the public key corresponding to the encryption method;

[0210] The data is encrypted using a public key to obtain ciphertext data.

[0211] Optionally, the rendering device for the input box also includes a data transmission module, which is specifically used to perform:

[0212] In response to a request to transmit private data, obtain the private key corresponding to the encryption method;

[0213] The encrypted data is decrypted using the private key to obtain the processed data.

[0214] Remove random strings from the processed data to obtain private data;

[0215] The private data is transmitted to the target device corresponding to the transmission request.

[0216] Optionally, the first input box rendering module 403 is specifically used to perform:

[0217] If a password control is already installed, the privacy data input box will be rendered based on the first rendering resource.

[0218] Optionally, the first input box rendering module 403 is specifically used to perform:

[0219] If the password control is not installed, an installation prompt message will be displayed, which will guide you to install the password control.

[0220] Optionally, the rendering device for the input box also includes an information configuration module, which is specifically used to perform:

[0221] Displays the configuration page for the password control;

[0222] The configuration page receives configuration operations for the password control;

[0223] In response to a configuration operation, retrieve the configuration information configured by the configuration operation;

[0224] The configuration information configured in the configuration operation is sent to the configuration server to update the configuration information of the password control.

[0225] In this embodiment, the information acquisition module 401 responds to the rendering operation of the privacy data input box by obtaining the configuration information of the password control corresponding to the privacy data input box from the configuration server. The configuration server maintains the configuration information of the password control corresponding to different privacy data input boxes. If the configuration information describes the password control as being in an open state, the first resource acquisition module 402 obtains the first rendering resource corresponding to the password control from the resource server. The first input box rendering module 403 renders the privacy data input box according to the first rendering resource. If the configuration information describes the password control as being in a closed state, the second resource acquisition module 404 obtains the default second rendering resource. The second input box rendering module 405 renders the privacy data input box according to the second rendering resource. Thus, in the privacy data input scenario, when it is necessary to... When rendering a privacy data input box, the privacy data input box can be rendered according to the state of the password control. The state of the password control can be set based on the actual needs of privacy data protection. When privacy data needs to be protected by the password control, the state of the password control can be set to the on state to render the privacy data input box corresponding to the password control, and the privacy data received by the privacy data input box is protected by the password control. When privacy data does not need to be protected by the password control, the state of the password control can be set to the off state to render a normal privacy data input box, and the privacy data received by the privacy data input box is not protected by the password control. Compared with the scheme of fixed rendering of the privacy data input box corresponding to the password control, this application has better flexibility in rendering privacy data input boxes.

[0226] This application provides a computer-readable storage medium storing a computer program that, when executed on a computer, causes the computer to perform the input box rendering method provided in this embodiment.

[0227] This application also provides a computer device, including a memory and a processor, wherein the processor executes the input box rendering method provided in this embodiment by calling a computer program stored in the memory.

[0228] Furthermore, embodiments of this application also provide a computer device, which can be a terminal or a server, such as... Figure 11 As shown, it illustrates a structural schematic diagram of the computer device involved in the embodiments of this application, specifically:

[0229] The computer device may include components such as a processor 501 with one or more processing cores, a memory 502 with one or more storage media, a power supply 503, and an input unit 504. Those skilled in the art will understand that... Figure 11The computer device structure shown does not constitute a limitation on the computer device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:

[0230] The processor 501 is the control center of the computer device. It connects various parts of the computer device via various interfaces and lines, and performs various functions and processes data by running or executing software programs and / or modules stored in the memory 502, and by calling data stored in the memory 502, thereby providing overall control of the computer device. Optionally, the processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 501.

[0231] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 502 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.

[0232] The computer equipment also includes a power supply 503 that supplies power to the various components. Preferably, the power supply 503 can be logically connected to the processor 501 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 503 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0233] The computer device may also include an input unit 504, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0234] Although not shown, the computer device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 501 in the computer device loads the executable files corresponding to the processes of one or more application programs into the memory 502 according to the following instructions, and the processor 501 runs the application programs stored in the memory 502 to realize various functions, as follows:

[0235] In response to the rendering operation of the privacy data input box, the configuration information of the password control corresponding to the privacy data input box is obtained from the configuration server. The configuration server maintains the configuration information of the password control corresponding to different privacy data input boxes.

[0236] If the configuration information describes the password control as being enabled, then the first rendering resource corresponding to the password control is obtained from the resource server.

[0237] The privacy data input box is rendered based on the first rendering resource;

[0238] If the configuration information describes the password control as being in a closed state, then the default second rendering resource will be obtained;

[0239] The privacy data input box is rendered based on the second rendering resource.

[0240] Optionally, the configuration information also describes the encryption method corresponding to the password control, and after rendering the privacy data input box according to the first rendering resource, it also includes:

[0241] Receive the privacy data entered through the privacy data input box;

[0242] Accessing private data via password controls;

[0243] The privacy data is encrypted using encryption methods to obtain ciphertext data.

[0244] Optionally, the privacy data is encrypted to obtain ciphertext data, including:

[0245] Get a random string;

[0246] The privacy data is populated with random strings to obtain the processed data;

[0247] The data is encrypted using an encryption method to obtain ciphertext data.

[0248] Optionally, the data is encrypted using an encryption method to obtain ciphertext data, including:

[0249] Obtain the public key corresponding to the encryption method;

[0250] The data is encrypted using a public key to obtain ciphertext data.

[0251] Optionally, after encrypting the data with a public key to obtain the ciphertext data, the following additional steps are also included:

[0252] In response to a request to transmit private data, obtain the private key corresponding to the encryption method;

[0253] The encrypted data is decrypted using the private key to obtain the processed data.

[0254] Remove random strings from the processed data to obtain private data;

[0255] The private data is transmitted to the target device corresponding to the transmission request.

[0256] Optionally, the privacy data input box is rendered based on the first rendering resource, including:

[0257] If a password control is already installed, the privacy data input box will be rendered based on the first rendering resource.

[0258] Optionally, the rendering method for the input box also includes:

[0259] If the password control is not installed, an installation prompt message will be displayed, which will guide you to install the password control.

[0260] Optionally, the rendering method for the input box also includes:

[0261] Displays the configuration page for the password control;

[0262] The configuration page receives configuration operations for the password control;

[0263] In response to a configuration operation, retrieve the configuration information configured by the configuration operation;

[0264] The configuration information configured in the configuration operation is sent to the configuration server to update the configuration information of the password control.

[0265] In this embodiment, the computer device, in response to the rendering operation of the privacy data input box, obtains the configuration information of the password control corresponding to the privacy data input box from the configuration server. The configuration server maintains the configuration information of the password control corresponding to different privacy data input boxes. If the configuration information describes the password control as being in an "on" state, the device obtains the first rendering resource corresponding to the password control from the resource server and renders the privacy data input box according to the first rendering resource. If the configuration information describes the password control as being in a "off" state, the device obtains the default second rendering resource and renders the privacy data input box according to the second rendering resource. Thus, in a privacy data input scenario, when it is necessary to render the privacy data input box, the device can render according to the state of the password control. The privacy data input box has a password control whose state can be set based on the actual needs of privacy data protection. When privacy data needs to be protected by the password control, the password control can be set to the on state to render the privacy data input box corresponding to the password control, thus protecting the privacy data received by the privacy data input box. When privacy data does not need to be protected by the password control, the password control can be set to the off state to render a normal privacy data input box, without protecting the privacy data received by the privacy data input box through the password control. Compared with the scheme of fixed rendering of the privacy data input box corresponding to the password control, this application has better flexibility in rendering the privacy data input box.

[0266] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be accomplished by instructions, or by instructions controlling related hardware. These instructions can be stored in a storage medium and loaded and executed by a processor.

[0267] Therefore, embodiments of this application provide a storage medium storing multiple instructions that can be loaded by a processor to execute steps in any of the input box rendering methods provided in embodiments of this application. For example, the instructions can execute the following steps:

[0268] In response to the rendering operation of the privacy data input box, the configuration information of the password control corresponding to the privacy data input box is obtained from the configuration server. The configuration server maintains the configuration information of the password control corresponding to different privacy data input boxes.

[0269] If the configuration information describes the password control as being enabled, then the first rendering resource corresponding to the password control is obtained from the resource server.

[0270] The privacy data input box is rendered based on the first rendering resource;

[0271] If the configuration information describes the password control as being in a closed state, then the default second rendering resource will be obtained;

[0272] The privacy data input box is rendered based on the second rendering resource.

[0273] The storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0274] Since the instructions stored in the storage medium can execute the steps in any of the input box rendering methods provided in the embodiments of this application, the beneficial effects that any of the input box rendering methods provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.

[0275] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the input box rendering method provided in the above-described embodiments.

[0276] The above provides a detailed description of an input box rendering method, apparatus, computer device, and storage medium provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for rendering an input box, characterized in that, include: In response to the rendering operation of the privacy data input box, the configuration information of the password control corresponding to the privacy data input box is obtained from the configuration server. The configuration server maintains the configuration information of the password control corresponding to different privacy data input boxes. If the configuration information describes the password control as being in an enabled state, then the first rendering resource corresponding to the password control is obtained from the resource server. Render the privacy data input box according to the first rendering resource; If the configuration information describes the password control as being in a closed state, then the default second rendering resource is obtained; The privacy data input box is rendered based on the second rendering resource.

2. The method for rendering an input box according to claim 1, characterized in that, The configuration information also describes the encryption method corresponding to the password control. After rendering the privacy data input box according to the first rendering resource, the process further includes: The privacy data is received through the privacy data input box; The privacy data is obtained through the password control; The privacy data is encrypted using the aforementioned encryption method to obtain ciphertext data.

3. The method for rendering an input box according to claim 2, characterized in that, The encryption of the privacy data using the aforementioned encryption method to obtain ciphertext data includes: Get a random string; The privacy data is populated with the random string to obtain the processed data; The processed data is encrypted using the aforementioned encryption method to obtain ciphertext data.

4. The method for rendering an input box according to claim 3, characterized in that, The process of encrypting the processed data using the encryption method to obtain ciphertext data includes: Obtain the public key corresponding to the encryption method; The processed data is encrypted using the public key to obtain ciphertext data.

5. The method for rendering an input box according to claim 4, characterized in that, After encrypting the processed data using the public key to obtain ciphertext data, the process further includes: In response to a request to transmit the privacy data, obtain the private key corresponding to the encryption method; The encrypted data is decrypted using the private key to obtain the processed data. Remove the random string from the processed data to obtain the privacy data; The privacy data is transmitted to the target device corresponding to the transmission request.

6. The method for rendering an input box according to any one of claims 1 to 5, characterized in that, The step of rendering the privacy data input box according to the first rendering resource includes: If the password control has been installed, then the privacy data input box is rendered according to the first rendering resource.

7. The method for rendering an input box according to claim 6, characterized in that, The method further includes: If the password control is not installed, an installation prompt message will be output to encourage the installation of the password control.

8. The method for rendering an input box according to any one of claims 1 to 5, characterized in that, The method further includes: Display the configuration page for the password control; The configuration page receives configuration operations for the password control; In response to the configuration operation, obtain the configuration information configured by the configuration operation; The configuration information configured by the configuration operation is sent to the configuration server to update the configuration information of the password control.

9. A rendering device for an input box, characterized in that, include: The information acquisition module is used to respond to the rendering operation of the privacy data input box by obtaining the configuration information of the password control corresponding to the privacy data input box from the configuration server. The configuration server maintains the configuration information of the password control corresponding to different privacy data input boxes. The first resource acquisition module is used to acquire the first rendering resource corresponding to the password control from the resource server if the configuration information describes the password control as being in an enabled state. The first input box rendering module is used to render the privacy data input box according to the first rendering resource; The second resource acquisition module is used to acquire the default second rendering resource if the configuration information describes the password control as being in a closed state. The second input box rendering module is used to render the privacy data input box according to the second rendering resource.

10. A computer device, characterized in that, It includes a memory and a processor; the memory stores a computer program, and the processor is used to run the computer program in the memory to perform the rendering method of the input box according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store a computer program, which is loaded by a processor to perform the rendering method of the input box according to any one of claims 1 to 8.