CN104202185A - Backup method and backup device for communication data - Google Patents

Backup method and backup device for communication data Download PDF

Info

Publication number
CN104202185A
CN104202185A CN201410421714.XA CN201410421714A CN104202185A CN 104202185 A CN104202185 A CN 104202185A CN 201410421714 A CN201410421714 A CN 201410421714A CN 104202185 A CN104202185 A CN 104202185A
Authority
CN
China
Prior art keywords
terminals
communication data
mobile terminal
backup
authorization information
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.)
Granted
Application number
CN201410421714.XA
Other languages
Chinese (zh)
Other versions
CN104202185B (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.)
Shenzhen Tencent Computer Systems 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 CN201410421714.XA priority Critical patent/CN104202185B/en
Publication of CN104202185A publication Critical patent/CN104202185A/en
Application granted granted Critical
Publication of CN104202185B publication Critical patent/CN104202185B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a backup method and a backup device for communication data. The method comprises the following steps that: a mobile terminal acquires the backup monitoring port of an instant messaging application program corresponding to the communication data while receiving the backup request of a user for the communication data, and establishes connection with a backup terminal through the backup monitoring port; the mobile terminal carries out identity authentication with the backup terminal; the mobile terminal sends the communication data to the backup terminal while passing through the identity authentication, so that the backup terminal carries out backup storage on the communication data. With the adoption of the embodiment of the invention, the communication data of the instant messaging application program in the mobile terminal can be stored in the backup terminal, thus enhancing the backup convenience of the communication data, and improving the backup safety reliability of the communication data.

Description

A kind of communication data backup method and device
Technical field
The present invention relates to the communications field, relate in particular to a kind of communication data backup method and device.
Background technology
Mobile terminal is as communication tool, instant messaging application program also can be installed in mobile terminal, user can communicate by instant messaging application program and other users, communication data in instant messaging application can be backuped to high in the clouds, wherein, communication data is chat record, collection record, subscription record etc. such as, but communication data exceedes can back up maximum duration time memory time beyond the clouds, automatically delete beyond the clouds this communication data, cannot guarantee the backup security reliability of communication data.
Summary of the invention
The embodiment of the present invention provides a kind of communication data backup method and device, can strengthen the convenience of communication data backup, can improve the backup security reliability of communication data.
First aspect present invention provides a kind of communication data backup method, can comprise:
Mobile terminal, in the time receiving user to the backup request of communication data, obtains the backup listening port of the instant messaging application program that described communication data is corresponding, and connects by described backup listening port and back-up terminals;
Described mobile terminal and described back-up terminals are carried out authentication;
Described mobile terminal, when by described authentication, sends communication data to described back-up terminals, so that described back-up terminals is carried out back-up storage to described communication data.
Second aspect present invention provides a kind of communication data back-up device, can comprise:
Link block, in the time receiving user to the backup request of communication data, obtains the backup listening port of the instant messaging application program that described communication data is corresponding, and connects by described backup listening port and back-up terminals;
Authentication module, for carrying out authentication with described back-up terminals;
Sending module, in the time that described authentication module is verified, sends communication data to described back-up terminals, so that described back-up terminals is carried out back-up storage to described communication data.
Implement the embodiment of the present invention, there is following beneficial effect:
Mobile terminal is in the time receiving user to the backup request of communication data, the backup listening port of can obtaining communication data corresponding instant messaging application program, and connect by backup listening port and back-up terminals, and then carry out authentication with back-up terminals, when by authentication, send communication data to back-up terminals, so that back-up terminals is carried out back-up storage to communication data, mobile terminal can connect with back-up terminals by backup listening port, realize the communication data back-up storage of instant messaging application program in mobile terminal to back-up terminals, can strengthen the convenience of communication data backup, also can improve the backup security reliability of communication data.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic flow sheet of a kind of communication data backup method of providing of the embodiment of the present invention;
Fig. 2 A is the schematic diagram that a kind of mobile terminal of providing of the embodiment of the present invention and back-up terminals connect;
Fig. 2 B is that the page of a kind of communication data backup that provides of the embodiment of the present invention shows schematic diagram;
Fig. 3 is the structural representation of a kind of communication data back-up device of providing of the embodiment of the present invention;
Fig. 4 is the structural representation of the link block that provides of the embodiment of the present invention;
Fig. 5 is the structural representation of the authentication module that provides of the embodiment of the present invention;
Fig. 6 A is the structural representation of a kind of communication data standby system of providing of the embodiment of the present invention;
Fig. 6 B is the concrete schematic diagram of a kind of communication data standby system of providing of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The invention process example provides a kind of communication data backup method and device, and in embodiments of the present invention, a kind of back-up device of communication data can be: the mobile terminals such as panel computer, smart mobile phone.Instant messaging application program can be installed in mobile terminal, user can communicate by instant messaging application program and other users, the data that produce in communication process can be called communication data, and in the embodiment of the present invention, communication data is chat record, collection record, subscription record etc. such as.
Further, can be in instant communication applications program built-in backup operation button or backup operation button, for example, at the built-in chat record backup of micro-letter client button, thereby receive user to instant messaging application program in when the operation requests of built-in backup button or backup operation button, can receive the backup request of user to communication data, thereby the backup listening port of can obtaining communication data corresponding instant messaging application program, and connect by backup listening port and back-up terminals, and then carry out authentication with back-up terminals, when by authentication, send communication data to back-up terminals, so that back-up terminals is carried out back-up storage to communication data.Wherein, back-up terminals can comprise: the personal computers such as desktop computer, notebook computer, also can store for other terminal equipment of data, and be not specifically subject to the restriction of the embodiment of the present invention.
In the embodiment of the present invention, mobile terminal can connect with back-up terminals by backup listening port, realize the communication data back-up storage of instant messaging application program in mobile terminal to back-up terminals, can strengthen the convenience of communication data backup, also can improve the backup security reliability of communication data.
Below in conjunction with accompanying drawing 1, Fig. 2 A and Fig. 2 B, the communication data backup method that the embodiment of the present invention is provided describes in detail.
Refer to Fig. 1, for the embodiment of the present invention provides a kind of schematic flow sheet of communication data backup method, the embodiment of the present invention is described taking mobile terminal as executive agent, concrete, and the method can comprise the following steps: S101~S103.
S101, mobile terminal in the time receiving user to the backup request of communication data, the backup listening port of instant messaging application program corresponding to obtaining communication data, and connecting by backup listening port and back-up terminals.
As the optional execution mode of one, receive user to instant messaging application program in when the operation requests of built-in backup button or backup operation button, confirm to receive the backup request of user to communication data, can be according to the backup listening port of instant messaging application program corresponding to backup request obtaining communication data, and then connect by backup listening port and back-up terminals.
Further, the backup listening port of instant messaging application program corresponding to step S101 obtaining communication data, and connect and specifically can comprise by backup listening port and back-up terminals:
The connection authentication information that acquisition for mobile terminal back-up terminals generates, connects authentication information and comprises backup listening port;
The server that the connection authentication information getting is sent to instant messaging application program by mobile terminal authenticates, so that the server of instant messaging application program sends and connects instruction to mobile terminal when by certification;
Mobile terminal is set up wireless connections according to connecting instruction by backup listening port and back-up terminals.
In specific implementation, mobile terminal can obtain the connection authentication information that back-up terminals generates, in the embodiment of the present invention, connect the 2 D code information that authentication information generates including, but not limited to: back-up terminals, connect authentication information can also for back-up terminals generate for authenticating the information being connected between back-up terminals and mobile terminal, the concrete restriction that is not subject to the embodiment of the present invention.Wherein, Quick Response Code is the chequered with black and white graphic recording data symbol information distributing in plane (on two-dimensional directional) according to certain rules with certain specific geometric figure.Concrete, connect authentication information and can comprise backup listening port, further, connect the address designation that authentication information can also comprise back-up terminals, for example IP (Internet Protocol, the agreement interconnecting between network) address etc.The server that mobile terminal can send to the connection authentication information getting instant messaging application program authenticates, thereby the server of instant messaging application program can send and connect instruction to mobile terminal when by certification, mobile terminal can be set up wireless connections by backup listening port and back-up terminals according to connecting instruction.
Referring to Fig. 2 A, is the schematic diagram that a kind of mobile terminal of providing of the embodiment of the present invention and back-up terminals connect, as shown in Figure 2 A, and taking instant messaging application program: micro-letter is described as example.Back-up terminals can be: PC, computer house keeper client can be installed in PC, and back-up terminals and the communication connection of computer housekeeper service device, install micro-letter client in mobile terminal.Mobile terminal can communicate to connect with micro-telecommunications services device, and as shown in the figure, what mobile terminal and back-up terminals connected specifically can comprise the steps:
S201, back-up terminals sends state information to computer housekeeper service device, and state information comprises: the address information of back-up terminals, the identification information of backup listening port, house keeper's client log-on message or back-up terminals.
S202, computer housekeeper service device is by the state information generating labels information receiving, and label information is carried out associated with the identification information of back-up terminals.
S203, computer housekeeper service device sends label information to back-up terminals.
S204, back-up terminals generates and connects authentication information according to the label information receiving.Connecting authentication information comprises: backup listening port.
S205, the connection authentication information that acquisition for mobile terminal back-up terminals generates.
S206, mobile terminal sends and connects authentication information to micro-telecommunications services device.
S207, micro-telecommunications services device authenticates the connection authentication information receiving.
S208, micro-telecommunications services device sends and connects instruction to mobile terminal when by certification.
S209, mobile terminal is set up wireless connections according to connecting instruction by backup listening port and back-up terminals.
In specific implementation, mobile terminal can carry out wireless connections by backup listening port and back-up terminals.
Fig. 2 A only illustrates the schematic diagram that a kind of mobile terminal that the embodiment of the present invention provides and back-up terminals connect, can also be other modes connecting, the concrete restriction that is not subject to the embodiment of the present invention, for example, mobile terminal can be with back-up terminals by USB (Universal Serial Bus, USB) connect, computer house keeper in back-up terminals can connect computer housekeeper service device by unification and call shell-command and notify micro-letter, micro-letter is monitored fixed port, thereby back-up terminals can be connected to mobile terminal port by unified Connection Service, to connect, wherein, unified Connection Service can be by the precious deduction of application, can realize adb (android debug bridge, a kind of debugging routine that Android provides) linkage function.
As shown in Figure 2 B, the page that a kind of communication data providing for the embodiment of the present invention backs up shows schematic diagram, concrete, the page shown in Fig. 2 B can be the page that back-up terminals shows the connection authentication information generating, wherein, region 21 can be used for two-dimensional code display information, the 2 D code information of the camera of user by mobile terminal in can scanning area 21, thus mobile terminal can be connected with back-up terminals.Further, button 22 provides another kind of connected mode, and such as USB connected mode etc. are not specifically subject to the restriction of the embodiment of the present invention.
S102, mobile terminal and back-up terminals are carried out authentication.
As the optional execution mode of one, in step S102, mobile terminal and back-up terminals are carried out authentication and specifically can be comprised:
The first authorization information that the server of acquisition for mobile terminal instant messaging application program issues; The first authorization information comprises the account identification of instant messaging application program;
Mobile terminal sends the first authorization information to back-up terminals, so that back-up terminals is in the time of the certification by the first authorization information, is generated the second authorization information and the second authorization information is sent to mobile terminal by account identification;
Mobile terminal verifies the second authorization information, in the time of the checking by the second authorization information, determines that mobile terminal is by described authentication, and returns and be verified response to back-up terminals.
In specific implementation, the first authorization information can comprise the account identification of instant messaging application program, also can comprise key, wherein, and such as micro-letter account identification of the account identification of instant messaging application program etc.
Followingly describe authentication process itself taking micro-letter client as example, step is as follows:
A1, micro-letter client in mobile terminal sends authentication request to micro-telecommunications services device, micro-telecommunications services device generates the first authorization information according to authentication request, the first authorization information generating is sent to mobile terminal by micro-telecommunications services device, wherein, the first authorization information comprises: the key (KEY) that the account identification (ID, IDentity) of instant messaging application program and the account identification of instant messaging application program are corresponding.For example, the first authorization information can comprise: micro-letter account identification and key corresponding to micro-letter account identification, wherein, key can be encryption key.
A2, mobile terminal are resolved the first authorization information receiving, and encapsulate, and the first authorization information after encapsulation is sent to back-up terminals.Concrete, the first authorization information after encapsulation can be: packet PacketAuthenticateRequest.Further, the detailed process that mobile terminal carries out packing can be: mobile terminal can construction data bag PacketAuthenticateRequest, the field Step of bag is set to AUTHENTICATE_STEP_0, the Field ID of bag is set to the account identification of instant messaging application program, and the field DATA of bag is the binary data that character string hello (comprising ending 0) encrypts with RC4 and KEY.Mobile terminal can send to back-up terminals by packet PacketAuthenticateRequest.
A3, back-up terminals receives the first authorization information, and the first authorization information is verified.Concrete, back-up terminals can, receiving after packet PacketAuthenticateRequest, be carried out a series of verifications, judges whether Step is AUTHENTICATE_STEP_0.Account identification by instant messaging application program arrives computer housekeeper service device query key, and the DATA data that deciphering is received after computer housekeeper service device gets key judge whether the DATA data of deciphering are character string hello, if not, directly failure.If so, continue execution step a4.
A4, back-up terminals generates the second authorization information by account identification, and the second authorization information is sent to mobile terminal.Concrete, the second authorization information can comprise: packet PacketAuthenticateResponse, back-up terminals gets account identification and key, construction data bag PacketAuthenticateResponse, the field Step of bag is set to AUTHENTICATE_STEP_0, the Field ID of bag is set to the account identification generating, and the field DATA of bag is the binary data that character string ok (comprising ending 0) encrypts with RC4 and KEY.This bag is sent to mobile terminal.
A5, mobile terminal is received the second authorization information, and the second authorization information is verified.Concrete, mobile terminal verifies the packet PacketAuthenticateResponse receiving, concrete, verification Step==AUTHENTICATE_STEP_0, and verification account identification, is character string ok after verification DATA deciphering.
A6, mobile terminal, in the time of the checking by the second authorization information, returns and is verified response to back-up terminals.Concrete, being verified response can comprise: packet PacketAuthenticateRequest.Mobile terminal can again be constructed a packet PacketAuthenticateRequest after by checking, Step is set to AUTHENTICATE_STEP_1, ID arranges, and DATA leaves a blank, and packet PacketAuthenticateRequest is sent to back-up terminals.Now, mobile terminal side checking finishes.
A7, back-up terminals receives and is verified response, verifies being verified response.Concrete, for example, back-up terminals can be carried out verification to the packet PacketAuthenticateRequest receiving, concrete, can verification Step==AUTHENTICATE_STEP_1 and ID whether consistent, if consistent, the checking of back-up terminals side finishes.
S103, mobile terminal, when by authentication, sends communication data to back-up terminals, so that back-up terminals is carried out back-up storage to communication data.
As the optional execution mode of one, mobile terminal, when by authentication, can send communication data to back-up terminals, so that back-up terminals is carried out back-up storage to communication data.In specific implementation; it can be mobile terminal active push communication data; communication data can send with the form of packet one by one; for each packet; whether back-up terminals can reply and receive successfully; further, mobile terminal can send backup pause instruction or Backup end instruction to suspend or to stop the transmission of communication data to back-up terminals.
Further alternative, can also be for being encrypted before mobile terminal sends communication data, key can be set by the user, thereby the communication data of having encrypted can be sent to back-up terminals, can in back-up terminals, carry out back-up storage to the communication data of encrypting, if in same back-up terminals back-up storage different communication data, user can open with key the communication data of back-up storage, has guaranteed personal secrets.Further, communication data back-up storage, in back-up terminals, is also convenient to user and in the time changing planes, is moved communication data.
Further alternative, can encapsulate communication data, for example can encapsulate by the packet header of following packet:
" DWORD dwMagicCode; // be necessary for ' GSMW'
WORD wType; // bag type, directly passes to upper strata and processes
DWORD dwTotalSize; Total size of // packet header+inclusion
DWORD dwChecksum; // packet header adds inclusion, after Checksum fills out, does CRC32 verification
CHAR buffer[0]; // inclusion, RC4 encrypts ".
Further alternative, the communication data backup method that the embodiment of the present invention provides can also comprise:
Mobile terminal sends the recovery request of the mark of carrying communication data to back-up terminals;
The communication data of the mark correspondence of the communication data that mobile terminal reception back-up terminals is returned according to recovery request;
Mobile terminal recovers the communication data receiving.
In specific implementation, communication data can comprise the mark of communication data, and wherein, the mark of communication data can comprise: the account identification of communicating pair and the BACKUP TIME of communication data mark.Mobile terminal sends communication data to back-up terminals, and back-up terminals can be carried out back-up storage to communication data, concrete, and back-up terminals can be stored communication data according to the mark of communication data.
Further, mobile terminal can send to back-up terminals the recovery request of the mark of carrying communication data, back-up terminals can be searched according to recovery request the communication data of the mark correspondence of communication data, the communication data finding is sent to mobile terminal by back-up terminals, thereby mobile terminal can received communication data, and the communication data receiving is recovered.Further, can recover the communication data of any BACKUP TIME mark.
Further; it can be the recovery of mobile terminal active request communication data; communication data can send with the form of packet one by one, and mobile terminal can send and recover pause instruction or recover END instruction to suspend or to stop the transmission of communication data to back-up terminals.
The embodiment of the present invention provides a kind of communication data backup method, mobile terminal is in the time receiving user to the backup request of communication data, the backup listening port of can obtaining communication data corresponding instant messaging application program, and connect by backup listening port and back-up terminals, and then carry out authentication with back-up terminals, when by authentication, send communication data to back-up terminals, so that back-up terminals is carried out back-up storage to communication data, mobile terminal can connect with back-up terminals by backup listening port, realize the communication data back-up storage of instant messaging application program in mobile terminal to back-up terminals, can strengthen the convenience of communication data backup, also can improve the backup security reliability of communication data.
Below in conjunction with accompanying drawing 3~accompanying drawing 5, the communication data back-up device that the embodiment of the present invention is provided describes in detail.It should be noted that, the device shown in accompanying drawing 3~accompanying drawing 5 is arbitrary, for carrying out the present invention's method embodiment illustrated in fig. 1, for convenience of explanation, only show the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and please refer to the embodiment shown in Fig. 1 of the present invention.
Refer to Fig. 3, for the embodiment of the present invention provides a kind of structural representation of communication data back-up device.As shown in Figure 3, the communication data back-up device of the embodiment of the present invention can comprise: link block 31, authentication module 32 and sending module 33.
Link block 31, in the time receiving user to the backup request of communication data, the backup listening port of instant messaging application program corresponding to obtaining communication data, and connect by backup listening port and back-up terminals.
As the optional execution mode of one, receive user to instant messaging application program in when the operation requests of built-in backup button or backup operation button, confirm to receive the backup request of user to communication data, can be according to the backup listening port of instant messaging application program corresponding to backup request obtaining communication data, and then link block 31 connects by backup listening port and back-up terminals.
Further, as shown in Figure 4, be the structural representation of the link block that provides of the embodiment of the present invention, as shown in the figure, link block 31 can comprise: authentication information acquiring unit 41, authentication information transmitting element 42 and linkage unit 43.
Authentication information acquiring unit 41, the connection authentication information generating for obtaining back-up terminals, connects authentication information and comprises backup listening port.
Authentication information transmitting element 42, authenticates for the server that the connection authentication information getting is sent to instant messaging application program, so that the server of instant messaging application program sends and connects instruction to described mobile terminal when by certification.
Linkage unit 43, for setting up wireless connections according to connecting instruction by backup listening port and back-up terminals.
In specific implementation, authentication information acquiring unit 41 can obtain the connection authentication information that back-up terminals generates, in the embodiment of the present invention, connect the 2 D code information that authentication information generates including, but not limited to: back-up terminals, connect authentication information can also for back-up terminals generate for authenticating the information being connected between back-up terminals and mobile terminal, the concrete restriction that is not subject to the embodiment of the present invention.Wherein, Quick Response Code is the chequered with black and white graphic recording data symbol information distributing in plane (on two-dimensional directional) according to certain rules with certain specific geometric figure.Concrete, connect authentication information and can comprise backup listening port, further, connect the address designation that authentication information can also comprise back-up terminals, such as IP address etc.The server that authentication information transmitting element 42 can send to the connection authentication information getting instant messaging application program authenticates, thereby the server of instant messaging application program can send and connect instruction to mobile terminal when by certification, linkage unit 43 can be set up wireless connections by backup listening port and back-up terminals according to connecting instruction.
Further, back-up terminals can be: PC, computer house keeper client can be installed in PC, and back-up terminals and the communication connection of computer housekeeper service device, install micro-letter client in mobile terminal.Mobile terminal can with the communication connection of micro-telecommunications services device, following taking instant messaging application program: micro-letter is described mobile terminal and the back-up terminals mode that connects as example:
Back-up terminals sends state information to computer housekeeper service device, and state information comprises: the address information of back-up terminals, the identification information of backup listening port, house keeper's client log-on message or back-up terminals.Computer housekeeper service device is by the state information generating labels information receiving, and label information is carried out associated with the identification information of back-up terminals.Computer housekeeper service device sends label information to back-up terminals.Back-up terminals generates and connects authentication information according to the label information receiving.Wherein, connecting authentication information comprises: backup listening port.The connection authentication information that acquisition for mobile terminal back-up terminals generates.Mobile terminal sends and connects authentication information to micro-telecommunications services device.Micro-telecommunications services device authenticates the connection authentication information receiving.Micro-telecommunications services device sends and connects instruction to mobile terminal when by certification.Mobile terminal is set up wireless connections according to connecting instruction by backup listening port and back-up terminals.In specific implementation, mobile terminal can carry out wireless connections by backup listening port and back-up terminals.
Further, the schematic diagram that mobile terminal and back-up terminals connect, can also be other modes connecting, the concrete restriction that is not subject to the embodiment of the present invention, for example, mobile terminal can be connected by USB with back-up terminals, computer house keeper in back-up terminals can connect computer housekeeper service device by unification and call shell-command and notify micro-letter, micro-letter is monitored fixed port, thereby back-up terminals can be connected to mobile terminal port by unified Connection Service, to connect, wherein, unified Connection Service can, by the precious deduction of application, can realize adb linkage function.As shown in Figure 2 B, the page that a kind of communication data providing for the embodiment of the present invention backs up shows schematic diagram, concrete, the page shown in Fig. 2 B can be the page that back-up terminals shows the connection authentication information generating, wherein, region 21 can be used for two-dimensional code display information, the 2 D code information of the camera of user by mobile terminal in can scanning area 21, thus mobile terminal can be connected with back-up terminals.Further, button 22 provides another kind of connected mode, and such as USB connected mode etc. are not specifically subject to the restriction of the embodiment of the present invention.
Authentication module 32, for carrying out authentication with back-up terminals.
As the optional execution mode of one, authentication module 32 can carry out authentication with back-up terminals.In specific implementation, as shown in Figure 5, be the structural representation of the authentication module that provides of the embodiment of the present invention, as shown in the figure, authentication module 32 can comprise: authorization information acquiring unit 51, authorization information transmitting element 52 and authentication unit 53.
Authorization information acquiring unit 51, the first authorization information issuing for obtaining the server of instant messaging application program; The first authorization information comprises the account identification of instant messaging application program.
Authorization information transmitting element 52, for send the first authorization information to back-up terminals, so that back-up terminals is in the time of the certification by the first authorization information, is generated the second authorization information and the second authorization information is sent to mobile terminal by account identification.
Authentication unit 53, for the second authorization information is verified, in the time of the checking by the second authorization information, determines that mobile terminal is by authentication, and returns and be verified response to back-up terminals.
In specific implementation, the first authorization information can comprise the account identification of instant messaging application program, also can comprise key, wherein, and such as micro-letter account identification of the account identification of instant messaging application program etc.
Followingly as an example of micro-letter client example, authentication process itself is described:
Micro-letter client in mobile terminal sends authentication request to micro-telecommunications services device, micro-telecommunications services device generates the first authorization information according to authentication request, the first authorization information generating is sent to mobile terminal by micro-telecommunications services device, thereby authorization information acquiring unit 51 can get the first authorization information.Wherein, the first authorization information comprises: the account identification (ID) of instant messaging application program and key (KEY) corresponding to the account identification of instant messaging application program.For example, the first authorization information can comprise: micro-letter account identification and key corresponding to micro-letter account identification, wherein, key can be encryption key.
Mobile terminal is resolved the first authorization information receiving, and encapsulates, and the first authorization information after encapsulation is sent to back-up terminals.Concrete, the first authorization information after encapsulation can be: packet PacketAuthenticateRequest.Further, the detailed process that mobile terminal carries out packing can be: mobile terminal can construction data bag PacketAuthenticateRequest, the field Step of bag is set to AUTHENTICATE_STEP_0, the Field ID of bag is set to the account identification of instant messaging application program, and the field DATA of bag is the binary data that character string hello (comprising ending 0) encrypts with RC4 and KEY.Mobile terminal can send to back-up terminals by packet PacketAuthenticateRequest.
Back-up terminals receives the first authorization information, and the first authorization information is verified.Concrete, back-up terminals can, receiving after packet PacketAuthenticateRequest, be carried out a series of verifications, judges whether Step is AUTHENTICATE_STEP_0.Account identification by instant messaging application program arrives computer housekeeper service device query key, and the DATA data that deciphering is received after computer housekeeper service device gets key judge whether the DATA data of deciphering are character string hello, if not, directly failure.
Back-up terminals generates the second authorization information by account identification, and the second authorization information is sent to mobile terminal.Concrete, the second authorization information can comprise: packet PacketAuthenticateResponse, back-up terminals gets account identification and key, construction data bag PacketAuthenticateResponse, the field Step of bag is set to AUTHENTICATE_STEP_0, the Field ID of bag is set to the account identification generating, and the field DATA of bag is the binary data that character string ok (comprising ending 0) encrypts with RC4 and KEY.This bag is sent to mobile terminal.
Mobile terminal is received the second authorization information, and the second authorization information is verified.Concrete, mobile terminal verifies the packet PacketAuthenticateResponse receiving, concrete, verification Step==AUTHENTICATE_STEP_0, and verification account identification, is character string ok after verification DATA deciphering.
Mobile terminal, in the time of the checking by the second authorization information, returns and is verified response to back-up terminals.Concrete, being verified response can comprise: packet PacketAuthenticateRequest.Mobile terminal can again be constructed a packet PacketAuthenticateRequest after by checking, Step is set to AUTHENTICATE_STEP_1, ID arranges, and DATA leaves a blank, and packet PacketAuthenticateRequest is sent to back-up terminals.Now, mobile terminal side checking finishes.
Back-up terminals receives and is verified response, verifies being verified response.Concrete, for example, back-up terminals can be carried out verification to the packet PacketAuthenticateRequest receiving, concrete, can verification Step==AUTHENTICATE_STEP_1 and ID whether consistent, if consistent, the checking of back-up terminals side finishes.
Sending module 33, in the time that authentication module 32 is verified, sends communication data to back-up terminals, so that back-up terminals is carried out back-up storage to communication data.
As the optional execution mode of one, when by authentication, sending module 33 can send communication data to back-up terminals, so that back-up terminals is carried out back-up storage to communication data.In specific implementation; it can be mobile terminal active push communication data; communication data can send with the form of packet one by one; for each packet; whether back-up terminals can reply and receive successfully; further, mobile terminal can send backup pause instruction or Backup end instruction to suspend or to stop the transmission of communication data to back-up terminals.
Further alternative, can also be for being encrypted before mobile terminal sends communication data, key can be set by the user, thereby the communication data of having encrypted can be sent to back-up terminals, can in back-up terminals, carry out back-up storage to the communication data of encrypting, if in same back-up terminals back-up storage different communication data, user can open with key the communication data of back-up storage, has guaranteed personal secrets.Further, communication data back-up storage, in back-up terminals, is also convenient to user and in the time changing planes, is moved communication data.
Further alternative, can encapsulate communication data, for example can encapsulate by the packet header of following packet:
" DWORD dwMagicCode; // be necessary for ' GSMW'
WORD wType; // bag type, directly passes to upper strata and processes
DWORD dwTotalSize; Total size of // packet header+inclusion
DWORD dwChecksum; // packet header adds inclusion, after Checksum fills out, does CRC32 verification
CHAR buffer[0]; // inclusion, RC4 encrypts ".
Further alternative, the communication data back-up device that the embodiment of the present invention provides can also comprise: receiver module 34 and data recovery module 35.
Sending module 33, also for sending the recovery request of the mark of carrying described communication data to back-up terminals;
Receiver module 34, for receiving the communication data of mark correspondence of the described communication data that back-up terminals returns according to recovery request.
Data recovery module 35, recovers for the communication data that receiver module 34 is received.
In specific implementation, communication data can comprise the mark of communication data, and wherein, the mark of communication data can comprise: the account identification of communicating pair and the BACKUP TIME of communication data mark.Sending module 33 can send communication data to back-up terminals, and back-up terminals can be carried out back-up storage to communication data, concrete, and back-up terminals can be stored communication data according to the mark of communication data.
Further, sending module 33 can send to back-up terminals the recovery request of the mark of carrying communication data, back-up terminals can be searched according to recovery request the communication data of the mark correspondence of communication data, the communication data finding is sent to mobile terminal by back-up terminals, thereby receiver module 34 can received communication data, and data recovery module 35 can be recovered the communication data receiving receiver module 34.Further, can recover the communication data of any BACKUP TIME mark.
Further; it can be the recovery of mobile terminal active request communication data; communication data can send with the form of packet one by one, and mobile terminal can send and recover pause instruction or recover END instruction to suspend or to stop the transmission of communication data to back-up terminals.
The embodiment of the present invention provides a kind of communication data back-up device, link block can be in the time receiving user to the backup request of communication data, the backup listening port of can obtaining communication data corresponding instant messaging application program, and connect by backup listening port and back-up terminals, authentication module can carry out authentication with back-up terminals, sending module can be when by authentication, send communication data to back-up terminals, so that back-up terminals is carried out back-up storage to communication data, mobile terminal can connect with back-up terminals by backup listening port, realize the communication data back-up storage of instant messaging application program in mobile terminal to back-up terminals, can strengthen the convenience of communication data backup, also can improve the backup security reliability of communication data.
The embodiment of the invention also discloses a kind of mobile terminal, comprise the device of Fig. 3~Fig. 5 shown in arbitrary.The mobile terminal that the embodiment of the present invention provides can be the mobile terminal devices such as panel computer, smart mobile phone.The 26S Proteasome Structure and Function of this device can, referring to the associated description of the arbitrary illustrated embodiment of Fig. 3~Fig. 5, be not repeated herein.It should be noted that, the terminal of the present embodiment can be applicable in said method.
As shown in Figure 6A, the embodiment of the invention also discloses a kind of communication data standby system, as shown in Figure 6A, it is the structural representation of a kind of communication data standby system of providing of the embodiment of the present invention, the communication data standby system that the embodiment of the present invention provides can comprise: mobile terminal 61 and back-up terminals 62, wherein, device in mobile terminal 61 illustrated embodiment as arbitrary in Fig. 3~5, mobile terminal 61 is including, but not limited to panel computer, the mobile terminal devices such as smart mobile phone, back-up terminals 61 is including, but not limited to desktop computer, the personal computers such as notebook computer.Wherein, in Fig. 6 A only with desktop computer for having exemplified back-up terminals 61, can also be notebook computer etc., be not specifically subject to the restriction of the embodiment of the present invention.Further alternative, the communication data standby system that the embodiment of the present invention provides can also comprise: server 63, wherein, server 63 can be the server of the instant messaging application program in mobile terminal 61.
Further, as shown in Figure 6B, it is the concrete schematic diagram of a kind of communication data standby system of providing of the embodiment of the present invention, mobile terminal 61 ' is a mobile phone, 601 for being arranged on the display page of an instant messaging application program in mobile terminal 61 ', " starting backup " button in user-operable 601 or " starting to recover " button, thus mobile terminal can detect backup request or recovery request.Back-up terminals 62 ' is a notebook computer, and 602 for being arranged on the display page of the computer house keeper client in back-up terminals 62 '.Back-up terminals 62 ' can communicate to connect with computer housekeeper service device 64, and mobile terminal 61 ' can communicate to connect with the server of instant messaging application program 63 '.The server 63 ' of instant messaging application program also can communicate with computer housekeeper service device 64.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can carry out the hardware that instruction is relevant by computer program to complete, described program can be stored in a computer read/write memory medium, this program, in the time carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to the claims in the present invention, still belongs to the scope that the present invention is contained.

Claims (10)

1. a communication data backup method, is characterized in that, described method comprises:
Mobile terminal, in the time receiving user to the backup request of communication data, obtains the backup listening port of the instant messaging application program that described communication data is corresponding, and connects by described backup listening port and back-up terminals;
Described mobile terminal and described back-up terminals are carried out authentication;
Described mobile terminal, when by described authentication, sends communication data to described back-up terminals, so that described back-up terminals is carried out back-up storage to described communication data.
2. the method for claim 1, is characterized in that, described in obtain the backup listening port of the instant messaging application program that described communication data is corresponding, and connect and comprise by described backup listening port and back-up terminals:
The connection authentication information that described in described acquisition for mobile terminal, back-up terminals generates, described connection authentication information comprises described backup listening port;
The server that the described connection authentication information getting is sent to described instant messaging application program by described mobile terminal authenticates, so that the server of described instant messaging application program sends and connects instruction to described mobile terminal when by described certification;
Described mobile terminal is set up wireless connections according to described connection instruction by described backup listening port and described back-up terminals.
3. the method for claim 1, is characterized in that, described connection authentication information comprises: the 2 D code information that described back-up terminals generates.
4. the method for claim 1, is characterized in that, described mobile terminal and described back-up terminals are carried out authentication and comprised:
The first authorization information that described in described acquisition for mobile terminal, the server of instant messaging application program issues; Described the first authorization information comprises the account identification of described instant messaging application program;
Described mobile terminal sends described the first authorization information to described back-up terminals, so that described back-up terminals, in the time of the certification by described the first authorization information, is generated the second authorization information and described the second authorization information is sent to described mobile terminal by described account identification;
Described mobile terminal verifies described the second authorization information, in the time of the checking by described the second authorization information, determines that described mobile terminal is by described authentication, and returns and be verified response to described back-up terminals.
5. the method for claim 1, is characterized in that, described communication data comprises the mark of described communication data;
Described after described back-up terminals sends communication data, described method also comprises:
Described mobile terminal sends the recovery request of the mark of carrying described communication data to described back-up terminals;
Described mobile terminal receives the communication data of the mark correspondence of the described communication data that described back-up terminals returns according to described recovery request;
Described mobile terminal recovers the described communication data receiving.
6. a communication data back-up device, is characterized in that, described device comprises:
Link block, in the time receiving user to the backup request of communication data, obtains the backup listening port of the instant messaging application program that described communication data is corresponding, and connects by described backup listening port and back-up terminals;
Authentication module, for carrying out authentication with described back-up terminals;
Sending module, in the time that described authentication module is verified, sends communication data to described back-up terminals, so that described back-up terminals is carried out back-up storage to described communication data.
7. device as claimed in claim 6, is characterized in that, described link block comprises:
Authentication information acquiring unit, the connection authentication information generating for obtaining described back-up terminals, described connection authentication information comprises described backup listening port;
Authentication information transmitting element, authenticate for the server that the described connection authentication information getting is sent to described instant messaging application program, so that the server of described instant messaging application program sends and connects instruction to described mobile terminal when by described certification;
Linkage unit, for setting up wireless connections according to described connection instruction by described backup listening port and described back-up terminals.
8. device as claimed in claim 6, is characterized in that, described connection authentication information comprises: the 2 D code information that described back-up terminals generates.
9. device as claimed in claim 6, is characterized in that, described authentication module comprises:
Authorization information acquiring unit, the first authorization information issuing for obtaining the server of described instant messaging application program; Described the first authorization information comprises the account identification of described instant messaging application program;
Authorization information transmitting element, for sending described the first authorization information to described back-up terminals, so that described back-up terminals, in the time of the certification by described the first authorization information, is generated the second authorization information and described the second authorization information is sent to described mobile terminal by described account identification;
Authentication unit, for described the second authorization information is verified, in the time of the checking by described the second authorization information, determines that described mobile terminal is by described authentication, and returns and be verified response to described back-up terminals.
10. device as claimed in claim 6, is characterized in that, described communication data comprises the mark of described communication data;
Described device also comprises: receiver module and data recovery module;
Described sending module, also for sending the recovery request of the mark of carrying described communication data to back-up terminals;
Described receiver module, for receiving the communication data of mark correspondence of the described communication data that described back-up terminals returns according to described recovery request;
Described data recovery module, recovers for the communication data that described receiver module is received.
CN201410421714.XA 2014-08-25 2014-08-25 A kind of communication data backup method and device Active CN104202185B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410421714.XA CN104202185B (en) 2014-08-25 2014-08-25 A kind of communication data backup method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410421714.XA CN104202185B (en) 2014-08-25 2014-08-25 A kind of communication data backup method and device

Publications (2)

Publication Number Publication Date
CN104202185A true CN104202185A (en) 2014-12-10
CN104202185B CN104202185B (en) 2015-10-28

Family

ID=52087415

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410421714.XA Active CN104202185B (en) 2014-08-25 2014-08-25 A kind of communication data backup method and device

Country Status (1)

Country Link
CN (1) CN104202185B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104656637A (en) * 2015-01-15 2015-05-27 深圳市元征软件开发有限公司 Method and system for backing up data of automobile diagnostic equipment
CN105263194A (en) * 2015-09-18 2016-01-20 北京金山安全软件有限公司 Method and device for establishing communication connection between mobile equipment and fixed equipment
CN105260269A (en) * 2015-11-02 2016-01-20 广东欧珀移动通信有限公司 Backup method and device as well as terminal for chatting records
WO2016177220A1 (en) * 2015-08-28 2016-11-10 中兴通讯股份有限公司 Instant message information storage method and device
CN106331370A (en) * 2016-09-14 2017-01-11 广东欧珀移动通信有限公司 Data transmission method and terminal device
CN106412311A (en) * 2016-10-19 2017-02-15 广东欧珀移动通信有限公司 Data transmission method and terminal device
CN107402840A (en) * 2016-05-20 2017-11-28 西安中兴新软件有限责任公司 The method and mobile terminal of data backup
CN107659492A (en) * 2017-10-31 2018-02-02 珠海信达九州科技有限公司 A kind of high reliability instant communicating system
WO2018049912A1 (en) * 2016-09-14 2018-03-22 广东欧珀移动通信有限公司 Data transmission method and related devices
WO2018049896A1 (en) * 2016-09-14 2018-03-22 广东欧珀移动通信有限公司 Data transmission method and device
CN107979689A (en) * 2017-11-03 2018-05-01 刘珉恺 One kind tangles mobile phone pair
CN108319825A (en) * 2017-01-17 2018-07-24 中兴通讯股份有限公司 A kind of data transmission method and terminal
CN109450777A (en) * 2018-12-28 2019-03-08 苏州开心盒子软件有限公司 Session information extracting method, device, equipment and medium
CN113641535A (en) * 2021-07-09 2021-11-12 荣耀终端有限公司 Data backup system, data backup method, electronic device, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155149A (en) * 2006-09-27 2008-04-02 腾讯科技(深圳)有限公司 Message record backup method and system
CN101198129A (en) * 2007-12-26 2008-06-11 腾讯科技(深圳)有限公司 Mobile terminal and its data synchronization method
CN102638565A (en) * 2012-02-27 2012-08-15 无锡华赛信息技术有限公司 Mobile phone cloud encryption backup and recovery method based on cloud architecture
CN103546435A (en) * 2012-07-13 2014-01-29 中兴通讯股份有限公司 Data synchronizing method and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155149A (en) * 2006-09-27 2008-04-02 腾讯科技(深圳)有限公司 Message record backup method and system
CN101198129A (en) * 2007-12-26 2008-06-11 腾讯科技(深圳)有限公司 Mobile terminal and its data synchronization method
CN102638565A (en) * 2012-02-27 2012-08-15 无锡华赛信息技术有限公司 Mobile phone cloud encryption backup and recovery method based on cloud architecture
CN103546435A (en) * 2012-07-13 2014-01-29 中兴通讯股份有限公司 Data synchronizing method and server

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104656637A (en) * 2015-01-15 2015-05-27 深圳市元征软件开发有限公司 Method and system for backing up data of automobile diagnostic equipment
CN104656637B (en) * 2015-01-15 2017-07-21 深圳市元征软件开发有限公司 The method and system of backup automotive diagnostic installation data
WO2016177220A1 (en) * 2015-08-28 2016-11-10 中兴通讯股份有限公司 Instant message information storage method and device
CN106487643B (en) * 2015-08-28 2021-03-09 中兴通讯股份有限公司 Information storage method and device for instant messaging
CN106487643A (en) * 2015-08-28 2017-03-08 中兴通讯股份有限公司 A kind of information storage means of instant messaging and device
CN105263194A (en) * 2015-09-18 2016-01-20 北京金山安全软件有限公司 Method and device for establishing communication connection between mobile equipment and fixed equipment
CN105260269A (en) * 2015-11-02 2016-01-20 广东欧珀移动通信有限公司 Backup method and device as well as terminal for chatting records
CN107402840A (en) * 2016-05-20 2017-11-28 西安中兴新软件有限责任公司 The method and mobile terminal of data backup
WO2018049896A1 (en) * 2016-09-14 2018-03-22 广东欧珀移动通信有限公司 Data transmission method and device
CN106331370B (en) * 2016-09-14 2019-02-05 Oppo广东移动通信有限公司 A kind of data transmission method and terminal device
WO2018049893A1 (en) * 2016-09-14 2018-03-22 广东欧珀移动通信有限公司 Data transmission method and terminal device
WO2018049912A1 (en) * 2016-09-14 2018-03-22 广东欧珀移动通信有限公司 Data transmission method and related devices
CN106331370A (en) * 2016-09-14 2017-01-11 广东欧珀移动通信有限公司 Data transmission method and terminal device
CN106412311B (en) * 2016-10-19 2019-08-16 Oppo广东移动通信有限公司 A kind of data transmission method and terminal device
CN106412311A (en) * 2016-10-19 2017-02-15 广东欧珀移动通信有限公司 Data transmission method and terminal device
CN108319825A (en) * 2017-01-17 2018-07-24 中兴通讯股份有限公司 A kind of data transmission method and terminal
WO2018133594A1 (en) * 2017-01-17 2018-07-26 中兴通讯股份有限公司 Data transmission method and terminal
CN108319825B (en) * 2017-01-17 2021-08-06 中兴通讯股份有限公司 Data transmission method and terminal
CN107659492A (en) * 2017-10-31 2018-02-02 珠海信达九州科技有限公司 A kind of high reliability instant communicating system
CN107979689A (en) * 2017-11-03 2018-05-01 刘珉恺 One kind tangles mobile phone pair
CN109450777A (en) * 2018-12-28 2019-03-08 苏州开心盒子软件有限公司 Session information extracting method, device, equipment and medium
CN109450777B (en) * 2018-12-28 2021-09-17 苏州开心盒子软件有限公司 Session information extraction method, device, equipment and medium
CN113641535A (en) * 2021-07-09 2021-11-12 荣耀终端有限公司 Data backup system, data backup method, electronic device, and storage medium
CN113641535B (en) * 2021-07-09 2022-10-25 荣耀终端有限公司 Data backup system, data backup method, electronic device, and storage medium

Also Published As

Publication number Publication date
CN104202185B (en) 2015-10-28

Similar Documents

Publication Publication Date Title
CN104202185B (en) A kind of communication data backup method and device
US10733603B2 (en) Method and apparatus for facilitating electronic payments using a wearable device
US20200322170A1 (en) Identity Authentication Method and System, and Computing Device
CN105515783B (en) Identity identifying method, server and certification terminal
CN102916869B (en) Instant messaging method and system
CN109951295B (en) Key processing and using method, device, equipment and medium
CN104144419A (en) Identity authentication method, device and system
CN103701977A (en) Portable electronic device, communication system and information authentication method
CN109525392B (en) eID film sticking card, mobile terminal equipment and eID authentication system
CN103916848A (en) Data backup and recovery method and system for mobile terminal
CN107615294A (en) A kind of identifying code short message display method and mobile terminal
CN103780609A (en) Cloud data processing method and device and cloud data security gateway
CN103780620A (en) Network security method and network security system
CN109005144B (en) Identity authentication method, equipment, medium and system
EP4037250A1 (en) Message transmitting system with hardware security module
CN106101188B (en) A kind of data processing method of network cloud USB flash disk
WO2017044677A1 (en) Method and apparatus for facilitating electronic payments using a wearable device
CN112383914B (en) Password management method based on secure hardware
CN112987942A (en) Method, device and system for inputting information by keyboard, electronic equipment and storage medium
CN115129518B (en) Backup and recovery method, device, equipment and medium for TEE (trusted execution environment) internal storage data
CN101778117B (en) Network storing and processing method, device and wireless terminal
WO2014089968A1 (en) Virtual machine system data encryption method and device
CN113778749B (en) Data backup method and electronic equipment
CN101330685B (en) Method for ciphering and transmitting short message
CN102026182A (en) Safety control method and system of mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20160105

Address after: The South Road in Guangdong province Shenzhen city Fiyta building 518057 floor 5-10 Nanshan District high tech Zone

Patentee after: Shenzhen Tencent Computer System Co., Ltd.

Address before: Shenzhen Futian District City, Guangdong province 518000 Zhenxing Road, SEG Science Park 2 East Room 403

Patentee before: Tencent Technology (Shenzhen) Co., Ltd.