A password filling method, apparatus, device and storage medium

CN116383785BActive Publication Date: 2026-09-01YIQIQIFUNETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310184970.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-21
Publication Date
2026-09-01
Estimated Expiration
2043-02-21

AI Technical Summary

Technical Problem

在整个过程中,需要用户进行查看口令,输入口令等操作,比较繁琐

Benefits of technology

[0035]可见,本申请提供了一种口令填充方法,包括:当用户打开的目标页面时,通过预设表单获取方法获取所述目标页面中满足预设信息填充要求的第一目标信息;通过预设填充判断方法判断所述第一目标信息是否支持口令自动填充;若所述第一目标信息支持所述口令自动填充,则基于所述第一目标信息调用口令生成接口,以获取当前口令;基于所述第一目标信息确定待填充输入框,并将所述当前口令填充至所述待填充输入框。由此可见,本申请通过判断第一目标信息是否口令支持自动填充,若是则调用口令生成接口获取当前口令,无需借助其他软件或技术,也无需人工输入,简化了口令填充的操作,提高了工作效率以及口令的安全性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116383785B_ABST
    Figure CN116383785B_ABST
Patent Text Reader

Abstract

This application discloses a password filling method, apparatus, device, and storage medium, relating to the field of computer technology. The method includes: when a user opens a target page, obtaining first target information that meets preset information filling requirements from the target page using a preset form acquisition method; determining whether the first target information supports automatic password filling using a preset filling judgment method; if the first target information supports automatic password filling, calling a password generation interface based on the first target information to obtain the current password; determining an input box to be filled based on the first target information, and filling the current password into the input box. This application simplifies the password filling operation by determining whether the first target information supports automatic password filling, and if so, calling a password generation interface to obtain the current password. This eliminates the need for other software or technologies and manual input, thus improving work efficiency and password security.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a password filling method, apparatus, device, and storage medium. Background Technology

[0002] Currently, during the login process of some systems, after entering their username and password, users are required to enter a one-time password (OTP). This requires users to open a dedicated mobile application, read the one-time password (e.g., a six-digit number), manually enter it into the corresponding input box within a specified time, and submit the form to complete the login process. This entire process involves users viewing and entering the password, which is cumbersome. It also has the following drawbacks: users need to manually enter the password every time they log in, which is inefficient; reading the six-digit password on the app and then manually entering it digit by digit in the browser is prone to errors; because the password has a certain time limit, users need to complete the corresponding operations quickly; generating the one-time password requires the use of other third-party apps; and the key can be lost due to phone replacement or app corruption. Summary of the Invention

[0003] In view of this, the purpose of this invention is to provide a password filling method, apparatus, device, and storage medium that can simplify the password filling operation, improve work efficiency, and enhance password security. The specific solution is as follows:

[0004] Firstly, this application discloses a password filling method, including:

[0005] When a user opens a target page, the first target information that meets the preset information filling requirements in the target page is obtained through a preset form acquisition method.

[0006] The system determines whether the first target information supports automatic password filling using a preset filling method.

[0007] If the first target information supports automatic password filling, then the password generation interface is called based on the first target information to obtain the current password;

[0008] Based on the first target information, a blank input box is determined, and the current password is filled into the blank input box.

[0009] Optionally, before obtaining the first target information that meets the preset information filling requirements from the target page through the preset form acquisition method, the method further includes:

[0010] The preset extension is invoked to import the preset configuration file into the target page, and the JS script in the preset configuration file is executed.

[0011] Optionally, before obtaining the first target information that meets the preset information filling requirements from the target page through a preset form acquisition method when the user opens the target page, the method further includes:

[0012] The target information for each website is configured through the key information maintenance function in the preset extension program to obtain an information set; wherein, the target information includes the website name, website address, form ID / name, password input box ID / name, and key.

[0013] Optionally, after obtaining the first target information that meets the preset information filling requirements from the target page through a preset form acquisition method when the user opens the target page, the method further includes:

[0014] Call the Get Support Forms API to obtain pre-configured second target information that supports autofill functionality.

[0015] Optionally, determining whether the first target information supports automatic password filling using a preset filling method includes:

[0016] Obtain the first webpage address and the id / name of the first form from the first target information;

[0017] The first webpage address and the id / name of the first form are matched with the second webpage address and the id / name of the second form in the second target information, respectively.

[0018] When the corresponding second webpage address and the id / name of the second form are matched simultaneously, it is determined that the first target information supports automatic password filling.

[0019] Optionally, the step of calling the password generation interface based on the first target information to obtain the current password includes:

[0020] Input the first webpage address and the id / name of the first form into the password generation interface so as to obtain the corresponding current password based on the first webpage address and the id / name of the first form;

[0021] Accordingly, determining the input box to be filled based on the first target information and filling the input box with the current password includes:

[0022] The ID / name of the corresponding first password input box is determined based on the first webpage address and the ID / name of the first form;

[0023] The input box to be filled is determined based on the id / name of the first password input box, and the current password is filled into the input box to be filled.

[0024] Optionally, the step of determining the input box to be filled based on the first target information and filling the current password into the input box to be filled further includes:

[0025] Trigger the click event of the form submit button to automatically execute the preset form submission operation.

[0026] Secondly, this application discloses a password filling device, comprising:

[0027] The information acquisition module is used to acquire first target information that meets the preset information filling requirements in the target page when the user opens the target page through a preset form acquisition method;

[0028] The fill-in judgment module is used to determine whether the first target information supports automatic password filling by using a preset fill-in judgment method;

[0029] The password acquisition module is used to call the password generation interface based on the first target information to obtain the current password if the first target information supports automatic password filling.

[0030] The password filling module is used to determine the input box to be filled based on the first target information and fill the current password into the input box to be filled.

[0031] Thirdly, this application discloses an electronic device, including:

[0032] Memory, used to store computer programs;

[0033] A processor for executing the computer program to implement the steps of the password filling method disclosed above.

[0034] Fourthly, this application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the password filling method disclosed above.

[0035] As can be seen, this application provides a password filling method, including: when a user opens a target page, obtaining first target information that meets preset information filling requirements from the target page through a preset form acquisition method; determining whether the first target information supports automatic password filling through a preset filling judgment method; if the first target information supports automatic password filling, calling a password generation interface based on the first target information to obtain the current password; determining an input box to be filled based on the first target information, and filling the current password into the input box to be filled. Therefore, this application simplifies the password filling operation and improves work efficiency and password security by determining whether the first target information supports automatic password filling and, if so, calling a password generation interface to obtain the current password, without relying on other software or technology or requiring manual input. Attached Figure Description

[0036] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0037] Figure 1 This is a flowchart of a password filling method disclosed in this application;

[0038] Figure 2 This is a schematic diagram of the configuration file for the extension program disclosed in this application;

[0039] Figure 3 This is a schematic diagram of a password filling method disclosed in this application;

[0040] Figure 4 This is a flowchart of a specific password filling method disclosed in this application;

[0041] Figure 5 This is a flowchart of a specific password filling method disclosed in this application;

[0042] Figure 6 A schematic diagram illustrating the password configuration disclosed in this application;

[0043] Figure 7 This is a diagram illustrating the password modification / addition method disclosed in this application.

[0044] Figure 8 A schematic diagram of the password filling device provided in this application;

[0045] Figure 9 This application provides a structural diagram of an electronic device. Detailed Implementation

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

[0047] Currently, in the login process of some systems, after users enter their account and password, they are required to enter a one-time password. This requires users to open a dedicated mobile app, read the one-time password (e.g., a six-digit number), manually enter it into the corresponding input box within a specified time, and submit the form to complete the login process. This entire process involves users viewing and entering the password, which is cumbersome. Therefore, this application provides a password filling method that simplifies the password filling operation, improves work efficiency, and enhances password security.

[0048] This invention discloses a password filling method, see [link to relevant documentation]. Figure 1 As shown, the method includes:

[0049] Step S11: When the user opens the target page, the first target information that meets the preset information filling requirements in the target page is obtained through the preset form acquisition method.

[0050] In this embodiment, when a user opens the target page, the first target information that meets the preset information filling requirements in the target page is obtained through a preset form acquisition method. It can be understood that before the user opens the target page, a preset extension program is called to import a preset configuration file into the target page and execute the JavaScript script in the preset configuration file.

[0051] This solution mainly consists of two parts: a server-side component and a browser extension. The server-side theme is used to store configurations and generate one-time passwords. It can be implemented using various technical languages ​​and frameworks, such as Java (an object-oriented programming language), PHP (Hypertext Preprocessor), and NodeJS. It primarily provides the following interfaces: 1) A list of forms that support autofill. This interface returns information about websites that support autofill, including website addresses and form information; 2) A one-time password generation interface. When the extension detects a supported login form on the page, it calls this interface to obtain the corresponding password; 3) A maintenance interface for website, form, and key information. This set of interfaces includes functions for adding, deleting, and modifying this information.

[0052] Chrome (Google Chrome) extensions, such as Figure 2 As shown, a configuration file named manifest.json for the extension is added. This file sets basic extension information, including the extension name, version, manifest version, and the CSS and JavaScript files to be loaded. The CSS file controls the button style, and the JavaScript implements the specific functionality. By configuring the content_scripts item, the extension's scripts and CSS are injected into the page, allowing for easy configuration of JavaScript and CSS for specific pages.

[0053] Step S12: Determine whether the first target information supports automatic password filling using a preset filling judgment method.

[0054] In this embodiment, after obtaining the first target information that meets the preset information filling requirements from the target page using a preset form acquisition method, a preset filling judgment method is used to determine whether the first target information supports automatic password filling. It can be understood that a pre-configured second target information that supports automatic filling is obtained, and it is determined whether the first target information exists in the second target information. If it exists, the first target information is determined to support automatic password filling; if it does not exist, the first target information is determined to not support automatic password filling.

[0055] Step S13: If the first target information supports automatic password filling, then call the password generation interface based on the first target information to obtain the current password.

[0056] In this embodiment, after determining whether the first target information supports automatic password filling using a preset filling judgment method, if the first target information supports automatic password filling, then the password generation interface is called based on the first target information to obtain the current password. It can be understood that the browser extension includes two functions: key information maintenance and automatic filling of one-time passwords; a one-time password (i.e., the current password) is generated based on the corresponding key in the key information maintenance.

[0057] Step S14: Determine the input box to be filled based on the first target information, and fill the current password into the input box to be filled.

[0058] In this embodiment, after calling the password generation interface based on the first target information to obtain the current password, the input box to be filled is determined based on the first target information, and the current password is filled into the input box. It can be understood that the password key used by the login user is saved to a web server through a Chrome extension. After the browser extension obtains the one-time password, it automatically fills it into the corresponding input box, thereby completing a quick login. This plugin has very flexible extensibility; when new form support is needed, configurations can be added dynamically. Besides Chrome, the extension can also run on all Webkit-based browsers, such as 360 Speed ​​Browser, 360 Security Browser, Sogou Browser, and QQ Browser. This method is also applicable to other browsers. Furthermore, after filling the input box with the current password, the form submit button's click event is triggered, automatically executing the preset form submission operation.

[0059] Specifically, such as Figure 3 As shown, the specific process of implementing the password autofill function is as follows: When a user opens a page, the Chrome extension injects the FillOTP.js script into the page, and the script execution begins; it calls the "Get Supported Forms List" interface to obtain pre-configured information on websites and forms that support autofill; the script retrieves all forms by searching for form nodes in the DOM page; it iterates through all the retrieved forms, and if a form contains a submit button (by searching for `type="submit"`...), it checks if the form contains a submit button. <input> Or <button>If a search is performed, proceed to the next step; otherwise, end the process. Retrieve the current webpage address and the ID / name of the current form. Iterate through the list of all supported forms, determining whether the current form is in the supported form list based on the current webpage address and the form itself. If it is, proceed to the next step; otherwise, end the process. If the current form is in the supported form list, call the "password generation interface" to obtain the generated password, with the current webpage address and the ID / name of the current form as input parameters. Figure 4 As shown, the system finds the corresponding input box based on the id / name of the returned password input box, automatically fills the obtained password (e.g., 123456) into this input box, and triggers the click event of the form submit button to automatically complete the submission operation and complete the login function.

[0060] As is understandable, Google Chrome, also known as the Google browser, is a free web browser developed by Google. This browser is based on open-source engines such as WebKit (an open-source browser engine) and Blink, aiming to improve browser stability, speed, and security, and provide a simple and efficient user interface. Chrome also provides an excellent browser extension framework, allowing developers to create various browser enhancements to make it easier for users to complete various tasks. A Chrome extension is a program developed using web technologies to enhance browser functionality. Essentially, an extension is a compressed package composed of resources such as HTML (Hypertext Markup Language), CSS (Cascading Style Sheets), JavaScript, and image files. Chrome extension development is very simple; developers only need basic web development skills and can quickly develop extensions using HTML, CSS, and JavaScript. Extensions can interact with web pages or interact with servers through content scripts and XMLHttpRequest. Extensions can also use all the APIs and built-in functions provided by the browser, such as tabs or bookmarks.

[0061] In HTML, all fillable input fields are called text boxes, and these text boxes are contained within forms. Currently, passwords are mainly generated through mobile apps. Passwords are typically 6-digit numbers, read manually and then entered into the corresponding password input field. OTP, also known as dynamic passwords or one-time valid passwords, is a password provided by websites for additional verification (two-factor authentication) during login. It's a one-time numeric string that users must enter during login; once used, a new password is required for subsequent logins. One-time dynamic passwords are generated every 60 seconds using a specific algorithm based on a key, resulting in a time-dependent, unpredictable, random six-digit number. Each password changes every minute, generating up to 1440 one-time passwords per day. OTP password generation relies on a key; each user receives a unique key. When different users encrypt using the same algorithm, each user receives a different random password because their keys are different.

[0062] This application utilizes browser extension technology to automatically fill in one-time passwords (such as OTP passwords) during login, enabling rapid login. Users do not need to generate one-time passwords using other software or technologies, nor do they need to manually enter them, allowing for quick login. The extension significantly improves login efficiency. All configuration and key information is stored on a third-party server, facilitating addition, modification, and deletion of information. When configuration and keys need to be changed, or when new forms need to be supported, only account changes need to be made on the server side. Server-side storage of configuration and key information ensures compatibility across multiple devices and prevents key information loss due to app resets or phone replacements. OTP passwords are generated by a central server, eliminating the need to install an OTP generation app.

[0063] As can be seen, this application provides a password filling method, including: when a user opens a target page, obtaining first target information that meets preset information filling requirements from the target page through a preset form acquisition method; determining whether the first target information supports automatic password filling through a preset filling judgment method; if the first target information supports automatic password filling, calling a password generation interface based on the first target information to obtain the current password; determining an input box to be filled based on the first target information, and filling the current password into the input box to be filled. Therefore, this application simplifies the password filling operation and improves work efficiency and password security by determining whether the first target information supports automatic password filling and, if so, calling a password generation interface to obtain the current password, without relying on other software or technology or requiring manual input.

[0064] See Figure 5 As shown, this embodiment of the invention discloses a password filling method. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution.

[0065] Step S21: Configure the target information of each website through the key information maintenance function in the preset extension program to obtain the information set.

[0066] In this embodiment, the target information for each website is configured through the key information maintenance function in the preset extension program to obtain an information set; wherein, the target information includes the website name, website address, form ID / name, password input box ID / name, and key. It can be understood that the key information maintenance function includes the website name, website address, form ID / name, password input box ID / name, and key. Figure 6 As shown, the key information maintenance function includes website information and corresponding key information, and allows for operations such as adding, deleting, and modifying. When adding or modifying information, such as... Figure 7 As shown, it is necessary to fill in or modify the website information, form information, key information, and password information for each website.

[0067] Step S22: When the user opens the target page, the first target information that meets the preset information filling requirements in the target page is obtained through the preset form acquisition method.

[0068] Step S23: Call the Get Support Forms interface to obtain pre-configured second target information that supports autofill functionality.

[0069] In this embodiment, after obtaining the first target information that meets the preset information filling requirements from the target page through a preset form acquisition method, the form acquisition interface is called to obtain the pre-configured second target information that supports autofill functionality. This is to match the first target information with the second target information and determine whether the first target information supports password autofill based on the matching result.

[0070] Step S24: Determine whether the first target information supports automatic password filling using a preset filling judgment method.

[0071] In this embodiment, after calling the form-supporting interface to obtain pre-configured second target information that supports autofill functionality, a preset autofill judgment method is used to determine whether the first target information supports password autofill. Specifically, the first webpage address and the ID / name of the first form in the first target information are obtained; the first webpage address and the ID / name of the first form are matched with the second webpage address and the ID / name of the second form in the second target information, respectively; when a matching is found between the corresponding second webpage address and the ID / name of the second form, it is determined that the first target information supports password autofill.

[0072] Step S25: If the first target information supports automatic password filling, call the password generation interface based on the first target information to obtain the current password.

[0073] Step S26: Determine the input box to be filled based on the first target information, and fill the current password into the input box to be filled.

[0074] In this embodiment, after calling the password generation interface based on the first target information to obtain the current password, the input box to be filled is determined based on the first target information, and the current password is filled into the input box to be filled. Specifically, the id / name of the corresponding first password input box is determined based on the first webpage address and the id / name of the first form; the input box to be filled is determined based on the id / name of the first password input box, and the current password is filled into the input box to be filled.

[0075] For details regarding steps S22 and S25, please refer to the corresponding content disclosed in the foregoing embodiments, which will not be repeated here.

[0076] As can be seen, this embodiment configures the target information of each website through the key information maintenance function in the preset extension program to obtain an information set; when a user opens the target page, the first target information that meets the preset information filling requirements in the target page is obtained through the preset form acquisition method; the form support interface is called to obtain the pre-configured second target information that supports the auto-fill function; the first target information is judged to support the password auto-fill through the preset filling judgment method; if the first target information supports the password auto-fill, the password generation interface is called based on the first target information to obtain the current password; the input box to be filled is determined based on the first target information, and the current password is filled into the input box to be filled, which simplifies the password filling operation and improves work efficiency and password security.

[0077] See Figure 8 As shown in the figure, this application also discloses a password filling device, including:

[0078] Information acquisition module 11 is used to acquire first target information that meets the preset information filling requirements in the target page through a preset form acquisition method when the user opens the target page;

[0079] The fill judgment module 12 is used to determine whether the first target information supports automatic password filling by using a preset fill judgment method;

[0080] The password acquisition module 13 is used to call the password generation interface based on the first target information to obtain the current password if the first target information supports the automatic password filling.

[0081] The password filling module 14 is used to determine the input box to be filled based on the first target information and fill the current password into the input box to be filled.

[0082] As can be seen, this application includes: when a user opens a target page, obtaining first target information that meets preset information filling requirements from the target page through a preset form acquisition method; determining whether the first target information supports automatic password filling through a preset filling judgment method; if the first target information supports automatic password filling, calling a password generation interface based on the first target information to obtain the current password; determining an input box to be filled based on the first target information, and filling the current password into the input box to be filled. Therefore, this application simplifies the password filling operation and improves work efficiency and password security by determining whether the first target information supports automatic password filling and, if so, calling a password generation interface to obtain the current password, without relying on other software or technology or requiring manual input.

[0083] In some specific embodiments, the information acquisition module 11 specifically includes:

[0084] The preset configuration file import unit is used to call a preset extension to import the preset configuration file into the target page;

[0085] The script execution unit is used to execute the js script in the preset configuration file;

[0086] The information set acquisition unit is used to configure the target information of each website through the key information maintenance function in the preset extension program to obtain the information set; wherein, the target information includes the website name, website address, form id / name, password input box id / name, and key;

[0087] The first target information acquisition unit is used to acquire first target information that meets the preset information filling requirements in the target page by means of a preset form acquisition method when the user opens the target page.

[0088] The second target information acquisition unit is used to call the form acquisition interface to obtain pre-configured second target information that supports autofill functionality.

[0089] In some specific embodiments, the filling determination module 12 specifically includes:

[0090] The first information acquisition unit is used to acquire the first webpage address and the id / name of the first form in the first target information;

[0091] The information matching unit is used to match the first webpage address and the id / name of the first form with the second webpage address and the id / name of the second form in the second target information, respectively.

[0092] The autofill determination unit is used to determine that the first target information supports automatic password filling when the corresponding second webpage address and the id / name of the second form are matched simultaneously.

[0093] In some specific embodiments, the password acquisition module 13 specifically includes:

[0094] The current password acquisition unit is used to input the first webpage address and the id / name of the first form into the password generation interface if the first target information supports the automatic password filling, so as to obtain the corresponding current password based on the first webpage address and the id / name of the first form.

[0095] In some specific embodiments, the password filling module 14 specifically includes:

[0096] The first password input box determination unit is used to determine the id / name of the corresponding first password input box based on the first web page address and the id / name of the first form;

[0097] The current password filling unit is used to determine the input box to be filled based on the id / name of the first password input box, and fill the current password into the input box to be filled.

[0098] The form submission unit is used to trigger the click event of the form submission button and automatically execute the preset form submission operation.

[0099] Furthermore, embodiments of this application also provide an electronic device. Figure 9 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application.

[0100] Figure 9 This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of this application. Specifically, the electronic device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the password filling method disclosed in any of the foregoing embodiments. Alternatively, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0101] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.

[0102] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include operating system 221, computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0103] The operating system 221 is used to manage and control the various hardware devices on the electronic device 20 and the computer program 222, which may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of performing the password filling method executed by the electronic device 20 as disclosed in any of the foregoing embodiments, the computer program 222 may further include a computer program capable of performing other specific tasks.

[0104] Furthermore, this application also discloses a storage medium storing a computer program, which, when loaded and executed by a processor, implements the password filling method steps disclosed in any of the foregoing embodiments.

[0105] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.

[0106] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0107] The above provides a detailed description of the password filling method, apparatus, device, and storage medium provided by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. 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 the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.< / button>

Claims

1. A password filling method, characterized in that, include: When a user opens a target page, the first target information that meets the preset information filling requirements in the target page is obtained through a preset form acquisition method. The system determines whether the first target information supports automatic password filling using a preset filling method. If the first target information supports automatic password filling, then the password generation interface is called based on the first target information to obtain the current password; Based on the first target information, a blank input box is determined, and the current password is filled into the blank input box. When a user opens the target page, after obtaining the first target information that meets the preset information filling requirements on the target page through the preset form retrieval method, the process also includes: calling the form retrieval interface to obtain the pre-configured second target information that supports the autofill function; The method for determining whether the first target information supports automatic password filling is based on a preset filling judgment method, including: obtaining the first webpage address and the id / name of the first form in the first target information; matching the first webpage address and the id / name of the first form with the second webpage address and the id / name of the second form in the second target information, respectively; and determining that the first target information supports automatic password filling when the corresponding second webpage address and the id / name of the second form are matched simultaneously. The password generation interface is called based on the first target information to obtain the current password, including: inputting the first webpage address and the id / name of the first form into the password generation interface so as to obtain the corresponding current password based on the first webpage address and the id / name of the first form.

2. The password filling method according to claim 1, characterized in that, Before obtaining the first target information that meets the preset information filling requirements from the target page through the preset form acquisition method, the method further includes: The preset extension is invoked to import the preset configuration file into the target page, and the JS script in the preset configuration file is executed.

3. The password filling method according to claim 2, characterized in that, Before obtaining the first target information that meets the preset information filling requirements from the target page through a preset form acquisition method when the user opens the target page, the method further includes: The target information for each website is configured through the key information maintenance function in the preset extension program to obtain an information set; wherein, the target information includes the website name, website address, form ID / name, password input box ID / name, and key.

4. The password filling method according to claim 1, characterized in that, The step of determining the input box to be filled based on the first target information and filling the input box with the current password includes: The ID / name of the corresponding first password input box is determined based on the first webpage address and the ID / name of the first form; The input box to be filled is determined based on the id / name of the first password input box, and the current password is filled into the input box to be filled.

5. The password filling method according to any one of claims 1 to 4, characterized in that, The step of determining the input box to be filled based on the first target information and filling the current password into the input box to be filled further includes: Trigger the click event of the form submit button to automatically execute the preset form submission operation.

6. A password filling device, characterized in that, include: The information acquisition module is used to acquire first target information that meets the preset information filling requirements in the target page when the user opens the target page through a preset form acquisition method; The fill-in judgment module is used to determine whether the first target information supports automatic password filling by using a preset fill-in judgment method; The password acquisition module is used to call the password generation interface based on the first target information to obtain the current password if the first target information supports automatic password filling. A password filling module is used to determine the input box to be filled based on the first target information and fill the current password into the input box to be filled. When a user opens the target page, after obtaining the first target information that meets the preset information filling requirements on the target page through the preset form retrieval method, the process also includes: calling the form retrieval interface to obtain the pre-configured second target information that supports the autofill function; The method for determining whether the first target information supports automatic password filling is based on a preset filling judgment method, including: obtaining the first webpage address and the id / name of the first form in the first target information; matching the first webpage address and the id / name of the first form with the second webpage address and the id / name of the second form in the second target information, respectively; and determining that the first target information supports automatic password filling when the corresponding second webpage address and the id / name of the second form are matched simultaneously. The password generation interface is called based on the first target information to obtain the current password, including: inputting the first webpage address and the id / name of the first form into the password generation interface so as to obtain the corresponding current password based on the first webpage address and the id / name of the first form.

7. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the steps of the password filling method as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that, Used to store computer programs; wherein, when the computer programs are executed by a processor, they implement the password filling method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Login information acquisition method and apparatus

    CN105956136A

  • Application software login method, device, medium and equipment

    CN113722687A