Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing shows the disclosure
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should be by embodiments set forth here
Limited.On the contrary, it is provided that these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
Fig. 1 shows the flow chart of the method carrying out information input the most in a browser,
As it is shown in figure 1, method comprises the steps:
Step S110, when the page process of browser loads the page, recognizes the webpage of pending input in the page defeated
Enter element, load the web page joint of a dummy keyboard icon in the position that webpage input element is corresponding.
Webpage input element includes the Text Entry of different attribute, is shown as password box in the page, search box etc., on
Stating input element in html file corresponding to different types of web page joint, such as, password box corresponding to attribute is
<input>label of password, search box corresponds to<input>label etc. that attribute is text.
Specifically, after page process html file in the complete page of browser downloads, the page is loaded, renders,
In the html file of the page, inquire the node that above-mentioned webpage input element is corresponding, load a void at corresponding node location
Intend the web page joint of keyboard icon so that dummy keyboard icon shows the right side in the input frame region that webpage input element is corresponding
Lateral edges position.
Web page joint is loaded by page process, and with the html document of the page, and the script file such as javascript without
Close.
Step S120, trigger event, to the trigger event of dummy keyboard icon, is notified to browser by page process detection
Host process, is started a window display dummy keyboard by browser host process.
Trigger event includes the click event to dummy keyboard icon respective nodes, and other self-defined trigger events
Deng.
Browser host process display dummy keyboard, dummy keyboard is as a functional module of browser, by browser certainly
The program code of body realizes, and the loading with web page joint is similar, dummy keyboard also with the javascript in the page, and page control
Parts etc. are unrelated, therefore, present invention can be suitably applied to any page with input element.
Step S130, browser host process receives and utilizes the input information that dummy keyboard inputs, input information is notified to
Page process.
Specifically, browser host process receives the input letter inputting the click behavior of specific character on dummy keyboard
Breath, input information can be added process message, notify to host process in the way of process message by browser host process.
Step S140, input information is written in webpage input element by page process.
Page process receives the process message comprising input information that browser host process sends, and input information is written to
In the webpage input elements such as corresponding text box.
In the embodiment of the present invention, with the input of dummy keyboard analog physical keyboard, it is to avoid stolen by Key Logger,
Also input information cannot be obtained by api function relevant with keyboard in interception system.
The method provided according to the above embodiment of the present invention, page process loads one in the position that webpage input element is corresponding
The web page joint of dummy keyboard icon, when the trigger event to dummy keyboard icon being detected, notifies trigger event to browsing
Device host process, is started a window display dummy keyboard by browser host process, receives the input information utilizing dummy keyboard to input,
Input information is notified to page process;Input information is written in webpage input element by page process.According to the program, clear
Device of looking at can be that any page with input element provides dummy keyboard, and information input is not required to through physical keyboard, it is to avoid be subject to
Stealing of Key Logger;It is mutual that what dummy keyboard received is input to write the information during input element, all occurring at
Inside browser, it is not easily susceptible to external program and intercepts and captures, there is higher safety, it is to avoid user is stolen and meet with due to personal information
Suffer a loss.
Fig. 2 shows the flow process of the method carrying out information input the most in a browser
Figure, as a example by the present embodiment is with the common cryptographic node in website log, enrollment page, and Net silver, the payment page, illustrates this
The implementation process of invention.As in figure 2 it is shown, method comprises the steps:
Step S210, browser page process load the page time, recognize attribute in the page be password <
Input > label.
It is<input>label of password that cryptographic node corresponds to attribute in the page, as<input type="
Password " id=" password " name=" password " > etc., page process, by identifying above-mentioned label, finds password
Node.
Step S220, corresponding to the right side in the input frame region that<input>label that attribute is password is corresponding
Position load the web page joint of a dummy keyboard icon.
Referring to the description in embodiment step S110, here is omitted.
Step S230, page process detection is to the trigger event of dummy keyboard icon.
The trigger event of dummy keyboard icon includes the mouse click event to dummy keyboard icon corresponding node, it is also possible to
It is other self-defining trigger events, the most self-defining quick triggering key.Specifically, page process can be by the page
Javascript function monitors above-mentioned trigger event, and when trigger event occurs, notified.
Step S240, notifies trigger event to browser host process.
By the communication mechanism between browser host process and page process, notify trigger event to enter to browser master
Journey.
Step S250, browser host process starts a window display dummy keyboard.
Browser host process display dummy keyboard, dummy keyboard, as a separate functional blocks of browser, is browsing
The programming of device realizes, and unrelated with the html document in the page etc., and therefore, the input method in the present invention is applicable to
Any page.
Specifically, a graphic interface can be realized by browser, the interface letter that this graphic interface provides according to system
Number determines mouse position and click event, in conjunction with predefined keyboard layout and button assignment, obtains the input of user.
Further, dummy keyboard can arrange some shortcuts relevant with browser, such as, browser is arranged fast
Key, after click, browser host process creates new Shipping Options Page, opens and arranges the page.
Step S260, browser host process receives the input letter inputting the click behavior of specific character on dummy keyboard
Breath.
Dummy keyboard can have multiple keyboard layout, when the node that dummy keyboard icon is corresponding is triggered, and different keys
Dish layout shows in turn, reduces the probability that input information is trapped further.
Step S270, input information is encoded by browser host process by predefined form.
Between process, the data of transmission typically require encoded.The present invention uses predefined coded format, browser
Input information after coding is added in process message by host process, when process message is intercepted and captured by other programs, owing to not obtaining
Know that coded format, input information will not be revealed, further ensure user cipher safety.
Step S280, browser host process will coding by the self-defined process message consulted in advance between page process
After input information notify to page process.
Operating system allows self-defined process message, such as, by RegisterWindowsMessage () function registration
New message.
Input information after coding is joined in self-defined process message by browser host process, alternatively, is adding certainly
Before definition process message, the input information after coding can also be encrypted by browser host process, such as, by MD5,
The modes such as DSA are encrypted, and then, are added in self-defined process message by the check value that encryption is formed.
The safety of input information transmission is further increased by self-defined process message and encryption.
Step S290, input information is written in<input>label by page process.
Page process, according to the self-defined process message consulted in advance and coded system, parses coding from process message
After input information, be decoded, be delivered to currently obtain on the node of focus, input information is written to<input>label
In.If input information have passed through encryption, then this step also includes deciphering check value.
Fig. 3 shows the flow process of the method carrying out information input the most in a browser
Figure, as it is shown on figure 3, method comprises the steps:
Step S310, browser page process load the page time, recognize attribute in the page be password <
Input > label.
Step S320, it is hiding for loading a default property in the position that<input>label that attribute is password is corresponding
The web page joint of dummy keyboard icon.
In the present invention, load concealed nodes refer to load in the page page javascript access less than shadow
Node, when the page loads, can not show this node.
Step S330, page process detection attribute is the focus event of<input>label of password.
Focus event refers to that password box is clicked on or obtains focus due to operations such as TAB key switchings.Page process is led to
Cross the monitoring click event to webpage input element, or by monitoring, the TAB key handover event of webpage input element is examined
Survey focus event.
When focus event does not occurs, the web page joint of dummy keyboard icon does not shows, so, does not affect adding of parent page
Carrying, only when user clicks on or is switched to password box, just show dummy keyboard icon, this can be avoided causing user as far as possible
Interference.
Step S340, is revised as showing by hiding by the attribute of the web page joint that default property is hiding dummy keyboard icon
Show.
The nodal community of dummy keyboard icon hidden by amendment makes dummy keyboard icon show to add with web page joint
Carry corresponding position, position, such as, the right side edge position in input frame region.
Step S350, trigger event, to the trigger event of dummy keyboard icon, is notified to browser by page process detection
Host process.
Step S360, browser host process starts a window display dummy keyboard.
Step S370, browser host process receives the input letter inputting the click behavior of specific character on dummy keyboard
Breath.
Step S380, input information is encoded by browser host process by predefined form.
Step S390, the input information after coding is encrypted by browser host process, and school encryption formed
Test value to add in self-defined process message.
Step S3100, browser host process will be compiled by the self-defined process message consulted in advance between page process
Input information after Ma notifies to page process.
Step S3110, input information is written in<input>label by page process.
The specific implementation process of step S350-S3110 can be found in step S230-S290 of an embodiment, the most no longer
Repeat.
The method provided according to the above embodiment of the present invention, page process loads one in the position that webpage input element is corresponding
Attribute is the web page joint of hiding dummy keyboard icon, when this web page joint becomes focus event, then is shown by this node
In the page.Then, notified by browser internal process, the mode such as self-defined process message, utilize dummy keyboard to obtain and use
Family input information.This mode is without physical keyboard, therefore, it is impossible to pass through in capturing operation system relevant with keyboard operation
Function obtains keyboard input information.The dummy keyboard node hidden does not shows when the page loads, and decreases the normal page
The interference of function, and, self-defining coded system and process message further enhancing safety.
Fig. 4 shows the structured flowchart of browser device according to an embodiment of the invention, as shown in Figure 4, device bag
Include:
Page scheduler module 410 and browser host process module 420.
Wherein, page scheduler module 410 includes:
Load-on module 4101, is suitable to, when the page process of browser loads the page, recognize pending input in the page
Webpage input element, load the web page joint of a dummy keyboard icon in the position that webpage input element is corresponding.
Webpage input element includes the Text Entry of different attribute, is shown as password box in the page, search box etc., on
Stating input element in html file corresponding to different types of web page joint, such as, password box corresponding to attribute is
<input>label of password, search box corresponds to<input>label etc. that attribute is text.Specifically, load-on module
4101 by identifying that in the page, attribute is<input>label of password, identifies cryptographic node.
Alternatively, the position corresponding to the load-on module 4101 right side in the input frame region that webpage input element is corresponding
Load the web page joint of a dummy keyboard icon.
Detection module 4102, is adapted to detect for the trigger event of dummy keyboard icon, notifies trigger event to browser
Host process module.
The trigger event of dummy keyboard icon includes the mouse click event to dummy keyboard icon corresponding node, it is also possible to
It is other self-defining trigger events, the most self-defining quick triggering key.
Writing module 4103, is suitable to be written in webpage input element the input information utilizing dummy keyboard to input.
Browser host process module 420 includes:
Display module 4201, is suitable to after receiving trigger event, starts a window display dummy keyboard.
Input module 4202, is suitable to receive the input information utilizing dummy keyboard to input.
Input module 4202 is particularly adapted to: receive the input letter inputting the click behavior of specific character on dummy keyboard
Breath.
Notification module 4203, is suitable to notify input information to page scheduler module.
Notification module 4203 is particularly adapted to: encode input information by predefined form, by with page process
Between the self-defined process message consulted in advance the input information after coding is notified to page process.
The browser device provided according to the above embodiment of the present invention, load-on module is in position corresponding to webpage input element
Load the web page joint of a dummy keyboard icon, when detection module detects the trigger event to dummy keyboard icon, will trigger
Event notifies to browser host process module, browser host process module to start a window display dummy keyboard, receive and utilize
The input information of dummy keyboard input, notifies input information to page process;Input information is written to by page scheduler module
In webpage input element.According to the program, browser is that whole page provides general dummy keyboard, information input be not required to through
Cross physical keyboard, it is to avoid stolen by Key Logger;During what dummy keyboard received is input to write input element
Information is mutual, all occurring at browser inside, it is impossible to intercepted and captured by external program, has higher safety, it is to avoid user
Owing to personal information is stolen and suffer a loss.
Fig. 5 shows the structured flowchart of browser device according to an embodiment of the invention, as it is shown in figure 5, device bag
Include:
Page scheduler module 510 and browser host process module 520.
Wherein, page scheduler module 510 includes:
Load-on module 5101, is suitable to, when the page process of browser loads the page, recognize pending input in the page
Webpage input element, load the web page joint of a dummy keyboard icon in the position that webpage input element is corresponding.
The webpage input element of pending input in the page includes: the cryptographic node in the page, and load-on module 5101 passes through
Identify that in the page, attribute is<input>label of password, identifies cryptographic node.
In the present embodiment, load-on module 5101 loads an acquiescence genus in the position that the webpage input elements such as password box are corresponding
Property is the web page joint of hiding dummy keyboard icon, and specifically, load-on module 5101 is in input corresponding to webpage input element
The position corresponding to right side in frame region loads the web page joint that this default property is hiding dummy keyboard icon.
Load concealed nodes refer to load in the page javascript access less than shadow node, the page loads
Time, can not show this node.
Focus module 5104, the default property being suitable to be loaded by load-on module 5101 is the net of hiding dummy keyboard icon
The attribute of page node is revised as display by hiding so that the right side in the input frame region that webpage input element is corresponding on the page
Demonstrate dummy keyboard icon.
Specifically, focus module 5104 is by detecting the click event to described webpage input element, or detection is to described
The focus event of the TAB key handover event detection webpage input element of webpage input element.
When focus module 5104 is not detected by focus event, the web page joint of dummy keyboard icon does not shows, does not affect former
The loading of the beginning page, this can be avoided interfering user as far as possible.
Detection module 5102, is adapted to detect for the trigger event of dummy keyboard icon, notifies trigger event to browser
Host process module.
Writing module 5103, is suitable to be written in webpage input element the input information utilizing dummy keyboard to input.
Browser host process module 520 includes:
Display module 5201, is suitable to after receiving trigger event, starts a window display dummy keyboard.
Input module 5202, is suitable to receive the input information utilizing dummy keyboard to input.
Input module 5202 is particularly adapted to: receive the input letter inputting the click behavior of specific character on dummy keyboard
Breath.
Notification module 5203, is suitable to notify input information to page scheduler module.
Notification module 5203 is particularly adapted to: encode input information by predefined form, by with page process
Between the self-defined process message consulted in advance the input information after coding is notified to page process.
Encrypting module 5204, is suitable to be encrypted the input information after coding, and check value encryption formed
Add in described self-defined process message.Such as, being encrypted by modes such as MD5, DSA, then, notification module 5203 will encryption
The check value formed adds in self-defined process message.
The browser device provided according to the above embodiment of the present invention, page scheduler module is corresponding at webpage input element
Position loads the web page joint that an attribute is hiding dummy keyboard icon, according to focus module, when this web page joint becomes burnt
During point event, this node is being shown in the page.Then, notified by browser internal process, self-defined process message etc.
Mode, utilizes dummy keyboard to obtain user's input information.The dummy keyboard node hidden does not shows when the page loads, and decreases
Interference to user, and, self-defining coded system and process message, and encrypting module further enhancing safety.
Algorithm and display are not intrinsic to any certain computer, virtual system or miscellaneous equipment relevant provided herein.
Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system
Structure be apparent from.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use various
Programming language realizes the content of invention described herein, and the description done language-specific above is to disclose this
Bright preferred forms.
In description mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that the enforcement of the present invention
Example can be put into practice in the case of not having these details.In some instances, it is not shown specifically known method, structure
And technology, in order to do not obscure the understanding of this description.
Similarly, it will be appreciated that one or more in order to simplify that the disclosure helping understands in each inventive aspect, exist
Above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes
In example, figure or descriptions thereof.But, the method for the disclosure should not be construed to reflect an intention that i.e. required guarantor
The application claims feature more more than the feature being expressly recited in each claim protected.More precisely, as following
Claims reflected as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
The claims following detailed description of the invention are thus expressly incorporated in this detailed description of the invention, the most each claim itself
All as the independent embodiment of the present invention.
Those skilled in the art are appreciated that and can carry out the module in the equipment in embodiment adaptively
Change and they are arranged in one or more equipment different from this embodiment.Can be the module in embodiment or list
Unit or assembly are combined into a module or unit or assembly, and can put them in addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit excludes each other, can use any
Combine all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed appoint
Where method or all processes of equipment or unit are combined.Unless expressly stated otherwise, this specification (includes adjoint power
Profit requires, summary and accompanying drawing) disclosed in each feature can be carried out generation by providing identical, equivalent or the alternative features of similar purpose
Replace.
Although additionally, it will be appreciated by those of skill in the art that embodiments more described herein include other embodiments
Some feature included by rather than further feature, but the combination of the feature of different embodiment means to be in the present invention's
Within the scope of and form different embodiments.Such as, in the following claims, embodiment required for protection appoint
One of meaning can mode use in any combination.
The all parts embodiment of the present invention can realize with hardware, or to run on one or more processor
Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that and can use in practice
Microprocessor or digital signal processor (DSP) realize some in browser device according to embodiments of the present invention or
All some or all functions of parts.The present invention is also implemented as the part for performing method as described herein
Or whole equipment or device program (such as, computer program and computer program).Such realize the present invention
Program can store on a computer-readable medium, or can be to have the form of one or more signal.Such letter
Number can download from internet website and to obtain, or provide on carrier signal, or provide with any other form.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference marks that should not will be located between bracket is configured to limitations on claims.Word " comprises " and does not excludes the presence of not
Arrange element in the claims or step.Word "a" or "an" before being positioned at element does not excludes the presence of multiple such
Element.The present invention and can come real by means of including the hardware of some different elements by means of properly programmed computer
Existing.If in the unit claim listing equipment for drying, several in these devices can be by same hardware branch
Specifically embody.Word first, second and third use do not indicate that any order.These word explanations can be run after fame
Claim.
The invention discloses:
A1, a kind of method carrying out information input in a browser, including:
When the page process of browser loads the page, recognize the webpage input element of pending input in the page,
The position that described webpage input element is corresponding loads the web page joint of a dummy keyboard icon;
Page process detection to the trigger event of described dummy keyboard icon, described trigger event is notified to described in browse
Device host process, is started a window display dummy keyboard by described browser host process;
Described browser host process receives the input information utilizing described dummy keyboard to input, and described input information is notified
To described page process;
Described input information is written in webpage input element by described page process.
A2, according to the method described in A1, wherein, the described position corresponding at described webpage input element loads a virtual key
The web page joint of tray icon is particularly as follows: loading a default property in the position that described webpage input element is corresponding is hiding virtual
The web page joint of keyboard icon;
Before described page process detection to the web page joint trigger event of described dummy keyboard icon, described method is entered
One step includes:
Described page process detection is to the focus event of described webpage input element, according to described focus event, by described
Default property is that the attribute of the web page joint of hiding dummy keyboard icon is revised as display by hiding so that on the page
Demonstrate dummy keyboard icon.
A3, according to the method described in A1, wherein, when the described page process at browser loads the page, recognize the page
In pending input webpage input element particularly as follows: browser page process load the page time, recognize in the page belong to
Property is<input>label of password.
A4, according to the method described in A1, wherein, the described position corresponding at webpage input element loads a dummy keyboard figure
Target web page joint is particularly as follows: the position corresponding to right side in the input frame region that described webpage input element is corresponding loads
The web page joint of one dummy keyboard icon.
A5, according to the method described in A2, wherein, the described position corresponding at webpage input element loads a dummy keyboard figure
Target web page joint is particularly as follows: the position corresponding to right side in the input frame region that described webpage input element is corresponding loads
One default property is the web page joint of hiding dummy keyboard icon;
Described page process by the attribute of web page joint that described default property is hiding dummy keyboard icon by hiding
It is revised as display so that demonstrate dummy keyboard icon on the page particularly as follows: described acquiescence is belonged to by described page process
Property be hiding dummy keyboard icon web page joint attribute by hide be revised as display so that the most described net
Right side in the input frame region that page input element is corresponding demonstrates dummy keyboard icon.
A6, according to the method described in A2, wherein, described page process detection is to the focus event of described webpage input element
Farther include:
Described page process detection is to the click event to described webpage input element;
Or, described page process detection is to the TAB key handover event to described webpage input element.
A7, according to the method described in any one of A1-A6, wherein, described browser host process receive utilize described virtual key
The input information of dish input, notifies described input information to farther include to described page process:
Described browser host process receives the input information inputting the click behavior of specific character on dummy keyboard;
Described input information is encoded by described browser host process by predefined form;
After described browser host process will be encoded by the self-defined process message consulted in advance between page process
Input information notifies to page process.
A8, according to the method described in A7, wherein, described browser host process by predefined form to described input letter
After breath encodes, described method also includes: the input information after coding is encrypted by described browser host process,
And the check value that encryption is formed is added in described self-defined process message.
B9, a kind of browser device, comprising: page scheduler module and browser host process module;
Described page scheduler module includes:
Load-on module, is suitable to, when the page process of browser loads the page, recognize the net of pending input in the page
Page input element, loads the web page joint of a dummy keyboard icon in the position that described webpage input element is corresponding;
Detection module, is adapted to detect for the trigger event of described dummy keyboard icon, notifies described trigger event to institute
State browser host process module;
Writing module, is suitable to be written in described webpage input element the input information utilizing dummy keyboard to input;
Described browser host process module includes:
Display module, is suitable to after receiving described trigger event, starts a window display dummy keyboard;
Input module, is suitable to receive the input information utilizing described dummy keyboard to input;
Notification module, is suitable to notify described input information to described page scheduler module.
B10, according to the browser device described in B9, wherein, described load-on module is particularly adapted to: described webpage input unit
The position that element is corresponding loads the web page joint that a default property is hiding dummy keyboard icon;
Described page scheduler module also includes: focus module, is adapted to detect for the focus event of described webpage input element, root
According to described focus event, the attribute of the web page joint that described default property is hiding dummy keyboard icon is revised as by hiding
Display so that demonstrate dummy keyboard icon on the page.
B11, according to the browser device described in B9, wherein, described load-on module is particularly adapted to: recognize attribute in the page
<input>label for password.
B12, according to the browser device described in B9, wherein, described load-on module is particularly adapted to: described webpage input unit
The position corresponding to right side in the input frame region that element is corresponding loads the web page joint of a dummy keyboard icon.
B13, according to the browser device described in B10, wherein, described load-on module is particularly adapted to: input at described webpage
It is hiding dummy keyboard icon that the position corresponding to right side in the input frame region that element is corresponding loads a default property
Web page joint;
Described focus module is particularly adapted to: by the genus of web page joint that described default property is hiding dummy keyboard icon
Property by hide be revised as display so that the right side in the input frame region that the most described webpage input element is corresponding show
Dummy keyboard icon is shown.
B14, according to the browser device described in B10, wherein, described focus module is particularly adapted to:
The click event to described webpage input element detected;
Or, the TAB key handover event to described webpage input element detected.
B15, according to the browser device described in any one of B9-B14, wherein, described input module is particularly adapted to: it is right to receive
The click behavior of specific character on dummy keyboard and the input information that inputs;
Described notification module is particularly adapted to: encode described input information by predefined form, by with the page
Input information after coding is notified to page process by the self-defined process message consulted in advance between process.
B16, according to the browser device described in B15, wherein, described browser host process module also includes: encrypting module,
Be suitable to the input information after coding is encrypted, and the check value that encryption is formed is added to described self-defined process disappears
In breath.