CN105099686B - Data synchronous method, server, terminal and system - Google Patents

Data synchronous method, server, terminal and system Download PDF

Info

Publication number
CN105099686B
CN105099686B CN201410201581.5A CN201410201581A CN105099686B CN 105099686 B CN105099686 B CN 105099686B CN 201410201581 A CN201410201581 A CN 201410201581A CN 105099686 B CN105099686 B CN 105099686B
Authority
CN
China
Prior art keywords
terminal
message
log
user
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410201581.5A
Other languages
Chinese (zh)
Other versions
CN105099686A (en
Inventor
林晓丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410201581.5A priority Critical patent/CN105099686B/en
Publication of CN105099686A publication Critical patent/CN105099686A/en
Application granted granted Critical
Publication of CN105099686B publication Critical patent/CN105099686B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of data synchronous method, server, terminal and systems.It is related to information technology field, for solving in the prior art after User ID is lost, user data problem easy to be lost.The described method includes: receiving the data synchronization request that terminal is sent, the terminal iidentification of the terminal is carried in the data synchronization request, the data synchronization request is for log-on message stored in the server to be synchronized in the terminal;Judge the corresponding log-on message of the terminal iidentification whether is preserved in server database;If the corresponding log-on message of the terminal iidentification for preserving the terminal in server database, the log-on message is then synchronized to the terminal, the log-on message includes the corresponding relationship between the identification information of different web sites, the corresponding log-on message of different web sites and different web sites and corresponding log-on message.During being synchronized present invention is mainly applied to data.

Description

Data synchronous method, server, terminal and system
Technical field
The present invention relates to information technology field, in particular to a kind of data synchronous method, server, terminal and system.
Background technique
With the continuous development of network technology, also more and more using the user number of internet, such as by internet into Row website login information is shared and restores.
Currently used shared mechanism is as follows: surveying in server is that each User ID creates corresponding memory space.User By logging in legal User ID in the client, website login information is uploaded into server by legal User ID.When When needing shared or recovery website login information, user logs in the legal User ID by any one terminal, can be from net The website login information uploaded is downloaded on network, realizes the shared of website login information.
During stating capacity prompt in realization, inventor is had found after hacker learns the User ID that user uses, can By another device downloads website login information, it is easy to be lost to steal user privacy information user data.
Summary of the invention
Data provided in an embodiment of the present invention synchronous method, server, terminal and system, for solving in the prior art After User ID is lost, user data problem easy to be lost.
In a first aspect, a kind of method synchronous the present invention provides data, the method are applied to server, the method Include:
The data synchronization request that terminal is sent is received, the terminal mark of the terminal is carried in the data synchronization request Know, the data synchronization request is for log-on message stored in the server to be synchronized in the terminal;
Judge the corresponding log-on message of the terminal iidentification whether is preserved in server database;
If the corresponding log-on message of the terminal iidentification for preserving the terminal in server database, by the login For synchronizing information to the terminal, the log-on message includes the identification information of different web sites, the corresponding login of different web sites Corresponding relationship between information and different web sites and corresponding log-on message.
Second aspect, the present invention also provides a kind of synchronous method of data, the method is applied to terminal, the method Include:
Log-on message is obtained according to register, the log-on message includes the identification information of different web sites, different web sites Corresponding relationship between corresponding log-on message and different web sites and corresponding log-on message;
The log-on message that will acquire is sent to server and is updated;
When needing to synchronize log-on message, data synchronization request, the data synchronization request are sent to server In carry the terminal iidentification of the terminal, the data synchronization request is used for log-on message stored in the server is same It walks in the terminal.
The third aspect, the present invention also provides a kind of server, the server includes:
First receiving unit carries in the data synchronization request for receiving the data synchronization request of terminal transmission The terminal iidentification of the terminal, the data synchronization request are used to for log-on message stored in the server being synchronized to described In terminal;
First judging unit, for judging whether preserve what first receiving unit received in server database The corresponding log-on message of the terminal iidentification;
Synchronization unit, for obtaining the terminal for preserving the terminal in server database when first judging unit When identifying corresponding log-on message, the log-on message is synchronized to the terminal, the log-on message includes different web sites It is corresponding between the corresponding log-on message of identification information, different web sites and different web sites and corresponding log-on message Relationship.
Fourth aspect, the present invention also provides a kind of terminal, the terminal includes:
Acquiring unit, for obtaining log-on message according to register, the log-on message includes the mark of different web sites Corresponding relationship between the corresponding log-on message of information, different web sites and different web sites and corresponding log-on message;
First transmission unit, the log-on message for obtaining the acquiring unit are sent to server and are updated;
Second transmission unit, for sending data synchronization request to server when needing to synchronize log-on message, The terminal iidentification of the terminal is carried in the data synchronization request, the data synchronization request is used for will be in the server The log-on message of storage is synchronized in the terminal.
5th aspect, the present invention also provides a kind of synchronous systems of data, and the system comprises described in the third aspect Terminal described in server and fourth aspect.
Data provided in an embodiment of the present invention synchronous method, server, terminal and system can receive terminal transmission Data synchronization request, the terminal iidentification of the terminal is carried in the data synchronization request, and the data synchronization request is used for Log-on message stored in the server is synchronized in the terminal;Judge whether to preserve in server database described The corresponding log-on message of terminal iidentification;If the corresponding login letter of the terminal iidentification for preserving the terminal in server database Breath, then be synchronized to the terminal for the log-on message, the log-on message includes the identification information of different web sites, different web sites Corresponding relationship between corresponding log-on message and different web sites and corresponding log-on message.The prior art is only right User ID is compared, therefore there are hackers can download the log-on message of user after User ID according to User ID by stealing, User privacy information is easily stolen.The present invention determines that the synchronous terminal of request is when progress data are synchronous, according to terminal iidentification No is legal terminal, if it is legal terminal, sends synchrodata to terminal.Even if hacker has stolen User ID at this time, but by The corresponding log-on message of the terminal iidentification is not preserved in server database, and (equipment that hacker uses is illegal whole End), therefore hacker can not realize that data synchronize in illegal terminal, and then the privacy information of user is avoided to be stolen, and improve and use The safety of family privacy information.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without creative efforts, can also be attached according to these Figure obtains other attached drawings.
Fig. 1 is the flow chart for the method that first data provided in the embodiment of the present invention synchronize;
Fig. 2 is the flow chart for the method that second data provided in the embodiment of the present invention synchronize;
Fig. 3 is the flow chart for the method that the third data provided in the embodiment of the present invention synchronize;
Fig. 4 is the structural schematic diagram of the corresponding relationship provided in the embodiment of the present invention;
Fig. 5 is the flow chart for the method that the fourth data provided in the embodiment of the present invention synchronizes;
Fig. 6 is the flow chart for the method that the 5th data provided in the embodiment of the present invention synchronize;
Fig. 7 is the flow chart for the method that the 6th data provided in the embodiment of the present invention synchronize;
Fig. 8 is the flow chart for the method that the 7th data provided in the embodiment of the present invention synchronize;
Fig. 9 is the structural schematic diagram of first server provided in the embodiment of the present invention;
Figure 10 is the structural schematic diagram of second server provided in the embodiment of the present invention;
Figure 11 is the structural schematic diagram of the third server provided in the embodiment of the present invention;
Figure 12 is the structural schematic diagram of the 4th server provided in the embodiment of the present invention;
Figure 13 is the structural schematic diagram of first terminal provided in the embodiment of the present invention;
Figure 14 is the structural schematic diagram of second terminal provided in the embodiment of the present invention;
Figure 15 is the structural schematic diagram of the third terminal provided in the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts all other Embodiment shall fall within the protection scope of the present invention.
The advantages of to make technical solution of the present invention, is clearer, makees specifically to the present invention with reference to the accompanying drawings and examples It is bright.
The embodiment of the invention provides a kind of synchronous method of data, the method is applied to server, as shown in Figure 1, The described method includes:
Step 101 receives the data synchronization request that terminal is sent.
Wherein, the terminal iidentification of terminal is carried in the data synchronization request, data synchronization request is used for server The log-on message of middle storage is synchronized in terminal.
Terminal iidentification is the hardware identifier of terminal, is used for unique identification terminal.Optionally, using terminal mainboard number conduct Terminal iidentification.Optionally, using the physical address of terminal network interface card as terminal iidentification.Data synchronization request be terminal need into The request sent when row data are synchronous to server, for the synchronous process of log-on data.
Step 102 judges the corresponding log-on message of terminal iidentification whether is preserved in server database.
Server database is in server for storing the database of information, User ID is preserved in the database and using The corresponding relationship for the terminal iidentification that family uses.The log-on message includes user's user name that logged website has used and close Code.Such as: user is when logging in mailbox, the user name and login password of input.Alternatively, user is when logging in social network sites, it is defeated The username and password entered.Alternatively, user is when logging in shopping website, the user name and password of input.Alternatively, user is logging in When forum, the username and password of input.
If the corresponding log-on message of the terminal iidentification for step 103a, preserving terminal in server database, will step on Synchronizing information is recorded to terminal.
Log-on message includes the identification information of different web sites, the corresponding log-on message of different web sites and different web sites With the corresponding relationship between corresponding log-on message.The network address or web site name of the identification information of website such as website or website Address URL etc..The username and password for needing to input when the corresponding log-on message in website is Website login.
If the corresponding log-on message of the terminal iidentification for step 103b, not preserving terminal in server database, to Terminal sends prompt information.
The terminal that the prompt information is used to prompt user currently used does not have the permission of shared log-on message.
Data provided in an embodiment of the present invention synchronous method, server, terminal and system can receive terminal transmission Data synchronization request, the terminal iidentification of the terminal is carried in the data synchronization request, and the data synchronization request is used for Log-on message stored in the server is synchronized in the terminal;Judge whether to preserve in server database described The corresponding log-on message of terminal iidentification;If the corresponding login letter of the terminal iidentification for preserving the terminal in server database Breath, then be synchronized to the terminal for the log-on message, the log-on message includes the identification information of different web sites, different web sites Corresponding relationship between corresponding log-on message and different web sites and corresponding log-on message.The prior art is only right User ID is compared, therefore there are hackers can download the log-on message of user after User ID according to User ID by stealing, User privacy information is easily stolen.The present invention determines that the synchronous terminal of request is when progress data are synchronous, according to terminal iidentification No is legal terminal, if it is legal terminal, sends synchrodata to terminal.Even if hacker has stolen User ID at this time, but by The corresponding log-on message of the terminal iidentification is not preserved in server database, and (equipment that hacker uses is illegal whole End), therefore hacker can not realize that data synchronize in illegal terminal, and then the privacy information of user is avoided to be stolen, and improve and use The safety of family privacy information.
The embodiment of the invention also provides a kind of synchronous method of data, as the further explanation to method shown in Fig. 1, As shown in Fig. 2, before the data synchronization request that step 101, reception terminal are sent, the method also includes:
Step 201 receives user's log-in instruction, and user's log-in instruction carries authentication information.
User's log-in instruction is carried in data synchronization request.Alternatively, before receiving the data synchronization request that terminal is sent User's log-in instruction is received, to determine whether user has Share Permissions.Authentication information includes user name and password, the use Name in an account book and password are user name and password of the user for login.
Step 202 judges whether authentication information is identical as preset authentication information.
Preset authentication information is user in advance in the user name of registration and password.Authentication information is used for verifying Whether family has the permission of shared log-on message, if authentication information is identical as preset authentication confidence, uses identity Verification information is legal, and user, which has, initiates the shared permission of log-on message.
If step 203a, authentication information is identical as preset authentication information, confirmation message is sent to terminal, really Recognize information for indicate passed through authentication.
The terminal that user uses, into shared interface, is asked after receiving confirmation message so that user's initiation data synchronize It asks.
If step 203b, authentication information is different from preset authentication information, login failure letter is sent to user Breath.
The authentication information that the login failure information is used to prompt user currently used is invalid.
The synchronous method of data provided in an embodiment of the present invention, can carry out data it is synchronous before conjunction to user identity Method is verified, and the synchronous safety of data is further increased.
The embodiment of the present invention also provides a kind of age data synchronous method, as to method shown in Fig. 1 furtherly It is bright, as shown in figure 3, before the data synchronization request that step 101, reception terminal are sent, the method also includes:
Step 301, the terminal iidentification for receiving log-on message and terminal that user is uploaded by terminal.
User is sent to service after first logging into, by the terminal iidentification of log-on message to be synchronized and currently used terminal Device.
Step 302, the corresponding relationship for establishing user, terminal iidentification and log-on message.
As shown in figure 4, a User ID can correspond to multiple terminal iidentifications, a User ID only corresponds to a log-on message. As shown in figure 4, the citing of one group of corresponding relationship are as follows: { user 1, terminal A, terminal B, terminal C, log-on message }.Establishing user When the corresponding relationship of ID and each terminal iidentification, for safety, from the corresponding relationship for establishing second User ID and terminal iidentification Start, user need to provide terminal iidentification that at least one has been saved as verification information.If the terminal iidentification that user provides is Storage is then established and is established to new corresponding relationship.
Step 303, the user identifier that user is saved in server database, terminal iidentification, log-on message and corresponding pass System.
The synchronous method of data provided in an embodiment of the present invention can establish User ID, multiple terminal iidentifications and log in letter The corresponding relationship of breath realizes that multiple terminals logs in and shares.
The embodiment of the invention also provides a kind of synchronous methods of data, illustrate as to Fig. 3 the method, such as Shown in Fig. 5, step 303, the user identifier that user is saved in server database, terminal iidentification, log-on message and corresponding pass System, comprising:
Step 501 encrypts the user identifier of user, terminal iidentification, log-on message and corresponding relationship.
It is encrypted by MD5 (Message Digest Algorithm, Message Digest 5) cipher mode.
Encrypted data are stored in server database by step 502.
If the corresponding login record of the terminal iidentification for preserving terminal in step 103, server database, will log in Synchronizing information is to terminal, comprising:
If the corresponding log-on message of the terminal iidentification for preserving terminal in step 503, server database, to login Information is decrypted.
Log-on message after decryption is synchronized to terminal by step 504.
The synchronous method of data provided in an embodiment of the present invention, can be in server database to the login record of preservation It is encrypted, is decrypted when sending the log-on message to terminal by decipherment algorithm, the log-on message after decryption is sent out It is sent to terminal.Server database encrypts data in local, can be improved the safety of data.
The embodiment of the invention also provides a kind of synchronous method of data, the method is applied to terminal, as shown in fig. 6, The described method includes:
Step 601 obtains log-on message according to register.
The log-on message includes the identification information of different web sites, the corresponding log-on message of different web sites and difference Corresponding relationship between website and corresponding log-on message.
When user successfully logs in, the log-on message that user inputs in input frame is obtained.Input frame includes: that mailbox logs in The input frame at interface, the input frame of shopping website login interface, the input frame of social network sites login interface or social application are stepped on Record the input frame in interface.
Step 602, the log-on message that will acquire are sent to server and are updated.
When user inputs new log-on message (the unsaved log-on message of terminal), the log-on message that will acquire is sent to Server is updated.Or after user inputs stored user name, and have input new password and login successfully, then will The user name and password are replaced locally.
Step 603, when needing to synchronize log-on message, to server send data synchronization request.
Wherein, the terminal iidentification of the terminal is carried in the data synchronization request, the data synchronization request is used for Log-on message stored in the server is synchronized in the terminal.
After terminal (computer) install again, the log-on message of terminal local storage is all deleted, and is needed at this time Log-on message is synchronized.Or after the log-on message in terminal is artificially deleted, user wishes to restore original login Information needs to carry out at this time the synchronization of log-on message.
The synchronous method of data provided in an embodiment of the present invention can realize the same of terminal browsing information according to terminal iidentification Step.The prior art is only compared User ID, therefore there are hackers can be downloaded after User ID by stealing according to User ID The log-on message of user, user privacy information are easily stolen.The present invention is when progress data are synchronous, when progress data are synchronous, Carried terminal identifies in data synchronization request, so that server determines whether the synchronous terminal of request is conjunction according to terminal iidentification Method terminal sends synchrodata to terminal if it is legal terminal.Even if hacker has stolen User ID at this time, but due to service The corresponding log-on message of the terminal iidentification (equipment that hacker uses is illegal terminal) is not preserved in device database, therefore It is synchronous that hacker can not realize data in illegal terminal, and then the privacy information of user is avoided to be stolen, and improves privacy of user letter The safety of breath.
The embodiment of the invention also provides a kind of synchronous methods of data, further describe as to method shown in Fig. 6, As shown in fig. 7, step 603, to server send data synchronization request before, the method also includes:
Step 701, Xiang Suoshu server send user's log-in instruction.
User's log-in instruction carries authentication information.
Step 702 receives the confirmation message that the server is sent, and the confirmation message is tested by identity for indicating Card.
The synchronous method of data provided in an embodiment of the present invention, can carry out data it is synchronous before conjunction to user identity Method is verified, and the synchronous safety of data is further increased.
The embodiment of the invention also provides a kind of synchronous methods of data, illustrate as to method shown in Fig. 6, walk Rapid 601, log-on message is obtained according to register, comprising:
1, log-on message is obtained automatically in the login interface of the different web sites.
Automatically be retrieved as when user's input log-on message is identical from the user name saved but password is different and login at When function, the log-on message of user's input is obtained, and the log-on message saved is replaced with to the log-on message of acquisition.
2, the log-on message is obtained according to the log-on message edit instruction of user's input.
Terminal shows log-on message editing interface, provides the interface of manual setting for user.It is shown in the editing interface The whole log-on messages saved, the log-on message include website, username and password.User is carried out manual by editing interface Editor.
The synchronous method of data provided in an embodiment of the present invention can be obtained by obtaining automatically with user's input two ways To log-on message, keep operation easier.
The embodiment of the invention also provides a kind of synchronous method of data, as the further explanation to method shown in Fig. 6, As shown in figure 8, after step 601, according to register acquisition log-on message, the method also includes:
Step 801 encrypts the log-on message of acquisition.
It is encrypted by MD5 (Message Digest Algorithm, Message Digest 5) cipher mode.
Step 602, the log-on message that will acquire are sent to server and are updated, comprising:
Step 802 sends server for encrypted log-on message and is updated.
The synchronous method of data provided in an embodiment of the present invention can guarantee the safety for browsing information in the data transmission, It avoids being learnt by hacker in plain text, improves safety of the browsing information in transmission process.
The embodiment of the invention also provides a kind of servers 9, as shown in figure 9, the server 9 includes:
First receiving unit 91 carries in the data synchronization request for receiving the data synchronization request of terminal transmission There is the terminal iidentification of the terminal, the data synchronization request is for the log-on message stored in the server 9 to be synchronized to In the terminal;
First judging unit 92, for judging that whether preserving first receiving unit 91 in server database receives The corresponding log-on message of the terminal iidentification arrived;
Synchronization unit 93, for obtaining preserving the terminal in server database when first judging unit 92 When the corresponding log-on message of terminal iidentification, the log-on message is synchronized to the terminal, the log-on message includes different nets Between the corresponding log-on message of identification information, different web sites stood and different web sites and corresponding log-on message Corresponding relationship.
Server 9 provided in an embodiment of the present invention, can receive the data synchronization request of terminal transmission, and the data are synchronous The terminal iidentification of the terminal is carried in request, the data synchronization request is used for the login that will be stored in the server 9 Synchronizing information is into the terminal;Judge the corresponding log-on message of the terminal iidentification whether is preserved in server database; It is if the corresponding log-on message of the terminal iidentification for preserving the terminal in server database, the log-on message is synchronous To the terminal, the log-on message includes the identification information of different web sites, the corresponding log-on message of different web sites and not With the corresponding relationship between website and corresponding log-on message.The prior art is only compared User ID, therefore exists Hacker can download the log-on message of user after User ID by stealing according to User ID, and user privacy information is easily stolen.This Invention determines whether the synchronous terminal of request is legal terminal when progress data are synchronous, according to terminal iidentification, if it is legal Terminal sends synchrodata to terminal.Even if hacker has stolen User ID at this time, but due to not saving in server database There is the corresponding log-on message of the terminal iidentification (equipment that hacker uses is illegal terminal), therefore hacker can not be in illegal terminal Middle realization data are synchronous, and then the privacy information of user is avoided to be stolen, and improve the safety of user privacy information.
Further, as shown in Figure 10, the server 9 further include:
Second receiving unit 1001, for receiving user's log-in instruction, user's log-in instruction carries authentication Information;
Second judgment unit 1002, the authentication information received for judging second receiving unit 1001 It is whether identical as preset authentication information;
First transmission unit 1003, for when the second judgment unit 1002 obtain the authentication information with it is described When preset authentication information is identical, Xiang Suoshu terminal sends confirmation message, and the confirmation message has passed through identity for indicating Verifying.
Server 9 provided in an embodiment of the present invention, can carry out data it is synchronous before to the legitimacy of user identity into Row verifying further increases the synchronous safety of data.
Further, as shown in figure 11, the server 9 further include:
Third receiving unit 1101, for receiving the end of log-on message and the terminal that user is uploaded by the terminal End mark;
Unit 1102 is established, for establishing the user, the terminal mark that the third receiving unit 1101 receives Know the corresponding relationship with the log-on message;
Storage unit 1103, for saved in server database the user identifier of the user, the terminal iidentification, The log-on message and the corresponding relationship for establishing the foundation of unit 1102.
Server 9 provided in an embodiment of the present invention, can establish the correspondence of User ID, multiple terminal iidentifications and log-on message Relationship realizes that multiple terminals logs in and shares.
Further, as shown in figure 12, the storage unit 1103 includes:
Encryption sub-unit operable 1201, for by the user identifier of the user, the terminal iidentification, the log-on message and institute Corresponding relationship is stated to be encrypted;
Storing sub-units 1202, for the encrypted data of the encryption sub-unit operable 1201 to be stored in the server count According in library;
Further, the synchronization unit 93 includes:
Decryption subelement 1203 is deposited, for stepping on when the terminal iidentification for preserving the terminal in server database is corresponding When recording information, the log-on message is decrypted;
Synchronous subelement 1204, for the log-on message deposited after decrypting the decryption of subelement 1203 to be synchronized to institute State terminal.
Server 9 provided in an embodiment of the present invention can add the login record of preservation in server database It is close, it is decrypted when sending the log-on message to terminal by decipherment algorithm, sends end for the log-on message after decryption End.Server database encrypts data in local, can be improved the safety of data.
The embodiment of the invention also provides a kind of terminals 14, and as shown in figure 13, the terminal 14 includes:
Acquiring unit 1301, for obtaining log-on message according to register, the log-on message includes different web sites It is corresponding between the corresponding log-on message of identification information, different web sites and different web sites and corresponding log-on message Relationship;
First transmission unit 1302, the log-on message for obtaining the acquiring unit 1301 are sent to server progress It updates;
Second transmission unit 1303, for it is synchronous to send data to server when needing to synchronize log-on message It requests, the terminal 14 that the terminal 14 is carried in the data synchronization request identifies, and the data synchronization request is used for institute The log-on message stored in server is stated to be synchronized in the terminal 14.
Terminal 14 provided in an embodiment of the present invention can identify the synchronization for realizing that terminal 14 browses information according to terminal 14. The prior art is only compared User ID, therefore there are hackers can download user according to User ID after User ID by stealing Log-on message, user privacy information is easily stolen.The present invention is when progress data are synchronous, when progress data are synchronous, in number Identified according to carried terminal 14 in synchronization request so that server identified according to terminal 14 determine the synchronous terminal 14 of request whether be Legal terminal sends synchrodata to terminal 14 if it is legal terminal.Even if hacker has stolen User ID at this time, but due to Do not preserved in server database the terminal 14 identify corresponding log-on message (equipment that hacker uses be it is illegal eventually End), therefore hacker can not realize that data synchronize in illegal terminal, and then the privacy information of user is avoided to be stolen, and improve and use The safety of family privacy information.
Further, as shown in figure 14, the terminal 14 further include:
Third transmission unit 1401, for sending user's log-in instruction to the server, user's log-in instruction is taken With authentication information;
First receiving unit 1402, the confirmation message sent for receiving the server, the confirmation message are used for table Show and has passed through authentication.
Terminal 14 provided in an embodiment of the present invention can carry out the legitimacy of user identity before data are synchronous Verifying further increases the synchronous safety of data.
Further, the acquiring unit 1301 is also used to:
Log-on message is obtained automatically in the login interface of the different web sites;
Alternatively, obtaining the log-on message according to the log-on message edit instruction of user's input.
Terminal 14 provided in an embodiment of the present invention can be believed by obtaining to input two ways with user and obtain logging in automatically Breath keeps operation easier.
Further, as shown in figure 15, the terminal 14 further include:
Encryption unit 1501, for being encrypted to the log-on message singly obtained that obtains;
First transmission unit 1502 is also used to, and is sent server for encrypted log-on message and is updated.
Terminal 14 provided in an embodiment of the present invention can guarantee the safety for browsing information in the data transmission, avoid in plain text It is learnt by hacker, improves safety of the browsing information in transmission process.
The embodiment of the invention also provides a kind of synchronous system of data, the system comprises Fig. 9 into Figure 12 any width The server and Figure 13 terminal described in any width into Figure 15.
The method that above-mentioned offer may be implemented in server provided in an embodiment of the present invention, the terminal system synchronous with data is real Example is applied, concrete function realizes the explanation referred in embodiment of the method, and details are not described herein.Data provided in an embodiment of the present invention Synchronous method, server, terminal and system can be adapted for information technology field, but be not limited only to this.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those familiar with the art, all answers It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (17)

1. a kind of synchronous method of data, which is characterized in that the method is applied to server, which comprises
Receive the terminal iidentification of log-on message and the terminal that user is uploaded by currently used terminal;
Establish user identifier, the terminal iidentification of multiple terminals and the corresponding relationship of log-on message of the user, wherein a use The corresponding multiple terminal iidentifications of family mark, the corresponding log-on message of a user identifier;When establishing the user identifier and second When the corresponding relationship of a terminal iidentification, at least one that the user provides is received from the corresponding terminal of second terminal iidentification A terminal iidentification saved is as verification information;
User's log-in instruction that terminal is sent is received, user's log-in instruction carries the authentication information of the user; If the authentication information is identical as preset authentication information, it is determined that the user, which has, initiates what log-on message was shared Permission, and confirmation message is sent to the terminal, so that the terminal is after receiving the confirmation message, into shared boundary Face, and data synchronization request is initiated to the server;
The data synchronization request is received, the terminal iidentification of the terminal is carried in the data synchronization request;
The corresponding login of terminal iidentification that the terminal whether is preserved in server database is judged according to the corresponding relationship Information;
If the corresponding log-on message of the terminal iidentification for preserving the terminal in the server database, by the login Synchronizing information is locally stored to the terminal, and the log-on message includes the identification information of different web sites, different web sites point Corresponding relationship between not corresponding log-on message and different web sites and corresponding log-on message.
2. the synchronous method of data according to claim 1, which is characterized in that the terminal iidentification is the master of the terminal The physical address of plate number or network interface card.
3. the synchronous method of data according to claim 1, which is characterized in that in the step for receiving the data synchronization request Before rapid, the method also includes:
The user identifier of the user, the terminal iidentification of multiple terminals, login letter are saved in the server database Breath and the corresponding relationship.
4. the synchronous method of data according to claim 3, which is characterized in that described to be protected in the server database The step of depositing the user identifier of the user, the terminal iidentification of multiple terminals, the log-on message and the corresponding relationship, packet It includes:
The user identifier of the user, the terminal iidentification of multiple terminals, the log-on message and the corresponding relationship are added It is close;
Encrypted data are stored in the server database;
It, will be described if preserving the corresponding log-on message of terminal iidentification of the terminal in the server database Log-on message is synchronized to the step of terminal is locally stored, comprising:
If the corresponding log-on message of the terminal iidentification for preserving the terminal in the server database, to the login Information is decrypted;
Log-on message after decryption is synchronized to the terminal to be locally stored.
5. a kind of synchronous method of data, which is characterized in that the method is applied to terminal, which comprises
Log-on message is obtained according to register, the log-on message includes the identification information of different web sites, different web sites difference Corresponding relationship between corresponding log-on message and different web sites and corresponding log-on message;
User's operation is received, the terminal iidentification of the log-on message and the terminal is uploaded to server, so that the server Establish the corresponding relationship of the user identifier of the user, the terminal iidentification of multiple terminals and the log-on message, wherein a use The corresponding multiple terminal iidentifications of family mark, the corresponding log-on message of a user identifier;When establishing the user identifier and second When the corresponding relationship of a terminal iidentification, at least one that the user provides is received from the corresponding terminal of second terminal iidentification A terminal iidentification saved is as verification information;
User's log-in instruction is sent to the server, user's log-in instruction carries the authentication letter of the user Breath, when so that the server judging that the authentication information is identical as preset authentication information, determines the user With the shared permission of initiation log-on message, and confirmation message is sent to the terminal;
After receiving the confirmation message, data synchronization request, the data are sent into shared interface, and to the server The terminal iidentification of the terminal is carried in synchronization request, so that the server judges server count according to the corresponding relationship According to the corresponding log-on message of terminal iidentification for whether preserving the terminal in library;If preserved in the server database The log-on message is then synchronized in the terminal and carries out local deposit by the corresponding log-on message of the terminal iidentification of the terminal Storage.
6. the synchronous method of data according to claim 5, which is characterized in that the terminal iidentification is the master of the terminal The physical address of plate number or network interface card.
7. the synchronous method of data according to claim 5, which is characterized in that described obtained according to register logs in letter The step of breath, comprising:
Log-on message is obtained automatically in the login interface of the different web sites;
Alternatively, obtaining the log-on message according to the log-on message edit instruction of user's input.
8. the synchronous method of data according to any one of claims 5 to 7, which is characterized in that according to register After the step of obtaining log-on message, the method also includes:
The log-on message of acquisition is encrypted;
The server is sent by encrypted log-on message to be updated.
9. a kind of server, which is characterized in that the server includes:
Third receiving unit, for receiving the terminal mark of log-on message and the terminal that user is uploaded by currently used terminal Know;
Unit is established, for establishing the user identifier for the user that the third receiving unit receives, the end of multiple terminals The corresponding relationship of end mark and log-on message a, wherein user identifier corresponds to multiple terminal iidentifications, and a user identifier is corresponding One log-on message;When establishing the corresponding relationship of the user identifier and second terminal iidentification, from second terminal It identifies corresponding terminal and receives at least one terminal iidentification saved of user's offer as verification information;
Second receiving unit, for receiving user's log-in instruction of terminal transmission, user's log-in instruction carries the use The authentication information at family;
Second judgment unit, for judging that the authentication information that second receiving unit receives is tested with preset identity Whether identical demonstrate,prove information;
First transmission unit, for obtaining the authentication information and the preset authentication when the second judgment unit When information is identical, determines that the user has and initiate the shared permission of log-on message, and send confirmation message to the terminal, with Make the terminal after receiving the confirmation message, initiates data synchronization request into shared interface, and to the server;
First receiving unit carries the terminal for receiving the data synchronization request in the data synchronization request Terminal iidentification;
First judging unit, for judging that whether preserving described first in server database receives according to the corresponding relationship The corresponding log-on message of terminal iidentification for the terminal that unit receives;
Synchronization unit, for obtaining the terminal for preserving the terminal in the server database when first judging unit When identifying corresponding log-on message, the log-on message is synchronized to the terminal and is locally stored, the log-on message packet The corresponding log-on message of identification information, different web sites and different web sites for including different web sites are believed with corresponding login Corresponding relationship between breath.
10. server according to claim 9, which is characterized in that the terminal iidentification is that the mainboard of the terminal is numbered Or the physical address of network interface card.
11. server according to claim 10, which is characterized in that the server further include:
Storage unit, for saving the user identifier of the user, the terminal mark of multiple terminals in the server database Knowledge, the log-on message and the corresponding relationship for establishing unit foundation.
12. server according to claim 11, which is characterized in that the storage unit includes:
Encryption sub-unit operable, for by the terminal iidentification of the user identifier of the user, multiple terminals, the log-on message and described Corresponding relationship is encrypted;
Storing sub-units, for the encrypted data of the encryption sub-unit operable to be stored in the server database;
The synchronization unit includes:
Subelement is decrypted, for when the corresponding log-on message of terminal iidentification for preserving the terminal in the server database When, the log-on message is decrypted;
Synchronous subelement carries out locally for the log-on message after the decryption subelement decryption to be synchronized to the terminal Storage.
13. a kind of terminal, which is characterized in that the terminal includes:
Acquiring unit, for according to register obtain log-on message, the log-on message include different web sites identification information, Corresponding relationship between the corresponding log-on message of different web sites and different web sites and corresponding log-on message;
First transmission unit uploads the terminal mark of the log-on message and the terminal to server for receiving user's operation Know, so that the server establishes pair of the user identifier of the user, the terminal iidentification of multiple terminals and the log-on message It should be related to, wherein a user identifier corresponds to multiple terminal iidentifications, the corresponding log-on message of a user identifier;Work as foundation When the corresponding relationship of the user identifier and second terminal iidentification, institute is received from the corresponding terminal of second terminal iidentification At least one terminal iidentification saved of user's offer is stated as verification information;
Third transmission unit, for sending user's log-in instruction to the server, user's log-in instruction carries described The authentication information of user, so that the server judges that the authentication information is identical as preset authentication information When, it determines that the user has and initiates the shared permission of log-on message, and send confirmation message to the terminal;
First receiving unit, for receiving the confirmation message, into shared interface;
Second transmission unit carries in the data synchronization request for sending data synchronization request to the server The terminal iidentification of terminal is stated, so that the server judges whether save in server database according to the corresponding relationship State the corresponding log-on message of terminal iidentification of terminal;If preserving the terminal iidentification of the terminal in the server database The log-on message is then synchronized in the terminal and is locally stored by corresponding log-on message.
14. terminal according to claim 13, which is characterized in that the terminal iidentification be the terminal mainboard number or The physical address of person's network interface card.
15. terminal according to claim 13, which is characterized in that the acquiring unit is also used to:
Log-on message is obtained automatically in the login interface of the different web sites;
Alternatively, obtaining the log-on message according to the log-on message edit instruction of user's input.
16. terminal described in any one of 3 to 15 according to claim 1, it is characterised in that the terminal further include:
Encryption unit, for being encrypted to the log-on message singly obtained that obtains;
First transmission unit is also used to, and is sent the server for encrypted log-on message and is updated.
17. a kind of synchronous system of data, which is characterized in that the system comprises described in any one of claim 9 to 12 Terminal described in any one of server and claim 13 to 16.
CN201410201581.5A 2014-05-13 2014-05-13 Data synchronous method, server, terminal and system Active CN105099686B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410201581.5A CN105099686B (en) 2014-05-13 2014-05-13 Data synchronous method, server, terminal and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410201581.5A CN105099686B (en) 2014-05-13 2014-05-13 Data synchronous method, server, terminal and system

Publications (2)

Publication Number Publication Date
CN105099686A CN105099686A (en) 2015-11-25
CN105099686B true CN105099686B (en) 2019-08-23

Family

ID=54579325

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410201581.5A Active CN105099686B (en) 2014-05-13 2014-05-13 Data synchronous method, server, terminal and system

Country Status (1)

Country Link
CN (1) CN105099686B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106096343B (en) * 2016-05-27 2019-09-13 腾讯科技(深圳)有限公司 Message access control method and equipment
CN107124457A (en) * 2017-04-27 2017-09-01 广东欧珀移动通信有限公司 Application data synchronous method, application data sychronisation and server
CN110557412A (en) * 2018-05-30 2019-12-10 杭州海康威视数字技术股份有限公司 data synchronization method and device
CN108924144B (en) * 2018-07-13 2020-12-22 Oppo广东移动通信有限公司 Data acquisition method, data acquisition system, terminal and diagnosis tool
CN113918266A (en) * 2021-11-23 2022-01-11 成都泰盟软件有限公司 Multi-terminal data synchronous response method based on local area network

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102130918A (en) * 2011-04-01 2011-07-20 张仁平 Account binding system for network logon authentication
CN102497635A (en) * 2011-11-28 2012-06-13 宇龙计算机通信科技(深圳)有限公司 Server, terminal and account password acquisition method
CN102724310A (en) * 2012-06-18 2012-10-10 惠州Tcl移动通信有限公司 Method using mobile terminal to implement cloud searching
CN102780708A (en) * 2012-08-17 2012-11-14 广东利为网络科技有限公司 Remote assistant login method and system
CN102868732A (en) * 2012-08-27 2013-01-09 北京小米科技有限责任公司 Account password-based login implementation method, system and device
CN103095659A (en) * 2011-11-03 2013-05-08 北京神州泰岳软件股份有限公司 Account login method and system in internet
CN103401907A (en) * 2013-07-23 2013-11-20 惠州Tcl移动通信有限公司 Synchronous processing method and system for login information of application program

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102130918A (en) * 2011-04-01 2011-07-20 张仁平 Account binding system for network logon authentication
CN103095659A (en) * 2011-11-03 2013-05-08 北京神州泰岳软件股份有限公司 Account login method and system in internet
CN102497635A (en) * 2011-11-28 2012-06-13 宇龙计算机通信科技(深圳)有限公司 Server, terminal and account password acquisition method
CN102724310A (en) * 2012-06-18 2012-10-10 惠州Tcl移动通信有限公司 Method using mobile terminal to implement cloud searching
CN102780708A (en) * 2012-08-17 2012-11-14 广东利为网络科技有限公司 Remote assistant login method and system
CN102868732A (en) * 2012-08-27 2013-01-09 北京小米科技有限责任公司 Account password-based login implementation method, system and device
CN103401907A (en) * 2013-07-23 2013-11-20 惠州Tcl移动通信有限公司 Synchronous processing method and system for login information of application program

Also Published As

Publication number Publication date
CN105099686A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
JP6612358B2 (en) Method, network access device, application server, and non-volatile computer readable storage medium for causing a network access device to access a wireless network access point
CN107251035B (en) Account recovery protocol
EP2705642B1 (en) System and method for providing access credentials
US8209744B2 (en) Mobile device assisted secure computer network communication
CN100586066C (en) System and method for realizing single-point login
CN110049016B (en) Data query method, device, system, equipment and storage medium of block chain
EP3346660B1 (en) Authentication information update method and device
US10824744B2 (en) Secure client-server communication
CN105099686B (en) Data synchronous method, server, terminal and system
CN112788033A (en) Authentication method and authentication system
EP2544117A1 (en) Method and system for sharing or storing personal data without loss of privacy
CN108243176B (en) Data transmission method and device
EP3316544A1 (en) Token generation and authentication method, and authentication server
WO2015171549A2 (en) Facilitating communication between mobile applications
CN107979514A (en) A kind of method and apparatus bound to equipment
WO2016014120A1 (en) Device authentication agent
CN108989848A (en) A kind of acquisition methods and management system of video resource file
WO2016161398A1 (en) Website authentication using an internet-connected device
CN108134789A (en) The method and Cloud Server of data synchronization between devices are carried out by cloud
JP2007310512A (en) Communication system, service providing server, and user authentication server
CN106453361A (en) A safety protection method and system for network information
CN106060029A (en) Access control method and device of virtual desktop
CN110808991B (en) Method, system, electronic device and storage medium for secure communication connection
CN111444499A (en) User identity authentication method and system
CN105183402B (en) Date storage method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant