A kind of WIFI network connection method and system based on routing check
Technical field
The present invention relates to field of communication technology, especially a kind of WIFI network connection method based on routing check and its answer
With the system of this method.
Background technology
Wifi (Wireless Fidelity, Wireless Fidelity) technology is a kind of short range wireless transmission technology, due to its biography
Defeated speed can reach 11Mbps, and effective distance is also long, therefore, be widely used in office space and family
In.After terminal access Wifi routers with Wifi functions, Wifi terminals are authenticated by Wifi routers, it is logical in certification
Later, allow Wifi terminal accesses internet.
Currently, Wifi routers are to the authentication mode that the authentication mode of Wifi terminals is mainly user name+password, i.e. Wifi
When terminal accesses Wifi routers, the username and password for carrying out authentication is reported to Wifi routers, if the roads Wifi
The username and password certification received is passed through by device, then it represents that the Wifi terminals have the permission using Wifi networks, permit
Perhaps it accesses internet;Otherwise, it indicates that the Wifi terminals do not have the permission using Wifi networks, limits it and access internet.
The Wifi authentication modes of username and password utilized above can effectively ensure that network security, avoid Wifi resources non-
Method uses, but some are needed with the occasion of shared Wifi resources, for example, have get home in the friend that acts as a guest wish shared family
Wifi resources or the of short duration Wifi resources that shared office space is wished to the client that company is visited, presently mainly pass through by
The WIFI titles that GPS positioning and user currently log in obtain with password and are sent to remote server and preserve, and work as user
When needing to obtain neighbouring free WIFI, then only need to send GPS positioning, the free WIFI that system will will in this position be supported
Title and password issue user, and the WIFI titles that currently can receive signal are compared user, after finding to compare successfully,
The WIFI is then connected automatically, to realize the function of free WIFI.But when often thering are some users to go to friend home or businessman,
It is directly shared away, to make various WIFI be shared, user name, encrypted message may be caused to leak, caused
Criminal carries out criminal activity using the free WIFI, is adversely affected to the safety of network.
Invention content
The present invention to solve the above problems, provide a kind of WIFI network connection method based on routing check and system,
Safety higher.
To achieve the above object, the technical solution adopted by the present invention is:
A kind of WIFI network connection method based on routing check, which is characterized in that include the following steps:
When 10.WIFI terminal successful log WIFI networks, successful WIFI accounts will be logged in automatically and WIFI passwords preserve
In the system of WIFI terminal;
20. when WIFI accounts and WIFI passwords that third-party application acquisition request is preserved, being carried out to the third-party application
The judgement of router permission returns to preserved WIFI accounts if the third-party application has the permission for logging in the router
Number and WIFI passwords, otherwise to the third-party application carry out router permission verification;
The successful route-map of 30.WIFI terminal-pair third-party application authorization checks is preserved, if the third party answers
When the WIFI accounts and WIFI encrypted messages that are preserved with acquisition request again, system automatically according to the authorization check preserved at
The route-map of work(directly returns to preserved WIFI accounts and WIFI passwords.
Preferably, WIFI terminal will log in successful WIFI accounts automatically in the step 10 and WIFI passwords are stored in
In the system of WIFI terminal, mainly by obtaining encrypted WIFI passwords after the WIFI passwords are encrypted,
And the WIFI accounts and encrypted WIFI passwords are stored in the system of WIFI terminal.
Preferably, the algorithm of the encryption mainly includes the combination of following one or more:MD5 algorithms,
RSA Algorithm, DES algorithms or User Defined algorithm.
Preferably, the verification of router permission is carried out in the step 20 to third-party application, and after verifying successfully
Encrypted WIFI passwords are decrypted, and the WIFI passwords after decryption are returned into user.
Preferably, when third-party application acquisition request is preserved in the step 20 WIFI accounts and WIFI passwords,
The judgement that router permission is carried out to the third-party application, mainly judges whether system preserves the third-party application permission school
Test successful route-map.
Preferably, the verification for carrying out router permission in the step 20 to third-party application, mainly works as third party
When application request obtains preserved WIFI accounts and WIFI passwords, system pop up a landing frame by WIFI terminal user into
The account and password of row input router, after the completion of input, router carries out permission school further according to the account and password inputted
It tests.
Preferably, the WIFI terminal be primarily referred to as having the mobile phone of WIFI function, desktop computer, laptop,
Tablet computer.
In addition, the WIFI network that the present invention also provides a kind of based on routing check connects system comprising router and
The WIFI terminal that WIFI network is connect is carried out with router, it is characterised in that:The WIFI terminal includes:
Memory module, for preserves connection WIFI network WIFI accounts and the account of WIFI passwords and router with
Password;
WIFI network log-in module when WIFI terminal successful log WIFI network, will log in successful WIFI accounts automatically
It is stored in WIFI passwords in the memory module;
Router correction verification module, when WIFI accounts and WIFI passwords that third-party application acquisition request is preserved, to this
The judgement that tripartite's application carries out router permission returns to institute if the third-party application has the permission for logging in the router
Otherwise the WIFI accounts and WIFI passwords of preservation carry out the third-party application verification of router permission;
The memory module preserves the successful route-map of third-party application authorization check, if the third party
When the WIFI accounts and WIFI encrypted messages that are preserved using acquisition request again, system is automatically according to the authorization check preserved
Successful route-map directly returns to preserved WIFI accounts and WIFI passwords.
Preferably, further include encrypting module, when WIFI terminal is by WIFI network log-in module successful log WIFI network,
Encrypting module is and close by encrypted WIFI by obtaining encrypted WIFI passwords after the WIFI passwords are encrypted
Code is stored in the memory module.
The beneficial effects of the invention are as follows:
A kind of the WIFI network connection method and system based on routing check of the present invention, by WIFI terminal success
When logging in WIFI network, successful WIFI accounts will be logged in automatically and WIFI passwords are stored in the system of WIFI terminal, third
When square application request obtains preserved WIFI accounts and WIFI passwords, router permission is carried out to the third-party application and is sentenced
It is disconnected, and the successful route-map of third-party application authorization check is preserved, if third-party application acquisition request again
When the WIFI accounts and WIFI encrypted messages that are preserved, system is believed automatically according to the successful router of authorization check preserved
Breath directly returns to preserved WIFI accounts and WIFI passwords;Thus while facilitating user to connect WIFI network automatically,
Ensure that it is quick not only to efficiently solve user for the safety of WIFI network, the connection of the free WIFI especially suitable for family
The problem of obtaining free WIFI, and can ensure that the WIFI of family is not shared away under the conditions of without agreement, safety
Higher.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and constitutes the part of the present invention, this hair
Bright illustrative embodiments and their description are not constituted improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is a kind of general flow chart of the WIFI network connection method based on routing check of the present invention;
Fig. 2 is the structural schematic diagram that a kind of WIFI network based on routing check of the present invention connects system.
Specific implementation mode
In order to keep technical problems, technical solutions and advantages to be solved clearer, clear, tie below
Closing accompanying drawings and embodiments, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only used
To explain the present invention, it is not intended to limit the present invention.
As shown in Figure 1, a kind of WIFI network connection method based on routing check of the present invention comprising following steps:
When 10.WIFI terminal successful log WIFI networks, successful WIFI accounts will be logged in automatically and WIFI passwords preserve
In the system of WIFI terminal;
20. when WIFI accounts and WIFI passwords that third-party application acquisition request is preserved, being carried out to the third-party application
The judgement of router permission returns to preserved WIFI accounts if the third-party application has the permission for logging in the router
Number and WIFI passwords, otherwise to the third-party application carry out router permission verification;
The successful route-map of 30.WIFI terminal-pair third-party application authorization checks is preserved, if the third party answers
When the WIFI accounts and WIFI encrypted messages that are preserved with acquisition request again, system automatically according to the authorization check preserved at
The route-map of work(directly returns to preserved WIFI accounts and WIFI passwords.
WIFI terminal will log in successful WIFI accounts automatically in the step 10 and WIFI passwords are stored in WIFI ends
In the system at end, mainly by obtaining encrypted WIFI passwords after the WIFI passwords are encrypted, and by institute
The WIFI accounts and encrypted WIFI passwords stated are stored in the system of WIFI terminal;The algorithm of the encryption mainly wraps
Include the combination of following one or more:MD5 algorithms, RSA Algorithm, DES algorithms or User Defined algorithm, such as pass through
Self-defined simple displacement algorithm etc., the prior art can be used in above-mentioned algorithm, and therefore not to repeat here.
The verification of router permission is carried out in the step 20 to third-party application, and to encrypted after verifying successfully
WIFI passwords are decrypted, and the WIFI passwords after decryption are returned to user.
When third-party application acquisition request is preserved in the step 20 WIFI accounts and WIFI passwords, to the third
Fang Yingyong carries out the judgement of router permission, and it is successful mainly to judge whether system preserves the third-party application authorization check
Route-map;The verification for carrying out router permission in the step 20 to third-party application, mainly works as third-party application
When WIFI accounts and WIFI passwords that acquisition request is preserved, it is defeated by user's progress of WIFI terminal that system pops up a landing frame
The account and password for entering router, after the completion of input, router carries out authorization check further according to the account and password inputted.
The WIFI terminal is primarily referred to as having the mobile phone of WIFI function, desktop computer, laptop, tablet electricity
Brain;Or can also be household appliances or digital product etc. with WIFI function.
As shown in Fig. 2, being based on the above method, the present invention also provides a kind of, and the WIFI network connection based on routing check is
System comprising the router A and WIFI terminal B being connect with router progress WIFI network, it is characterised in that:The WIFI
Terminal B includes:
Memory module a, for preserves connection WIFI network WIFI accounts and the account of WIFI passwords and router with
Password;
WIFI network log-in module b when WIFI terminal successful log WIFI network, will log in successful WIFI accounts automatically
It is stored in WIFI passwords in the memory module a;
Router correction verification module c, when WIFI accounts and WIFI passwords that third-party application acquisition request is preserved, to this
The judgement that tripartite's application carries out router permission returns to institute if the third-party application has the permission for logging in the router
Otherwise the WIFI accounts and WIFI passwords of preservation carry out the third-party application verification of router permission;
The memory module a preserves the successful route-map of third-party application authorization check, if the third
When the Fang Yingyong WIFI accounts that acquisition request is preserved again and WIFI encrypted messages, system is automatically according to the permission school preserved
Successful route-map is tested, preserved WIFI accounts and WIFI passwords are directly returned.
In addition, further include encrypting module d, when WIFI terminal B is by WIFI network log-in module successful log WIFI network,
Encrypting module d is by obtaining encrypted WIFI passwords after the WIFI passwords are encrypted, and by encrypted WIFI
Password is stored in the memory module a.
It is needed according to the method for the present invention in First Contact Connections WIFI network successively by twice with system, third-party application
Verification, one be WIFI network account and the verification of password, the other is the authorization check of the account of router and password;Example
As we go colleague family act as a guest, it is known that their account and password, but if we be related to by the Information Sharing go out to
Third party, then the step of needing router to verify, avoid the account of WIFI and password be leaked out by criminal or its
Other people utilization.Also, system can preserve the third party and verify successful route-map, when next time, this was asked again, then
It can go to ask automatically according to the route-map of preservation, using more convenient;If the password of router is changed, ask to lose
It loses, and user can be prompted to re-enter password, to ensure safety.
It should be noted that each embodiment in this specification is described in a progressive manner, each embodiment weight
Point explanation is all difference from other examples, and the same or similar parts between the embodiments can be referred to each other.
For device class embodiment, since it is basically similar to the method embodiment, so fairly simple, the related place ginseng of description
See the part explanation of embodiment of the method.Also, herein, the terms "include", "comprise" or its any other variant
It is intended to non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only
Those elements, but also include other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of person's equipment.In the absence of more restrictions, the element limited by sentence "including a ...", not
There is also other identical elements in the process, method, article or apparatus that includes the element for exclusion.In addition, this field
Those of ordinary skill is appreciated that realize that all or part of step of above-described embodiment can be completed by hardware, can also lead to
Program is crossed to instruct relevant hardware to complete, the program can be stored in a kind of computer readable storage medium, above-mentioned
The storage medium mentioned can be read-only memory, disk or CD etc..
The preferred embodiment of the present invention has shown and described in above description, it should be understood that the present invention is not limited to this paper institutes
The form of disclosure is not to be taken as excluding other embodiments, and can be used for other combinations, modifications, and environments, and energy
Enough in this paper invented the scope of the idea, modifications can be made through the above teachings or related fields of technology or knowledge.And people from this field
The modifications and changes that member is carried out do not depart from the spirit and scope of the present invention, then all should be in the protection of appended claims of the present invention
In range.