Method and device for identifying contact information change, related equipment and storage medium
By transmitting the change information between the first server and the terminal, and using the preset database to determine the user identification, the problem of number changing owners caused by the loss or change of the SIM card is solved, timely updating of contact information and number change management are realized, and the cost is reduced Operators’ inquiry volume and complaint risk.
Patent Information
- Application Number
- CN202310200224.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-27
- Publication Date
- 2024-08-27
AI Technical Summary
Due to the problem of mobile phone number changes due to SIM card loss or operator change, the contacts of the original number cannot be updated in time, resulting in redundant address books and the possibility of harassment of the new owner, which increases the number of inquiries and the risk of complaints to the operator.
By transmitting change information between the first server and the terminal, using a preset database to determine the user identification, and sending a change notification to the user terminal, the contact information is ensured to be updated in a timely manner, and number change monitoring and status change notification of the contact information are implemented.
It achieves timely updating of contact information, reduces address book redundancy and harassment, reduces the operator's consultation volume and risk of complaints, and improves the management efficiency of number changes.
Smart Images

Figure CN118555072A
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method, apparatus, related equipment and storage medium for identifying changes in contact information. Background Art
[0002] At present, with the rapid development of mobile terminals and mobile communication networks, mobile terminals such as mobile phones and smart watches have become indispensable electronic products in people's daily lives, and interconnection is achieved based on the Subscriber Identity Module (SIM) card in the mobile terminal. Due to reasons such as SIM card loss and change of operator, the user cancels the SIM card and no longer uses the mobile phone number corresponding to the SIM card. The mobile phone number will be resold by the operator, causing the mobile phone number to change hands. People who have previously added the mobile phone number to the address book (mobile phone / SIM card) cannot know that the mobile phone number has been cancelled or changed hands, and still retain the original contact information, resulting in the inability to update the address book in real time, resulting in redundant address book information, and it is also possible to cause unnecessary harassment to the new owner of the mobile phone number, resulting in an increase in consultation volume and the risk of complaints to the operator. Summary of the invention
[0003] To solve the related technical problems, the embodiments of the present application provide a method, apparatus, related equipment and storage medium for identifying changes in contact information.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] The embodiment of the present application provides a method for identifying contact information changes, which is applied to a first server and includes:
[0006] receiving first information sent by a second server; the first information includes change information corresponding to a change in the state of at least one terminal; the change information includes at least a communication number corresponding to a change in the state of each terminal;
[0007] Determine to add at least one user identifier corresponding to the communication number based on the communication number and a preset database; the preset database stores a correspondence between a preset communication number and a user identifier corresponding to the preset communication number;
[0008] The change information is sent to each terminal corresponding to the user identification; the change information is used to notify each terminal corresponding to the user identification that the contact information corresponding to the communication number stored in the terminal has changed.
[0009] In the above solution, the first information also includes summary information related to the communication number generated based on the change information; the change information also includes the change time and change identifier corresponding to the communication number; the method also includes:
[0010] Verifying the integrity of the change information using the summary information to obtain a verification result of the change information;
[0011] If the verification result indicates that the change information verification is successful, generating a summary of the changed communication number corresponding to each terminal based on the communication number, the change time and the change identifier;
[0012] The summary information of the changed communication number is sent to each terminal corresponding to the user identification; the summary information of the changed communication number is used to verify the integrity of the change information, so that if the change information verification is successful, the terminal corresponding to each user identification is notified based on the change information to update the contact information status corresponding to the communication number.
[0013] In the above solution, the first information also includes first encrypted information obtained by encrypting the change information and the summary information, and the method further includes:
[0014] The first encrypted information is decrypted using a first preset algorithm to obtain the decrypted change information and the summary information.
[0015] In the above scheme, the method further comprises:
[0016] Encrypting the change information and the summary information of the changed communication number to obtain second encrypted information after the change information and the summary information of the changed communication number are encrypted;
[0017] The second encrypted information is sent to the terminal corresponding to each of the user identifiers; the second encrypted information is used for decryption by the terminal corresponding to each of the user identifiers to obtain the decrypted change information and the changed communication number summary information.
[0018] In the above solution, before receiving the first information sent by the second server, the method further includes:
[0019] Receiving first user information and second information sent by each of the terminals; the first user information includes information related to adding and / or modifying contacts in the address book; the second information includes contact summary information; the contact summary information includes adding a contact summary and / or modifying a contact summary;
[0020] Verifying the integrity of the first user information using the second information;
[0021] When the first user information is successfully verified, the first user information and the second information are stored in the preset database.
[0022] In the above scheme, the method further comprises:
[0023] receiving third encrypted information sent by each of the terminals;
[0024] The third encrypted information is decrypted using a third preset algorithm to obtain decrypted first user information and second information.
[0025] In the above scheme, the method further comprises:
[0026] Determine first request information based on the first user information and the second information; the first request information includes a number change monitoring request;
[0027] The first request information is sent to the second server; the first request information is used to query the online user identifier corresponding to the communication number in the first user information to generate the second user information.
[0028] In the above solution, the first user information also includes information related to deleting address book contacts; the contact summary information also includes a deleted contact summary; and the method further includes:
[0029] receiving a contact deletion summary sent by the at least one terminal;
[0030] Verify the information related to the deleted address book contact using the deleted contact summary;
[0031] In the case where the verification of the information related to the deleted address book contact is successful, generating a number change monitoring summary based on the information related to the deleted address book contact;
[0032] Send the number change monitoring summary to the second server.
[0033] In the above scheme, the method further comprises:
[0034] receiving a result corresponding to the deletion of monitoring information sent by the second server; the monitoring information is information corresponding to the number change monitoring summary;
[0035] In the case where the result indicates that the monitoring information is successfully deleted, the information corresponding to the number change monitoring summary in the preset database is deleted.
[0036] The embodiment of the present application also provides a method for identifying contact information changes, which is applied to a terminal and includes:
[0037] receiving change information sent by the first server; the change information is obtained when the state of at least one terminal changes; the change information at least includes a corresponding communication number when the state of each terminal changes;
[0038] Based on the change information, it is determined that there is a change in the contact information corresponding to the communication number.
[0039] In the above scheme, the method further comprises:
[0040] Receiving summary information of the changed communication number sent by the first server;
[0041] Verifying the integrity of the change information using the change communication number summary information;
[0042] When the change information is successfully verified, the contact information status is updated based on the change information.
[0043] In the above scheme, the method further comprises:
[0044] receiving the change information and the second encrypted information encrypted by the summary information of the changed communication number sent by the first server;
[0045] The second encrypted information is decrypted using a second preset algorithm to obtain the decrypted change information and the changed communication number summary information.
[0046] In the above solution, before receiving the change information sent by the first server, the method further includes:
[0047] Acquire first user information input by a user; the first user information includes information related to adding and / or modifying a contact in the address book;
[0048] Generate second information based on the first user information; the second information includes contact summary information; the contact summary information includes adding a contact summary and / or modifying a contact summary;
[0049] The first user information and the second information are sent to the first server; the second information is used to verify the first user information, so that when the first user information is successfully verified, the first user information and the second information are stored in a preset database in the first server.
[0050] In the above scheme, the method further comprises:
[0051] Encrypting the first user information and the second information to obtain third encrypted information obtained by encrypting the first user information and the second information;
[0052] The third encrypted information is sent to the first server; the third encrypted information is used for decryption by the first server to obtain the decrypted first user information and second information.
[0053] In the above solution, the first user information also includes information related to deleting address book contacts; the contact summary information also includes a deleted contact summary; and the method further includes:
[0054] The contact deletion summary is sent to the first server; the contact deletion summary is used to verify the information related to the deleted address book contact, and when the verification of the information related to the deleted address book contact is successful, a number change monitoring summary is generated based on the information related to the deleted address book contact.
[0055] The embodiment of the present application also provides a method for identifying contact information changes, which is applied to a second server and includes:
[0056] When a change in the status of a communication number of at least one terminal is monitored, a first message is sent to a first server; the first message includes change information corresponding to the change in the status of the at least one terminal; the change information includes at least the communication number corresponding to the change in the status of each of the terminals; the communication number is used by the second server to determine to add at least one user identifier corresponding to the communication number, so that the change information is sent to the terminal corresponding to each of the user identifiers.
[0057] In the above scheme, the method further comprises:
[0058] receiving a first request message sent by the first server; the first request message is determined based on first user information and second information; the first user information includes information related to adding and / or modifying a contact in the address book; the second information includes contact summary information; the contact summary information includes adding a contact summary and / or modifying a contact summary; the first request message includes a number change monitoring request;
[0059] Using the first request information to query the online user identifier corresponding to the communication number in the first user information;
[0060] The communication number and the online user identification in the first user information are sent to the first server; the communication number and the online user identification in the first user information are used to be stored in a preset database in the first server.
[0061] In the above solution, the first user information also includes information related to deleting address book contacts; the contact summary information also includes a deleted contact summary; and the method further includes:
[0062] Receiving a number change monitoring summary sent by the first server; the number change monitoring summary is generated based on the information related to the deleted address book contact;
[0063] Querying the monitoring information corresponding to the number change monitoring summary in a preset number change monitoring database, and deleting the monitoring information;
[0064] Sending a result corresponding to the deletion of the monitoring information to the first server; the result is used to indicate that when the monitoring information is successfully deleted, the first server deletes the information corresponding to the number change monitoring summary in the preset database.
[0065] The embodiment of the present application further provides a device for identifying contact information changes, which is arranged on a terminal and includes:
[0066] A sending unit, configured to send first information to a network device; the first information includes first motion parameter information of a first action of a user on the terminal at a first moment or second motion parameter information corresponding to a second action of the user on the terminal at a second moment predicted based on the first motion parameter information;
[0067] a receiving unit, configured to receive second information sent by the network device; the second information is information after image rendering is performed on the second action based on the first motion parameter information or the second motion parameter information;
[0068] A display unit is configured to display, at the second moment, an image corresponding to the second action based on the second information.
[0069] The embodiment of the present application further provides a device for identifying contact information changes, which is set on a first server and includes:
[0070] A first receiving unit is used to receive first information sent by a second server; the first information includes change information corresponding to a change in the state of at least one terminal; the change information at least includes a communication number corresponding to a change in the state of each terminal;
[0071] A first determining unit, configured to determine, based on the communication number and a preset database, to add at least one user identifier corresponding to the communication number; the preset database stores a correspondence between a preset communication number and a user identifier corresponding to the preset communication number;
[0072] The first sending unit is used to send the change information to the terminal corresponding to each user identifier; the change information is used to notify each terminal corresponding to the user identifier that there is a change in the contact information corresponding to the communication number stored in the terminal.
[0073] The embodiment of the present application further provides a device for identifying contact information changes, which is arranged on a terminal and includes:
[0074] A second receiving unit is used to receive change information sent by the first server; the change information is obtained when the state of at least one terminal changes; the change information at least includes a corresponding communication number when the state of each terminal changes;
[0075] The second determining unit is configured to determine, based on the change information, whether there is a change in the contact information corresponding to the communication number.
[0076] The embodiment of the present application further provides a device for identifying contact information changes, which is arranged on a second server and includes:
[0077] The third sending unit is used to send the first information to the first server when it monitors that the status of the communication number of at least one terminal has changed; the first information includes the change information corresponding to the change of the status of the at least one terminal; the change information at least includes the communication number corresponding to the change of the status of each terminal; the communication number is used by the second server to determine to add at least one user identifier corresponding to the communication number, so that the change information is sent to the terminal corresponding to each user identifier.
[0078] The embodiment of the present application further provides a first server, comprising: a first processor and a first memory for storing a computer program that can be run on the processor,
[0079] Wherein, the first processor is used to execute the steps of any one of the above-mentioned first server-side methods when running the computer program.
[0080] The embodiment of the present application further provides a terminal, comprising: a second processor and a second memory for storing a computer program that can be run on the processor,
[0081] Wherein, the second processor is used to execute the steps of any of the above-mentioned terminal-side methods when running the computer program.
[0082] The embodiment of the present application further provides a second server, comprising: a third processor and a third memory for storing a computer program that can be run on the processor,
[0083] The third processor is used to execute the steps of any one of the above-mentioned methods on the second server side when running the computer program.
[0084] An embodiment of the present application also provides a storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the computer program implements the steps of any of the above-mentioned methods on the first server side, or implements the steps of any of the above-mentioned methods on the terminal side, or implements the steps of any of the above-mentioned methods on the second server side.
[0085] The method, apparatus, related equipment and storage medium for identifying contact information changes provided by the embodiments of the present application include: a first server receiving first information sent by a second server; the first information includes change information corresponding to a change in the state of at least one terminal; the change information includes at least a communication number corresponding to the change in the state of each terminal; based on the communication number and a preset database, at least one user identifier corresponding to the communication number is determined to be added; the preset database stores a correspondence between a preset communication number and a user identifier corresponding to the preset communication number; the change information is sent to a terminal corresponding to each user identifier; the change information is used to notify each terminal corresponding to the user identifier that there is a change in the contact information corresponding to the communication number stored; accordingly; the terminal receives the first The change information sent by the server; the change information is obtained when the state of at least one terminal changes; the change information at least includes the corresponding communication number when the state of each terminal changes; based on the change information, it is determined that the contact information corresponding to the communication number is changed; accordingly; the second server sends the first information to the first server when monitoring the change of the state of at least one terminal; the first information includes the change information corresponding to the change of the state of at least one terminal; the change information at least includes the corresponding communication number when the state of each terminal changes; the communication number is used by the second server to determine to add at least one user identification corresponding to the communication number, so that the change information is sent to the terminal corresponding to each user identification. The technical solution of the present application is adopted, by determining to add at least one user identification corresponding to the communication number based on the communication number and the preset database; sending the change information to the terminal corresponding to each user identification; it is realized that the user who has previously added the communication number to the address book knows that the contact information corresponding to the signal code has changed, so as to update the address book immediately. BRIEF DESCRIPTION OF THE DRAWINGS
[0086] Figure 1 A flowchart of a method for identifying contact information changes for this application;
[0087] Figure 2 This is another flowchart of a method for identifying contact information changes according to an embodiment of the present application;
[0088] Figure 3This is another flowchart of a method for identifying contact information changes according to an embodiment of the present application;
[0089] Figure 4 A schematic diagram of an interaction for adding and / or modifying address book contacts in an embodiment of the present application;
[0090] Figure 5 This is a schematic diagram of an interaction for deleting a contact from a contact list in an embodiment of the present application;
[0091] Figure 6 This is a schematic diagram of an interaction to implement notification of changes to the mobile phone number of a contact in the address book in an embodiment of the present application;
[0092] Figure 7 A schematic diagram of the structure of a device for identifying contact information changes according to an embodiment of the present application;
[0093] Figure 8 This is a schematic diagram of another device structure for identifying contact information changes according to an embodiment of the present application;
[0094] Fig. 9 This is a schematic diagram of another device structure for identifying contact information changes according to an embodiment of the present application;
[0095] Fig.10 This is a schematic diagram of the structure of the first server in the embodiment of the present application;
[0096] Fig.11 This is a schematic diagram of the terminal structure of an embodiment of the present application;
[0097] Fig.12 This is a schematic diagram of the network device structure of an embodiment of the present application;
[0098] Fig.13 A schematic diagram of the system structure for identifying contact information changes in an embodiment of the present application. DETAILED DESCRIPTION
[0099] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0100] At present, with the rapid development of mobile terminals and mobile communication networks, mobile terminals such as mobile phones and smart watches have become indispensable electronic products in people's daily lives, and interconnection is achieved based on the SIM card in the mobile terminal. Due to reasons such as SIM card loss and change of operator, the user cancels the SIM card and no longer uses the mobile phone number corresponding to the SIM card. The mobile phone number will be resold by the operator, resulting in the change of ownership of the mobile phone number. People who have previously added the mobile phone number to the address book (mobile phone / SIM card) have no way of knowing that the mobile phone number has been cancelled or changed, and still retain the original contact information, resulting in the inability to update the address book in real time, resulting in redundant address book information, and it is also possible to cause unnecessary harassment to the new owner of the mobile phone number, resulting in an increase in consultations and complaints to the operator.
[0101] In actual applications, for example, user A changes his number, user B and user C both store user A's original number, and user B is in user A's address book (limited coverage), while user C is not in user A's address book (large coverage). At this time, only user B can receive user A's number change notification, while user C cannot.
[0102] Based on this, in various embodiments of the present application, number change monitoring is initiated by the user when adding and / or modifying contact information. When the user adds and / or modifies address book contacts, the address book localization service and the address book cloud service cooperate with each other to securely send the mobile phone number that needs to be monitored for number change (i.e., the mobile phone number of the added or modified address book contact) to the operator number service, which monitors the status of the mobile phone number; when the monitored mobile phone number undergoes status changes such as cancellation or change of ownership, the operator number service securely synchronizes the relevant situation to the address book cloud service and the address book localization service, and the address book localization service adds an invalidation label and reason to the monitored mobile phone number.
[0103] The embodiment of the present application provides a method for identifying contact information changes, which is applied to a first server. Figure 1 A flowchart of a method for identifying contact information changes is provided for this application; Figure 1 As shown, the method includes:
[0104] Step 101: receiving first information sent by a second server; the first information includes change information corresponding to a change in the state of at least one terminal; the change information includes at least a corresponding communication number when the state of each terminal changes;
[0105] Step 102: Determine to add at least one user identifier corresponding to the communication number based on the communication number and a preset database; the preset database stores a correspondence between preset communication numbers and user identifiers corresponding to the preset communication numbers;
[0106] Step 103: Send the change information to each terminal corresponding to the user identifier; the change information is used to notify each terminal corresponding to the user identifier that the contact information corresponding to the communication number stored in the terminal has changed.
[0107] In this embodiment, the first server, the second server and the terminal can all be determined according to actual conditions and are not limited here. As an example, the terminal can include an address book localization service; the terminal can be a user terminal, such as a mobile phone; the first server can be a cloud server, and in actual applications, the cloud server can include an address book cloud server; the second server can be a general server, and in actual applications, the general server can include an operator code number server.
[0108] In step 101, the first information may be determined according to actual conditions and is not limited here. As an example, the first information may include change information corresponding to a change in the state of the communication number of at least one terminal, summary information related to the communication number generated based on the change information, etc.
[0109] The first information includes the corresponding change information when the state of at least one terminal changes, which can be understood as the first information includes the corresponding change information when the state of one terminal changes or the corresponding change information when the states of multiple terminals change. Among them, the change in the state of the terminal can be determined according to the actual situation, which is not limited here. As an example, the change in the state of the terminal may include the cancellation of the communication number of the terminal, the change of the user information of the terminal, etc. The change information can also be determined according to the actual situation, which is not limited here. As an example, the change information may include the corresponding communication number, change time, change identifier, etc. when the state of each terminal changes; wherein, the change identifier can be used to distinguish different state changes such as cancellation and user information change.
[0110] The change information at least includes the corresponding communication number when the status of each terminal changes. It can be understood that the change information at least includes the corresponding communication number when the communication number of the terminal is cancelled and the user information of the terminal is changed; wherein, the communication number can be determined according to the actual situation and is not limited here. As an example, the communication number can include a mobile phone number. In actual applications, the mobile phone number can be recorded as PhoneNumber.
[0111] In one embodiment, the first information further includes summary information related to the communication number generated based on the change information; the change information further includes the change time and change identifier corresponding to the communication number; and the method further includes:
[0112] Verifying the integrity of the change information using the summary information to obtain a verification result of the change information;
[0113] If the verification result indicates that the change information verification is successful, generating a summary of the changed communication number corresponding to each terminal based on the communication number, the change time and the change identifier;
[0114] The summary information of the changed communication number is sent to each terminal corresponding to the user identification; the summary information of the changed communication number is used to verify the integrity of the change information, so that if the change information verification is successful, the terminal corresponding to each user identification is notified based on the change information to update the contact information status corresponding to the communication number.
[0115] In this embodiment, the summary information related to the communication number generated based on the change information can be understood as processing the change information using a preset security algorithm to generate summary information related to the communication number; wherein the preset security algorithm and the summary information can be determined according to actual conditions, and are not limited here. As an example, the preset security algorithm may include a secure hash algorithm, such as SM3, SHA256, etc. The summary information may include a summary of the changed mobile phone number list.
[0116] The change information also includes the change time and change identifier corresponding to the communication number; wherein the change identifier can be used to distinguish different status changes such as deregistration and user information change; the change time can also be called update time. In practical applications, the change time can be recorded as UpdateTime; the change identifier can be recorded as Identifier.
[0117] Using the summary information to verify the integrity of the change information and obtaining the verification result of the change information can be understood as using the summary information to verify the integrity of the change information and obtaining a verification result of successful or unsuccessful verification of the change information.
[0118] Generating the summary information of the changed communication number corresponding to each terminal based on the communication number, the change time and the change identifier can be processing the communication number, the change time and the change identifier using a preset security algorithm to generate the summary information of the changed communication number corresponding to each terminal. The preset security algorithm can be determined according to actual conditions and is not limited here. As an example, the preset security algorithm can include SM3, SHA256, etc.; the processing process can be understood as a calculation process.
[0119] The summary information of the changed communication number is used to verify the integrity of the changed information, which can be understood as being based on security considerations; in the case where the change information verification is successful, the terminal corresponding to each user identifier is notified based on the change information to update the contact information status corresponding to the communication number, which can be understood as after the change information verification is passed, based on the received changed mobile phone number, update time and change identifier, updating the contact information corresponding to the mobile phone number for the user, adding a mobile phone number invalidation label and reason for the changed mobile phone number, and updating the time.
[0120] In one embodiment, the first information further includes first encrypted information obtained by encrypting the change information and the summary information, and the method further includes:
[0121] The first encrypted information is decrypted using a first preset algorithm to obtain the decrypted change information and the summary information.
[0122] In this embodiment, the first preset algorithm can be determined according to actual conditions and is not limited here. As an example, the first preset algorithm can include SM4, AES and other algorithms.
[0123] In one embodiment, the method further comprises:
[0124] Encrypting the change information and the summary information of the changed communication number to obtain second encrypted information after the change information and the summary information of the changed communication number are encrypted;
[0125] The second encrypted information is sent to the terminal corresponding to each of the user identifiers; the second encrypted information is used for decryption by the terminal corresponding to each of the user identifiers to obtain the decrypted change information and the changed communication number summary information.
[0126] In this embodiment, the change information and the changed communication number summary information are encrypted to obtain the second encrypted information after the change information and the changed communication number summary information are encrypted. This can be understood as using a preset encryption algorithm to encrypt the change information and the changed communication number summary information to obtain the second encrypted information after the change information and the changed communication number summary information are encrypted; wherein, the preset encryption algorithm can be determined according to actual conditions and is not limited here. As an example, the preset encryption algorithm can include SM4, AES and other algorithms.
[0127] In step 102, the preset database can be determined according to actual conditions, which is not limited here. As an example, the preset database can be understood as a storage space for storing data in the first server. The preset database stores the correspondence between the preset communication number and the user identifier corresponding to the preset communication number; wherein the correspondence can be determined according to actual conditions, which is not limited here. As an example, the correspondence can include a one-to-one relationship or a one-to-many relationship; for example, a one-to-one correspondence between the preset communication number and the user identifier or a one-to-many relationship between the preset communication number and the user identifier.
[0128] Determining to add at least one user identifier corresponding to the communication number based on the communication number and a preset database may be understood as searching the preset database for adding at least one user identifier corresponding to the communication number.
[0129] In step 103, the change information is sent to the terminal corresponding to each of the user identifiers so that the user knows that there is a change in the contact information corresponding to the communication number stored in the terminal and can take corresponding measures, thereby preventing people who have previously added the mobile phone number to the address book (mobile phone / SIM card) from not knowing that the mobile phone number has been cancelled or changed hands, and still retaining the original contact information, resulting in the inability to update the address book in time, causing redundant address book information, and also possibly causing unnecessary harassment to the new owner of the mobile phone number, resulting in the risk of increased consultation and complaints to the operator.
[0130] In one embodiment, before receiving the first information sent by the second server, the method further includes:
[0131] Receiving first user information and second information sent by each of the terminals; the first user information includes information related to adding and / or modifying contacts in the address book; the second information includes contact summary information; the contact summary information includes adding a contact summary and / or modifying a contact summary;
[0132] Verifying the integrity of the first user information using the second information;
[0133] When the first user information is successfully verified, the first user information and the second information are stored in the preset database.
[0134] In this embodiment, the first user information includes information related to adding and / or modifying contacts in the address book, which can be understood as, on the one hand, the first user information can include information related to adding contacts in the address book; on the other hand, the first user information can include information related to modifying contacts in the address book; and on the other hand, the first user information can include information related to adding and modifying contacts in the address book. Among them, the information related to adding and / or modifying contacts in the address book can be determined according to actual conditions, and is not limited here. As an example, the information can include user id, name, mobile phone number, time, etc. In actual applications, the user id can be recorded as UserID; the name can be recorded as Name; the mobile phone number can be recorded as PhoneNumber; and the time can be recorded as Time.
[0135] The contact summary information includes an added contact summary and / or a modified contact summary; wherein the added contact summary can be understood as being generated based on information related to adding a directory contact; and the modified contact summary can be understood as being generated based on information related to modifying a directory contact.
[0136] Using the second information to verify the integrity of the first user information may be to compare the second information with the first user information to obtain a verification result indicating that the first user information is successfully verified or that the first user information is failed to be verified.
[0137] When the first user information is successfully verified, storing the first user information and the second information in the preset database can be understood as storing the first user information and the second information in the preset database when the first user information is successfully verified.
[0138] In one embodiment, the method further comprises:
[0139] receiving third encrypted information sent by each of the terminals;
[0140] The third encrypted information is decrypted using a third preset algorithm to obtain decrypted first user information and second information.
[0141] In this embodiment, the third encrypted information can be determined according to actual conditions, and is not limited here. As an example, the third encrypted information can include information after encrypting the contact information. In practical applications, the information after encrypting the contact information can be understood as encrypting the contact information using a preset algorithm to obtain the third encrypted information; wherein, the preset algorithm can be determined according to actual conditions, and is not limited here. As an example, the preset algorithm can include algorithms such as SM4 and AES.
[0142] The third encrypted information is decrypted using a third preset algorithm to obtain the decrypted first user information and second information; wherein, the third preset algorithm can be determined based on actual conditions and is not limited here. As an example, the third preset algorithm can include SM4, AES and other algorithms.
[0143] In actual applications, the terminal includes an address book localization service; the first server includes an address book cloud service; the address book localization service constructs the add / modify contact information using the user ID, name, mobile phone number, time, and add / modify contact summary, encrypts it (using algorithms such as SM4, AES, etc.), and sends it to the address book cloud service.
[0144] The address book cloud service first decrypts (using SM4, AES and other algorithms) the added / modified contact information.
[0145] In one embodiment, the method further comprises:
[0146] Determine first request information based on the first user information and the second information; the first request information includes a number change monitoring request;
[0147] The first request information is sent to the second server; the first request information is used to query the online user identifier corresponding to the communication number in the first user information to generate the second user information.
[0148] In this embodiment, determining the first request information based on the first user information and the second information can be understood as constructing the first request information based on the first user information and the second information.
[0149] For ease of understanding, here is an example. The address book cloud service constructs a number change monitoring request message using the mobile phone number, time, and a mobile phone number summary generated based on the mobile phone number and time through a secure hash algorithm (SM3, SHA256, etc.), and sends it to the operator number service to query the online user ID of the mobile phone number.
[0150] In one embodiment, the first user information further includes information related to deleting contacts in the address book; the contact summary information further includes a summary of deleted contacts; and the method further includes:
[0151] receiving a contact deletion summary sent by the at least one terminal;
[0152] Verify the information related to the deleted address book contact using the deleted contact summary;
[0153] In the case where the verification of the information related to the deleted address book contact is successful, generating a number change monitoring summary based on the information related to the deleted address book contact;
[0154] Send the number change monitoring summary to the second server.
[0155] In this embodiment, the contact deletion summary can be determined according to actual conditions and is not limited here. As an example, the contact deletion summary can be understood as being generated based on the user ID, mobile phone number and other information of the deleted address book contact. In actual applications, the terminal includes an address book localization service; the first server includes an address book cloud service. The user deletes the address book contact through the address book localization service and clicks Submit. The address book localization service collects the current user ID, and calculates the user ID and mobile phone number based on a secure hash algorithm (SM3, SHA256, etc.) to generate a contact deletion summary. The address book localization service encrypts the user ID, mobile phone number, and contact deletion summary (using algorithms such as SM4, AES, etc.) and sends them to the address book cloud service.
[0156] Using the contact deletion summary to verify the information related to the deleted address book contact can be understood as using the contact deletion summary to verify the information related to the deleted address book contact, and obtaining a verification result of success or failure in verifying the information related to the deleted address book contact.
[0157] The generation of the number change monitoring summary based on the information related to the deleted address book contacts can be understood as using a preset security algorithm to process the information related to the deleted address book contacts to generate a number change monitoring summary. The preset security algorithm can be determined according to actual conditions and is not limited here. As an example, the preset security algorithm can include SM3, SHA256, etc.
[0158] For ease of understanding, an example is given here: the first server includes an address book cloud service; the second server includes an operator code number service; the address book cloud service verifies the integrity of the user ID and mobile phone number by deleting the contact summary (using SM3, SHA256, etc.). After the verification is passed, a deletion and number change monitoring summary is generated for the mobile phone number based on a secure hash algorithm (SM3, SHA256, etc.), and the mobile phone number and deletion and number change monitoring summary are sent to the operator code number service.
[0159] In one embodiment, the method further comprises:
[0160] receiving a result corresponding to the deletion of monitoring information sent by the second server; the monitoring information is information corresponding to the number change monitoring summary;
[0161] In the case where the result indicates that the monitoring information is successfully deleted, the information corresponding to the number change monitoring summary in the preset database is deleted.
[0162] In this embodiment, a result corresponding to the deletion of the monitoring information sent by the second server is received; wherein the result may include a result that the monitoring information is successfully deleted or that the monitoring information is not successfully deleted.
[0163] Deleting the information corresponding to the number change monitoring summary in the preset database may be understood as deleting the information corresponding to the number change monitoring summary in the preset database.
[0164] For ease of understanding, an example is given here in which the first server includes an address book cloud service; the second server includes an operator code number service; the operator code number service generates a message indicating the success or failure of deleting the number change monitoring and sends it to the address book cloud service; the address book cloud service deletes the relevant information corresponding to the user ID and mobile phone number.
[0165] In this embodiment, by determining to add at least one user identifier corresponding to the communication number based on the communication number and a preset database; sending the change information to the terminal corresponding to each user identifier; users who have previously added the communication number to the address book are aware of changes in the contact information corresponding to the signal code, so that the address book can be updated immediately.
[0166] Accordingly, the present application also provides a method for identifying contact information changes. Figure 2 FIG. 1 is another flow chart of a method for identifying contact information changes according to an embodiment of the present application. Figure 2 As shown; applied to the terminal, including:
[0167] Step 201: receiving change information sent by a first server; the change information is obtained when the state of at least one terminal changes; the change information at least includes a corresponding communication number when the state of each terminal changes;
[0168] Step 202: Determine, based on the change information, whether the contact information corresponding to the communication number is changed.
[0169] In this embodiment, the first server and the terminal can be determined according to actual conditions, and are not limited here. As an example, the terminal may include a contact book localization service; the terminal may be a user terminal, such as a mobile phone; the first server may be a cloud server, and in actual applications, the cloud server may include a contact book cloud server;
[0170] In step 201, the change information can also be determined according to actual conditions, which is not limited here. As an example, the change information may include the corresponding communication number, change time, change identifier, etc. when the status of each terminal changes; wherein the change identifier can be used to distinguish different status changes such as logout and user information change.
[0171] The change information at least includes the corresponding communication number when the status of each terminal changes. It can be understood that the change information at least includes the corresponding communication number when the communication number of the terminal is cancelled and the user information of the terminal is changed; wherein, the communication number can be determined according to the actual situation and is not limited here. As an example, the communication number can include a mobile phone number. In actual applications, the mobile phone number can be recorded as PhoneNumber.
[0172] In step 202, determining that the contact information corresponding to the communication number is changed based on the change information can be understood as adding a label to the contact information that is changed based on the change information, and the label can represent the reason why the contact information is changed.
[0173] In one embodiment, the method further comprises:
[0174] Receiving summary information of the changed communication number sent by the first server;
[0175] Verifying the integrity of the change information using the change communication number summary information;
[0176] When the change information is successfully verified, the contact information status is updated based on the change information.
[0177] In this embodiment, it should be noted that the summary information of the changed communication number is generated based on the changed mobile phone number, update time, and change identifier; in actual applications, the changed mobile phone number can be recorded as PhoneNumber; the update time can be recorded as UpdateTime; and the change identifier can be recorded as Identifier.
[0178] Using the changed communication number summary information to verify the integrity of the changed information can be understood as comparing the changed communication number summary information with the changed information to obtain a verification result of success or failure of the changed information verification.
[0179] In the case where the change information verification is successful, updating the contact information status based on the change information can be understood as updating the contact information status in real time using the change information.
[0180] In one embodiment, the method further comprises:
[0181] receiving the change information and the second encrypted information encrypted by the summary information of the changed communication number sent by the first server;
[0182] The second encrypted information is decrypted using a second preset algorithm to obtain the decrypted change information and the changed communication number summary information.
[0183] In this embodiment, the second encrypted information can be understood as being obtained by encrypting the change information and the changed communication number summary information using a preset algorithm; the preset algorithm can be determined based on actual conditions and is not limited here. As an example, the preset algorithm can include SM4, AES and other algorithms.
[0184] The second encrypted information is decrypted using a second preset algorithm to obtain the decrypted change information and the changed communication number summary information; wherein the second preset algorithm can be determined according to actual conditions and is not limited here. As an example, the second preset algorithm can include SM4, AES and other algorithms. In practical applications, there is a corresponding relationship between the encryption algorithm and the decryption algorithm, for example, SM4 is first used for encryption and then SM4 is used for decryption.
[0185] For ease of understanding, an actual application scenario is illustrated here. The address book cloud service encrypts (using SM4, AES and other algorithms) the changed mobile phone number, update time, change identifier and summary of the changed mobile phone number to the address book localization service of each user in the list based on the user ID list of the changed mobile phone number.
[0186] Taking PhoneNumber1 as an example, UserID11, UserID12, ..., UserID1N monitor the number change of this mobile phone number, and use the session key between the address book localization service and the address book cloud service of each user to encrypt the changed mobile phone number PhoneNumber1, update time UpdateTime1, change identifier Identifier1 and the changed mobile phone number summary HMAC (Info_PhoneNumberChange):
[0187] Encrypt(Info_PhoneNumberChange_UserID11)=E SM4 (SK1 UserID11 )(PhoneNumb
[0188] er1||UpdateTime1||Identifier1||HMAC(Info_PhoneNumberChange))
[0189] Encrypt(Info_PhoneNumberChange_UserID12)=E SM4 (SK1 UserID12 )(PhoneNumb
[0190] er1||UpdateTime1||Identifier1||HMAC(Info_PhoneNumberChange))
[0191] …
[0192] Encrypt(Info_PhoneNumberChange_UserID1N)=E SM4 (SK1 UserID1N )(PhoneNum
[0193] ber1||UpdateTime1||Identifier1||HMAC(Info_PhoneNumberChange))
[0194] Among them, SK1 UserID11 SK1 UserID12 ,……,SK1 UserID1N The session keys between the address book localization service and the address book cloud service for UserID11, UserID12, ..., UserID1N respectively; HMAC(Info_PhoneNumberChange)=H SM3(PhoneNumber1||UpdateTime1||Identifier1).
[0195] In one embodiment, before receiving the change information sent by the first server, the method further includes:
[0196] Acquire first user information input by a user; the first user information includes information related to adding and / or modifying a contact in the address book;
[0197] Generate second information based on the first user information; the second information includes contact summary information; the contact summary information includes adding a contact summary and / or modifying a contact summary;
[0198] The first user information and the second information are sent to the first server; the second information is used to verify the first user information, so that when the first user information is successfully verified, the first user information and the second information are stored in a preset database in the first server.
[0199] In this embodiment, the first user information includes information related to adding and / or modifying contacts in the address book, which can be understood as, on the one hand, the first user information can include information related to adding contacts in the address book; on the other hand, the first user information can include information related to modifying contacts in the address book; and on the other hand, the first user information can include information related to adding and modifying contacts in the address book. Among them, the information related to adding and / or modifying contacts in the address book can be determined according to actual conditions, and is not limited here. As an example, the information can include user id, name, mobile phone number, time, etc. In actual applications, the user id can be recorded as UserID; the name can be recorded as Name; the mobile phone number can be recorded as PhoneNumber; and the time can be recorded as Time.
[0200] The contact summary information includes an added contact summary and / or a modified contact summary; wherein the added contact summary can be understood as being generated based on information related to adding a directory contact; and the modified contact summary can be understood as being generated based on information related to modifying a directory contact.
[0201] In one embodiment, the method further comprises:
[0202] Encrypting the first user information and the second information to obtain third encrypted information obtained by encrypting the first user information and the second information;
[0203] The third encrypted information is sent to the first server; the third encrypted information is used for decryption by the first server to obtain the decrypted first user information and second information.
[0204] In this embodiment, encrypting the first user information and the second information to obtain the third encrypted information after the first user information and the second information are encrypted can be understood as using a preset algorithm to encrypt the first user information and the second information to obtain the third encrypted information after the first user information and the second information are encrypted; wherein the preset algorithm can be determined according to actual conditions and is not limited here. As an example, the preset algorithm can include SM4, AES and other algorithms. The third encrypted information may include information after the contact information is encrypted for creation, addition and / or modification.
[0205] In one embodiment, the first user information further includes information related to deleting contacts in the address book; the contact summary information further includes a summary of deleted contacts; and the method further includes:
[0206] The contact deletion summary is sent to the first server; the contact deletion summary is used to verify the information related to the deleted address book contact, and when the verification of the information related to the deleted address book contact is successful, a number change monitoring summary is generated based on the information related to the deleted address book contact.
[0207] In this embodiment, the contact deletion summary can be determined according to actual conditions and is not limited here. As an example, the contact deletion summary can be understood as being generated based on the user ID, mobile phone number and other information of the deleted address book contact. In actual applications, the terminal includes an address book localization service; the first server includes an address book cloud service. The user deletes the address book contact through the address book localization service and clicks Submit. The address book localization service collects the current user ID, and calculates the user ID and mobile phone number based on a secure hash algorithm (SM3, SHA256, etc.) to generate a contact deletion summary. The address book localization service encrypts the user ID, mobile phone number, and contact deletion summary (using algorithms such as SM4, AES, etc.) and sends them to the address book cloud service.
[0208] Accordingly, the present application also provides a method for identifying contact information changes. Figure 3 FIG. 1 is another flow chart of a method for identifying contact information changes according to an embodiment of the present application. Figure 3 As shown; applied to the second server, including:
[0209] Step 301: When a change in the status of a communication number of at least one terminal is monitored, a first message is sent to a first server; the first message includes change information corresponding to the change in the status of the at least one terminal; the change information includes at least the communication number corresponding to the change in the status of each terminal; the communication number is used by the second server to determine to add at least one user identifier corresponding to the communication number, so that the change information is sent to the terminal corresponding to each user identifier.
[0210] In this embodiment, the first server and the second server can be determined according to actual conditions and are not limited here. As an example, the first server can be a cloud server. In actual applications, the cloud server can include an address book cloud server; the second server can be a general server. In actual applications, the general server can include an operator code server.
[0211] In step 101, the first information may be determined according to actual conditions and is not limited here. As an example, the first information may include change information corresponding to a change in the state of the communication number of at least one terminal, summary information related to the communication number generated based on the change information, etc.
[0212] The first information includes the corresponding change information when the state of at least one terminal changes, which can be understood as the first information includes the corresponding change information when the state of one terminal changes or the corresponding change information when the states of multiple terminals change. Among them, the change in the state of the terminal can be determined according to the actual situation, which is not limited here. As an example, the change in the state of the terminal may include the cancellation of the communication number of the terminal, the change of the user information of the terminal, etc. The change information can also be determined according to the actual situation, which is not limited here. As an example, the change information may include the corresponding communication number, change time, change identifier, etc. when the state of each terminal changes; wherein, the change identifier can be used to distinguish different state changes such as cancellation and user information change.
[0213] The change information at least includes the corresponding communication number when the status of each terminal changes. It can be understood that the change information at least includes the corresponding communication number when the communication number of the terminal is cancelled and the user information of the terminal is changed; wherein, the communication number can be determined according to the actual situation and is not limited here. As an example, the communication number can include a mobile phone number. In actual applications, the mobile phone number can be recorded as PhoneNumber.
[0214] For ease of understanding, an actual application scenario is illustrated here. The operator number service (real-time / periodic) monitors that the mobile phone numbers in the number change monitoring list have undergone status changes such as cancellation or user information change, and a list of changed mobile phone numbers is formed by the changed mobile phone numbers, update time, and change identifier (to distinguish between different status changes such as cancellation and user information change).
[0215] In one embodiment, the method further comprises:
[0216] receiving a first request message sent by the first server; the first request message is determined based on first user information and second information; the first user information includes information related to adding and / or modifying a contact in the address book; the second information includes contact summary information; the contact summary information includes adding a contact summary and / or modifying a contact summary; the first request message includes a number change monitoring request;
[0217] Using the first request information to query the online user identifier corresponding to the communication number in the first user information;
[0218] The communication number and the online user identification in the first user information are sent to the first server; the communication number and the online user identification in the first user information are used to be stored in a preset database in the first server.
[0219] In this embodiment, the first user information includes information related to adding and / or modifying contacts in the address book, which can be understood as, on the one hand, the first user information can include information related to adding contacts in the address book; on the other hand, the first user information can include information related to modifying contacts in the address book; and on the other hand, the first user information can include information related to adding and modifying contacts in the address book. Among them, the information related to adding and / or modifying contacts in the address book can be determined according to actual conditions, and is not limited here. As an example, the information can include user id, name, mobile phone number, time, etc. In actual applications, the user id can be recorded as UserID; the name can be recorded as Name; the mobile phone number can be recorded as PhoneNumber; and the time can be recorded as Time.
[0220] The contact summary information includes an added contact summary and / or a modified contact summary; wherein the added contact summary can be understood as being generated based on information related to adding a directory contact; and the modified contact summary can be understood as being generated based on information related to modifying a directory contact.
[0221] For ease of understanding, here is an example to illustrate that the address book cloud service searches for a list of user IDs that have added a changed phone number based on the phone number in the changed phone number list. The address book cloud service encrypts (using algorithms such as SM4 and AES) the changed phone number, update time, change identifier, and a summary of the changed phone number to the address book localization service of the users in the list based on the user ID list of the changed phone number.
[0222] In one embodiment, the first user information further includes information related to deleting contacts in the address book; the contact summary information further includes a summary of deleted contacts; and the method further includes:
[0223] Receiving a number change monitoring summary sent by the first server; the number change monitoring summary is generated based on the information related to the deleted address book contact;
[0224] Querying the monitoring information corresponding to the number change monitoring summary in a preset number change monitoring database, and deleting the monitoring information;
[0225] Sending a result corresponding to the deletion of the monitoring information to the first server; the result is used to indicate that when the monitoring information is successfully deleted, the first server deletes the information corresponding to the number change monitoring summary in the preset database.
[0226] In this embodiment, the contact deletion summary can be determined according to actual conditions and is not limited here. As an example, the contact deletion summary can be understood as being generated based on the user ID, mobile phone number and other information of the deleted address book contact.
[0227] For ease of understanding, here is an example to illustrate that the address book localization service encrypts the user ID, mobile phone number, and contact deletion summary (using algorithms such as SM4 and AES) and sends them to the address book cloud service. The address book cloud service first decrypts the user ID, mobile phone number, and contact deletion summary, verifies the integrity of the user ID and mobile phone number by deleting the contact summary (using SM3, SHA256, etc.), and after the verification is passed, generates a deletion number change monitoring summary for the mobile phone number based on a secure hash algorithm (SM3, SHA256, etc.), and sends the mobile phone number and deletion number change monitoring summary to the operator code service. The operator code service verifies the integrity of the mobile phone number by deleting the number change monitoring summary (using SM3, SHA256, etc.). After the verification is passed, the number change monitoring list is queried by the mobile phone number, and the corresponding monitoring information is deleted, that is, the number change monitoring of the mobile phone number is stopped. The operator code service generates a message of successful deletion number change monitoring, and encrypts it (using algorithms such as SM4 and AES) and sends it to the address book cloud service.
[0228] For better understanding, an actual application scenario is exemplified here, and the previous embodiments can be understood and explained with reference to the actual application scenario. In actual application, the method for identifying changes in contact information is specifically a method for identifying number changes of address book contacts. Number change monitoring is initiated by the user when adding or modifying contact information. When the user adds or modifies an address book contact, the address book localization service and the address book cloud service cooperate with each other to securely send the mobile phone number that needs to be monitored for number change (i.e. the mobile phone number of the added or modified address book contact) to the operator number service, which monitors the status of the mobile phone number; when the monitored mobile phone number undergoes status changes such as cancellation or change of ownership, the operator number service securely synchronizes the relevant situation to the address book cloud service and the address book localization service, and the address book localization service adds an invalidation label and reason to the monitored mobile phone number. For specific content, please refer to the following sections:
[0229] 1. The specific steps to add / modify address book contacts are as follows:
[0230] 1. The user enters the name and mobile phone number of the address book contact through the address book localization service and clicks Submit.
[0231] 2. The address book localization service collects the time when the user submits the information and the current user ID, stores the name, mobile phone number, and time locally, and calculates the user ID, name, mobile phone number, and time based on a secure hash algorithm (SM3, SHA256, etc.) to generate a summary of adding / modifying contacts.
[0232] Taking the SM3 algorithm as an example, the calculation method for adding / modifying contact summary information is as follows:
[0233] HMAC(Info_addOrmodifyContacts)=H SM3 (UserID||Name||PhoneNumber||Time).
[0235] 3. The address book localization service constructs the added / modified contact information using the user ID, name, mobile phone number, time, and added / modified contact summary, encrypts it (using algorithms such as SM4 and AES), and sends it to the address book cloud service.
[0236] Taking the SM4 algorithm as an example, the calculation method for encrypting the added / modified contact information is as follows:
[0237] Encrypt(Info_addOrmodifyContacts)=E SM4 (SK1)(UserID||Name||PhoneNumber
[0238] ||Time||HMAC(Info_addOrmodifyContacts)).
[0239] SK1 is the session key between the local address book service and the cloud address book service.
[0240] 4. The address book cloud service first decrypts the added / modified contact information (using algorithms such as SM4 and AES), verifies the integrity of the user ID, name, mobile phone number, and time by adding / modifying the contact summary (using SM3, SHA256, etc.), and encrypts the above information (using algorithms such as SM4 and AES) for storage after verification.
[0241] Taking the SM4 algorithm as an example, the calculation method for decrypting added / modified contact information is as follows:
[0242] Decrypt(Info_addOrmodifyContacts)=D SM4 (SK1)(Encrypt(Info_addOrmodifyC
[0243] contacts))=UserID||Name||PhoneNumber||Time||HMAC(Info_addOrmodifyContacts).
[0244] Taking the SM3 algorithm as an example, based on the decrypted user ID, name, mobile phone number, and time information, the summary information of adding / modifying contacts is calculated to obtain the following information:
[0245] HMAC2(Info_addOrmodifyContacts)=H SM3 (UserID||Name||PhoneNumber||Tim
[0246] e).
[0247] Compare the received HMAC (Info_addOrmodifyContacts) with the newly calculated HMAC2 (Info_addOrmodifyContacts) to see if they are the same. If they are the same, the integrity verification of the user ID, name, mobile phone number, and time information passes; otherwise, the verification fails and a failure message needs to be returned.
[0248] If the integrity verification passes, the relevant information is encrypted and stored. Taking the SM4 algorithm as an example, the encryption calculation method is as follows:
[0249] Encrypt(Info_Contacts)=E SM4(K)(UserID||Name||PhoneNumber||Time)
[0250] K is the symmetric key between the address book cloud service and is used to encrypt and decrypt the data stored in it.
[0251] 5. The address book cloud service constructs a number change monitoring request message using the mobile phone number, time, and a mobile phone number summary generated based on the mobile phone number and time using a secure hash algorithm (SM3, SHA256, etc.), and sends it to the operator number service to query the online user ID of the mobile phone number.
[0252] Taking the SM3 algorithm as an example, the calculation method of the mobile phone number summary is as follows:
[0253] HMAC(Info_PhoneNumber)=H SM3 (PhoneNumber||Time).
[0254] 6. The operator number service verifies the integrity of the mobile phone number and time through the mobile phone number summary. After the verification is passed, the user name and ID number corresponding to the mobile phone number are queried based on the mobile phone number, and the user name, ID number and mobile phone number are generated through a secure hash algorithm (SM3, SHA256, etc.) to generate the online user ID corresponding to the mobile phone number, and the mobile phone number, time, user name and ID number are added to the number change monitoring list.
[0255] Taking the SM3 algorithm as an example, based on the mobile phone number and time information, the mobile phone number summary is calculated to obtain the following information:
[0256] HMAC2(Info_PhoneNumber)=H SM3 (PhoneNumber||Time).
[0257] Compare the received HMAC (Info_PhoneNumber) with the newly calculated HMAC2 (Info_PhoneNumber) to see if they are the same. If they are the same, the integrity verification of the mobile phone number and time information passes; otherwise, the verification fails and a failure message needs to be returned.
[0258] If the integrity verification passes, taking the SM3 algorithm as an example, the calculation method for generating the online user ID corresponding to the mobile phone number is as follows:
[0259] HMAC(Info_PhoneNumber_OnLine)=H SM3 (Name||IDCardNumber||PhoneNum
[0260] ber).
[0261] An example of the number change monitoring list is shown in Table 1, which is a number change monitoring list:
[0262]
[0263] Table 1
[0264] 7. The operator code service encrypts (using SM4, AES, etc. algorithms) the mobile phone number, the online user ID corresponding to the mobile phone number, and the mobile phone number monitoring information summary generated by the above information through a secure hash algorithm (SM3, SHA256, etc.) and sends it to the address book cloud service.
[0265] Taking the SM3 algorithm as an example, a summary of mobile phone number monitoring information is generated based on the mobile phone number and the online user ID of the mobile phone number, and the following information is obtained:
[0266] HMAC(Info_PhoneNumber_OnlineTrace)=H SM3 (PhoneNumber||HMAC(Info_
[0267] PhoneNumber_OnLine))
[0268] Taking the SM4 algorithm as an example, the calculation method for encrypting the mobile phone number, the online user ID corresponding to the mobile phone number, and the mobile phone number monitoring information summary is as follows:
[0269] Encrypt(Info_PhoneNumber_OnlineTrace)=E SM4 (SK2)(PhoneNumber||HMAC(
[0270] Info_PhoneNumber_OnLine)||HMAC(Info_PhoneNumber_OnlineTrace))
[0271] SK2 is the session key between the operator number service and the address book cloud service.
[0272] 8. The address book cloud service first decrypts the mobile phone number, the online user ID corresponding to the mobile phone number, and the mobile phone number monitoring information summary (using SM4, AES and other algorithms), and verifies the integrity of the mobile phone number and the online user ID corresponding to the mobile phone number through the summary value (using SM3, SHA256, etc.). After the verification is passed, the online user ID corresponding to the mobile phone number and other information (user ID and the name, mobile phone number, and time of the queried contact) are encrypted (using SM4, AES and other algorithms) and stored.
[0273] Taking the SM4 algorithm as an example, the decryption calculation method is as follows:
[0274] Decrypt(Info_PhoneNumber_OnlineTrace)=D SM4 (SK2)(PhoneNumber||HMAC
[0275] (Info_PhoneNumber_OnLine)||HMAC(Info_PhoneNumber_OnlineTrace))=PhoneNumber||HMAC(Info_PhoneNumber_OnLine)||HMAC(Info_PhoneNumber_OnlineTrace).
[0276] Taking the SM3 algorithm as an example, based on the mobile phone number and the online user ID corresponding to the mobile phone number, the mobile phone number monitoring information summary is calculated to obtain the following information:
[0277] HMAC2(Info_PhoneNumber_OnlineTrace)=H SM3 (PhoneNumber||HMAC(Info
[0278] _PhoneNumber_OnLine))
[0279] Compare the received HMAC (Info_PhoneNumber_OnlineTrace) and HMAC2 (Info_PhoneNumber_OnlineTrace) to see if they are the same. If they are the same, the integrity verification of the mobile phone number and the online user ID corresponding to the mobile phone number passes; otherwise, the verification fails and a failure message needs to be returned.
[0280] If the integrity verification passes, the relevant information is encrypted and stored. Taking the SM4 algorithm as an example, the encryption calculation method is as follows:
[0281] Encrypt(Info_Contacts)=E SM4 (K)(UserID||Name||PhoneNumber||Time||HMAC(I
[0282] nfo_PhoneNumber_OnLine))
[0283] K is the symmetric key between the address book cloud service and is used to encrypt and decrypt the data stored in it.
[0284] For ease of understanding, this part can be combined with Figure 4 To understand, Figure 4This is a schematic diagram of the interaction for adding and / or modifying address book contacts in an embodiment of the present application.
[0285] In an embodiment of the present application, when a user adds or modifies an address book contact, the address book localization service and the address book cloud service cooperate with each other to securely send information related to the mobile phone number that needs to be monitored for number change (i.e., the mobile phone number of the added or modified address book contact) to the operator's number service, which monitors the status of the mobile phone number.
[0286] 2. Specific steps to delete contacts in the address book:
[0287] 1. The user deletes the address book contacts through the address book localization service and clicks Submit.
[0288] 2. The address book localization service collects the current user ID, and uses the user ID and mobile phone number to calculate the above content based on a secure hash algorithm (SM3, SHA256, etc.) to generate a summary of deleted contacts.
[0289] Taking the SM3 algorithm as an example, the calculation method for deleting a contact summary is as follows:
[0290] HMAC(Info_deleteContacts)=H SM3 (UserID||PhoneNumber)
[0291] 3. The address book localization service encrypts the user ID, mobile phone number, and deleted contact summary (using SM4, AES, and other algorithms) and sends them to the address book cloud service.
[0292] Taking the SM4 algorithm as an example, the calculation method for encrypting deleted contact information is as follows:
[0293] Encrypt(Info_deleteContacts)=E SM4 (SK1)(UserID||PhoneNumber||HMAC(Info
[0294] _deleteContacts))
[0295] SK1 is the session key between the local address book service and the cloud address book service.
[0296] 4. The address book cloud service first decrypts the user ID, mobile phone number, and deleted contact summary, and verifies the integrity of the user ID and mobile phone number through the deleted contact summary (using SM3, SHA256, etc.). After the verification is passed, a deletion and number change monitoring summary is generated for the mobile phone number based on a secure hash algorithm (SM3, SHA256, etc.), and the mobile phone number and deletion and number change monitoring summary are sent to the operator code service.
[0297] Taking the SM4 algorithm as an example, the calculation method for decrypting deleted information is as follows:
[0298] Decrypt(Info_deleteContacts)=D SM4 (SK1)(UserID||PhoneNumber||HMAC(Info
[0299] _deleteContacts))=UserID||PhoneNumber||HMAC(Info_deleteContacts)
[0300] Taking the SM3 algorithm as an example, based on the decrypted user ID and mobile phone number, the deleted contact summary information is calculated to obtain the following information:
[0301] HMAC2(Info_deleteContacts)=H SM3 (UserID||PhoneNumber)
[0302] Compare the received HMAC (Info_deleteContacts) with the newly calculated HMAC2 (Info_deleteContacts) to see if they are the same. If they are the same, the integrity verification of the user ID and mobile phone number passes; otherwise, the verification fails and a failure message needs to be returned.
[0303] If the integrity verification passes, take the SM3 algorithm as an example to calculate the deletion number change monitoring summary:
[0304] HMAC(Info_deleteContactsTrace)=H SM3 (PhoneNumber)
[0305] 5. The operator number service verifies the integrity of the mobile phone number by deleting the number change monitoring summary (using SM3, SHA256, etc.). After the verification is passed, the number change monitoring list is queried by the mobile phone number and the corresponding monitoring information is deleted, i.e. the number change monitoring of the mobile phone number is stopped.
[0306] Taking the SM3 algorithm as an example, the summary of number change monitoring is calculated and deleted:
[0307] HMAC2(Info_deleteContactsTrace)=HSM3(PhoneNumber)
[0308] Compare the received HMAC (Info_deleteContactsTrace) with the newly calculated HMAC2 (Info_deleteContactsTrace) to see if they are the same. If they are the same, the integrity verification of the mobile phone number passes; otherwise, the verification fails and a failure message needs to be returned.
[0309] 6. The operator number service generates a message indicating that the number change monitoring is successfully deleted, and encrypts it (using algorithms such as SM4 and AES) and sends it to the address book cloud service. The encryption calculation process refers to the above process.
[0310] 7. The address book cloud service deletes the relevant information corresponding to the user ID and mobile phone number.
[0311] 8. The address book cloud service feeds back the processing results to the address book localization service.
[0312] 9. The address book localization service deletes the address book contact for the user.
[0313] For ease of understanding, this part can be combined with Figure 5 To understand, Figure 5 This is a schematic diagram of the interaction for deleting address book contacts in an embodiment of the present application.
[0314] In an embodiment of the present application, when a user deletes a contact in the address book, the address book localization service and the address book cloud service cooperate with each other to securely send a message to delete the number change monitoring to the operator's number service, which cancels the mobile phone number monitoring.
[0315] 3. The specific steps for notifying changes to the phone number of contacts in the address book are as follows.
[0316] 1. The operator number service (real-time / periodic) monitors the status changes of the mobile phone numbers in the number change monitoring list, such as cancellation or change of user information. The changed mobile phone number list, which is composed of the changed mobile phone number, update time, and change identifier (to distinguish between different status changes such as cancellation and user information change), is calculated based on a secure hash algorithm (SM3, SHA256, etc.) to generate a summary of the changed mobile phone number list.
[0317] Taking the SM3 algorithm as an example, the calculation method for changing the mobile phone number list summary is as follows:
[0318] HMAC(Info_PhoneChange_List)=H SM3 ({PhoneNumber1,UpdateTime1,Identifi
[0319] er1}||{PhoneNumber2,UpdateTime2,Identifier2}||...||{PhoneNumberN,UpdateTimeN,IdentifierN})
[0320] 2. The operator number service will encrypt the changed mobile phone number list and the changed mobile phone number list summary (using SM4, AES and other algorithms) and send them to the address book cloud service.
[0321] Taking the SM4 algorithm as an example, the calculation method for encrypting the changed mobile phone number list and the changed mobile phone number list summary is as follows:
[0322] Encrypt(Info_PhoneChange_List)=E SM4 (SK2)({PhoneNumber1,UpdateTime1,I
[0323] dentifier1}||{PhoneNumber2,UpdateTime2,Identifier2}||...||{PhoneNumberN,Update TimeN,IdentifierN}||HMAC(Info_PhoneChange_List))
[0324] SK2 is the session key between the operator number service and the address book cloud service.
[0325] 3. The address book cloud service first decrypts the changed mobile phone number list and the summary of the changed mobile phone number list, verifies the integrity of the changed mobile phone number list through the summary, and after the verification, performs the following operations on the mobile phone numbers in the changed mobile phone number list: The changed mobile phone number, update time, and change identifier are calculated based on a secure hash algorithm (SM3, SHA256, etc.) to generate a summary of the changed mobile phone number.
[0326] Taking the SM4 algorithm as an example, the calculation method for decrypting the changed mobile phone number list and the changed mobile phone number list summary is as follows:
[0327] Decrypt(Info_PhoneChange_List)=D SM4 (SK2)({PhoneNumber1,UpdateTime1,I
[0328] dentifier1}||{PhoneNumber2,UpdateTime2,Identifier2}||...||{PhoneNumberN,Update TimeN,IdentifierN}||HMAC(Info_PhoneChange_List))={PhoneNumber1,UpdateTi me1,Identifier1}||{PhoneNumber2,UpdateTime2,Identifier2}||...||{PhoneNumberN,U pdateTimeN,IdentifierN}||HMAC(Info_PhoneChange_List).
[0329] Taking the SM3 algorithm as an example, based on the changed mobile phone number list, the summary information of the changed mobile phone number list is calculated to obtain the following information:
[0330] HMAC2(Info_PhoneChange_List)=H SM3 ({PhoneNumber1,UpdateTime1,Identi
[0331] fier1}||{PhoneNumber2,UpdateTime2,Identifier2}||...||{PhoneNumberN,UpdateTime N,IdentifierN}).
[0332] Compare the received HMAC (Info_PhoneChange_List) with the newly calculated HMAC2 (Info_PhoneChange_List) to see if they are the same. If they are the same, the integrity verification of the changed mobile phone number list passes; otherwise, the verification fails and a failure message needs to be returned.
[0333] If the integrity verification passes, the changed mobile phone number digest is calculated for the mobile phone numbers in the changed mobile phone number list one by one. Taking the SM3 algorithm as an example, the method for calculating the changed mobile phone number digest is as follows:
[0334] HMAC(Info_PhoneNumberChange)=H SM3 (PhoneNumber||UpdateTime||Identifi
[0335] er).
[0336] 4. The address book cloud service searches for the user ID list to which the changed mobile number has been added based on the mobile number in the changed mobile number list.
[0337] Info_PhoneNumber_UserID_List={PhoneNumber1,UserID11,UserID12,…,UserID1N}||{PhoneNumber2,UserID21,UserID22,…,UserID2N}||…||{PhoneNumberX,UserIX1,UserIX2,…,UserIDXN}.
[0338] 5. Based on the list of user IDs whose mobile phone numbers have been changed, the address book cloud service encrypts and sends the changed mobile phone number, update time, change identifier, and summary of the changed mobile phone number to the address book localization service of each user in the list (using algorithms such as SM4 and AES).
[0339] Taking PhoneNumber1 as an example, UserID11, UserID12, ..., UserID1N monitor the number change of this mobile phone number, and use the session key between the address book localization service and the address book cloud service of each user to encrypt the changed mobile phone number PhoneNumber1, update time UpdateTime1, change identifier Identifier1 and the changed mobile phone number summary HMAC (Info_PhoneNumberChange):
[0340] Encrypt(Info_PhoneNumberChange_UserID11)=E SM4 (SK1 UserID11 )(PhoneNumb
[0341] er1||UpdateTime1||Identifier1||HMAC(Info_PhoneNumberChange)).
[0342] Encrypt(Info_PhoneNumberChange_UserID12)=E SM4 (SK1 UserID12 )(PhoneNumb
[0343] er1||UpdateTime1||Identifier1||HMAC(Info_PhoneNumberChange)).
[0344] …
[0345] Encrypt(Info_PhoneNumberChange_UserID1N)=E SM4(SK1 UserID1N )(PhoneNum
[0346] ber1||UpdateTime1||Identifier1||HMAC(Info_PhoneNumberChange)).
[0347] Among them, SK1 UserID11 SK1 UserID12 ,……,SK1 UserID1N The session keys between the address book localization service and the address book cloud service for UserID11, UserID12, ..., UserID1N respectively; HMAC(Info_PhoneNumberChange)=H SM3 (PhoneNumber1||UpdateTime1||Identifier1).
[0348] 6. The address book localization service first decrypts the changed mobile phone number, update time, change identifier and summary of the changed mobile phone number, verifies the integrity of the changed mobile phone number information through the summary, and after the verification is passed, based on the received changed mobile phone number, update time and change identifier, updates the contact information corresponding to the mobile phone number for the user, adds a mobile phone number expiration label and reason for the changed mobile phone number, and updates the time.
[0349] Take the case where the address book localization service of user UserID11 receives the changed mobile number information of PhoneNumber1 as an example. The SM4 algorithm is used to decrypt the changed mobile number, update time, change identifier, and changed mobile number summary:
[0350] Decrypt(Info_PhoneNumberChange_UserID11)=D SM4 (SK1 UserID11 )(PhoneNum
[0351] ber1||UpdateTime1||Identifier1||HMAC(Info_PhoneNumberChange))=PhoneNumber1||UpdateTime1||Identifier1||HMAC(Info_PhoneNumberChange).
[0352] Taking the SM3 algorithm as an example, the method for calculating the summary of the changed mobile phone number based on the changed mobile phone number, update time, and change identifier is as follows:
[0353] HMAC2(Info_PhoneNumberChange)=H SM3(PhoneNumber1||UpdateTime1||Ide
[0354] ntifier1).
[0355] Compare the received HMAC (Info_PhoneNumberChange) with the newly calculated HMAC2 (Info_PhoneNumberChange) to see if they are the same. If they are the same, the integrity verification of the changed mobile number, update time, and change identifier is passed, and the contact information corresponding to the mobile number is updated for the user. The mobile number expiration label and reason are added to the changed mobile number, and the time is updated; otherwise, the verification fails and a failure message needs to be returned.
[0356] For ease of understanding, this part can be combined with Figure 6 To understand, Figure 6 This is a schematic diagram of the interaction for implementing notification of changes to the mobile phone number of a contact in the address book in an embodiment of the present application.
[0357] In an embodiment of the present application, the operator code number service monitors changes in the status of the contact's mobile phone, generates a list of mobile phone numbers whose status has changed, and securely sends it to the address book cloud service. The address book cloud service securely sends change notifications to the address book localization services of all users who have added changed mobile phone numbers, and the address book localization service updates the status of the contact with the changed mobile phone number.
[0358] In addition, the embodiments of the present application ensure the integrity of information through a secure hash algorithm, and ensure the security of information transmission and storage through a secure encryption algorithm. During this period, only the information on whether the owner of the mobile phone number has changed is transmitted, and the information of the owner of the mobile phone number will not be transmitted, thereby minimizing the amount of shared information, ensuring user privacy, and realizing the identification and update of the status of address book contacts.
[0359] In this application, number change monitoring is initiated by the user when adding or modifying contact information. Through the cooperation of the address book localization service and the address book cloud service, the mobile phone number that needs to be monitored for number change (i.e. the mobile phone number of the address book contact added or modified) is securely sent to the operator number service, which monitors the status of the mobile phone number; when the monitored mobile phone number undergoes a status change such as cancellation or change of ownership, the operator number service securely synchronizes the above information to the address book cloud service and the address book localization service, and the address book localization service adds an invalidation label and reason to the monitored mobile phone number, thereby enabling users who are not in the owner's local list of users to be notified to obtain the owner's number change information in a timely manner. For example, if user A changes his number, user B and user C both store user A's original number, and user B is in user A's address book (limited coverage), while user C is not in user A's address book (large coverage). At this time, user B and user C can both receive user A's number change notification.
[0360] In order to implement the method of the embodiment of the present application, the embodiment of the present application also provides a device for identifying contact information changes, which is set on a first server. Figure 7 Schematic diagram of a device structure for identifying contact information changes according to an embodiment of the present application; Figure 7 As shown, the device 700 includes:
[0361] The first receiving unit 701 is used to receive first information sent by the second server; the first information includes change information corresponding to the change of the state of at least one terminal; the change information at least includes the corresponding communication number when the state of each terminal changes;
[0362] A first determining unit 702 is used to determine, based on the communication number and a preset database, to add at least one user identifier corresponding to the communication number; the preset database stores a correspondence between a preset communication number and a user identifier corresponding to the preset communication number;
[0363] The first sending unit 703 is used to send the change information to the terminal corresponding to each user identity; the change information is used to notify each terminal corresponding to the user identity that there is a change in the contact information corresponding to the communication number stored.
[0364] In one embodiment, the first information further includes summary information related to the communication number generated based on the change information; the change information further includes the change time and change identifier corresponding to the communication number; the device 700 further includes a verification unit and a generation unit; wherein,
[0365] The verification unit is used to verify the integrity of the change information using the summary information to obtain a verification result of the change information;
[0366] The generating unit is used for generating the changed communication number summary information corresponding to each terminal based on the communication number, the change time and the change identifier when the verification result shows that the change information verification is successful;
[0367] The first sending unit 703 is also used to send the changed communication number summary information to the terminal corresponding to each user identifier; the changed communication number summary information is used to verify the integrity of the change information, so that when the change information verification is successful, the terminal corresponding to each user identifier is notified based on the change information to update the contact information status corresponding to the communication number.
[0368] In one embodiment, the first information also includes first encrypted information obtained by encrypting the change information and the summary information; the device 700 also includes a processing unit, which is used to decrypt the first encrypted information using a first preset algorithm to obtain the decrypted change information and the summary information.
[0369] In one embodiment, the processing unit is further used to encrypt the change information and the summary information of the changed communication number to obtain second encrypted information after the change information and the summary information of the changed communication number are encrypted;
[0370] The first sending unit 703 is also used to send the second encrypted information to the terminal corresponding to each user identifier; the second encrypted information is used to decrypt the terminal corresponding to each user identifier to obtain the decrypted change information and the changed communication number summary information.
[0371] In one embodiment, before receiving the first information sent by the second server, the first receiving unit 701 is further used to receive first user information and second information sent by each of the terminals; the first user information includes information related to adding and / or modifying a contact in the address book; the second information includes contact summary information; the contact summary information includes adding a contact summary and / or modifying a contact summary;
[0372] The verification unit is further configured to verify the integrity of the first user information using the second information; if the first user information is successfully verified, the first user information and the second information are stored in the preset database.
[0373] In one embodiment, the first receiving unit 701 is further configured to receive third encrypted information sent by each of the terminals;
[0374] The processing unit is further used to use a third preset algorithm to decrypt the third encrypted information to obtain the decrypted first user information and second information.
[0375] In one embodiment, the first determining unit 702 is further configured to determine first request information based on the first user information and the second information; the first request information includes a number change monitoring request;
[0376] The first sending unit 703 is further used to send the first request information to the second server; the first request information is used to query the online user identifier corresponding to the communication number in the first user information to generate the second user information.
[0377] In one embodiment, the first user information further includes information related to deleting a contact in the address book; the contact summary information further includes a deleted contact summary; the first receiving unit 701 is further configured to receive a deleted contact summary sent by the at least one terminal;
[0378] The verification unit is further used to verify the information related to the deleted address book contact using the deleted contact summary;
[0379] The generating unit is further configured to generate a number change monitoring summary based on the information related to the deleted contact book contact when the verification of the information related to the deleted contact book contact is successful;
[0380] The first sending unit 703 is further configured to send the number change monitoring summary to the second server.
[0381] In one embodiment, the first receiving unit 701 is also used to receive the result corresponding to the deletion of the monitoring information sent by the second server; the monitoring information is information corresponding to the number change monitoring summary; when the result indicates that the monitoring information is successfully deleted, the information corresponding to the number change monitoring summary in the preset database is deleted.
[0382] In order to implement the method on the terminal side of the embodiment of the present application, the embodiment of the present application also provides a device for identifying contact information changes, which is set on the terminal. Figure 8 FIG. 2 is a schematic diagram of another device structure for identifying contact information changes according to an embodiment of the present application; Figure 8 As shown, the device 800 includes:
[0383] The second receiving unit 801 is used to receive the change information sent by the first server; the change information is obtained when the state of at least one terminal changes; the change information at least includes the corresponding communication number when the state of each terminal changes;
[0384] The second determining unit 802 is configured to determine, based on the change information, whether the contact information corresponding to the communication number is changed.
[0385] In one embodiment, the device 800 further includes a verification unit and an update unit; wherein,
[0386] The second receiving unit 801 is further configured to receive summary information of the changed communication number sent by the first server;
[0387] The verification unit is used to verify the integrity of the change information using the summary information of the changed communication number;
[0388] The updating unit is configured to update the contact information status based on the change information when the change information verification succeeds.
[0389] In one embodiment, the device 800 further includes a processing unit; wherein,
[0390] The second receiving unit 801 is further configured to receive the second encrypted information encrypted from the change information and the summary information of the changed communication number sent by the first server;
[0391] The processing unit is used to use a second preset algorithm to decrypt the second encrypted information to obtain the decrypted change information and the changed communication number summary information.
[0392] In one embodiment, before receiving the change information sent by the first server, the device 800 further includes an acquisition unit, a generation unit and a second sending unit; wherein,
[0393] The acquisition unit is used to acquire first user information input by a user; the first user information includes information related to adding and / or modifying contacts in the address book;
[0394] The generating unit is configured to generate second information based on the first user information; the second information includes contact summary information; the contact summary information includes adding a contact summary and / or modifying a contact summary;
[0395] The second sending unit is used to send the first user information and the second information to the first server; the second information is used to verify the first user information, so that when the first user information is successfully verified, the first user information and the second information are stored in a preset database in the first server.
[0396] In one embodiment, the device 800 further includes an encryption unit, configured to encrypt the first user information and the second information to obtain third encrypted information obtained by encrypting the first user information and the second information;
[0397] The second sending unit is further used to send the third encrypted information to the first server; the third encrypted information is used for decryption by the first server to obtain the decrypted first user information and second information.
[0398] In one embodiment, the first user information also includes information related to deleted address book contacts; the contact summary information also includes a deleted contact summary; the second sending unit is also used to send the deleted contact summary to the first server; the deleted contact summary is used to verify the information related to the deleted address book contacts, and when the verification of the information related to the deleted address book contacts is successful, a number change monitoring summary is generated based on the information related to the deleted address book contacts.
[0399] In order to implement the method on the second server side of the embodiment of the present application, the embodiment of the present application also provides a device for identifying contact information changes, which is set on the second server. Fig. 9 FIG. 2 is a schematic diagram of another device structure for identifying contact information changes according to an embodiment of the present application; Fig. 9 As shown, the device 900 includes:
[0400] The third sending unit 901 is used to send the first information to the first server when it is monitored that the status of the communication number of at least one terminal has changed; the first information includes the change information corresponding to the change of the status of the at least one terminal; the change information includes at least the communication number corresponding to the change of the status of each terminal; the communication number is used by the second server to determine to add at least one user identifier corresponding to the communication number, so that the change information is sent to the terminal corresponding to each user identifier.
[0401] In one embodiment, the device 900 further includes a third receiving unit and a query unit; wherein,
[0402] The third receiving unit is used to receive a first request message sent by the first server; the first request message is determined based on the first user information and the second information; the first user information includes information related to adding and / or modifying a contact in the address book; the second information includes contact summary information; the contact summary information includes adding a contact summary and / or modifying a contact summary; the first request message includes a number change monitoring request;
[0403] The query unit is used to query the online user identifier corresponding to the communication number in the first user information by using the first request information;
[0404] The third sending unit 901 is further used to send the communication number and the online user identifier in the first user information to the first server; the communication number and the online user identifier in the first user information are used to store in a preset database in the first server.
[0405] In one embodiment, the first user information further includes information related to deleting a contact from the address book; the contact summary information further includes a summary of deleted contacts; the third receiving unit is further configured to receive a number change monitoring summary sent by the first server; the number change monitoring summary is generated based on the information related to deleting a contact from the address book;
[0406] The query unit is further used to query the monitoring information corresponding to the number change monitoring summary in a preset number change monitoring database, and delete the monitoring information;
[0407] The third sending unit 901 is further used to send a result corresponding to the deletion of the monitoring information to the first server; the result is used to indicate that when the monitoring information is successfully deleted, the first server deletes the information corresponding to the number change monitoring summary in the preset database.
[0408] It should be noted that: the method device for identifying contact information changes provided in the above embodiment only uses the division of the above program modules as an example when performing the method for identifying contact information changes. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the method device for identifying contact information changes provided in the above embodiment and the method embodiment for identifying contact information changes belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0409] Based on the hardware implementation of the above program module, and in order to implement the method on the first server side of the embodiment of the present application, the embodiment of the present application further provides a first server, Fig.10 Schematic diagram of the first server structure of the present application embodiment; Fig.10 As shown, the first server 1000 includes:
[0410] The first communication interface 1001 is capable of exchanging information with the terminal or the second server;
[0411] The first processor 1002 is connected to the first communication interface 1001 to implement information interaction with the terminal or the second server, and is used to execute the method provided by one or more technical solutions on the network device side when running the computer program. The computer program is stored in the first memory 1003.
[0412] It should be noted that the specific processing process of the first processor 1002 and the first communication interface 1001 can be understood by referring to the above method.
[0413] Of course, in actual application, the various components in the first server 1000 are coupled together through the bus system 1004. It can be understood that the bus system 1004 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 1004 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Fig.10 Various buses are labeled as bus system 1004 .
[0414] The first memory 1003 in the embodiment of the present application is used to store various types of data to support the operation of the first server 1000. Examples of such data include: any computer program used to operate on the first server 1000.
[0415] The method disclosed in the above embodiment of the present application can be applied to the first processor 1002, or implemented by the first processor 1002. The first processor 1002 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the first processor 1002. The above-mentioned first processor 1002 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The first processor 1002 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the first memory 1003, and the first processor 1002 reads the information in the first memory 1003 and completes the steps of the above method in combination with its hardware.
[0416] In an exemplary embodiment, the first server 1000 can be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to execute the aforementioned method.
[0417] Based on the hardware implementation of the above program module, and in order to implement the method on the network device side of the embodiment of the present application, the embodiment of the present application also provides a terminal, Fig.11 Schematic diagram of the terminal structure of the embodiment of the present application; Fig.11 As shown, the terminal 1100 includes:
[0418] The first communication interface 1101 is capable of exchanging information with the first server;
[0419] The first processor 1102 is connected to the first communication interface 1101 to implement information interaction with the terminal, and is used to execute the method provided by one or more technical solutions on the network device side when running a computer program. The computer program is stored in the first memory 1103.
[0420] It should be noted that the specific processing process of the first processor 1102 and the first communication interface 1101 can be understood by referring to the above method.
[0421] Of course, in actual application, the various components in the terminal 1100 are coupled together through the bus system 1104. It can be understood that the bus system 1104 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 1104 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Fig.11 Various buses are labeled as bus system 1104 .
[0422] The first memory 1103 in the embodiment of the present application is used to store various types of data to support the operation of the terminal 1100. Examples of such data include: any computer program used to operate on the terminal 1100.
[0423] The method disclosed in the above embodiment of the present application can be applied to the first processor 1102, or implemented by the first processor 1102. The first processor 1102 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of the hardware in the first processor 1102 or an instruction in the form of software. The above-mentioned first processor 1102 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The first processor 1102 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the first memory 1103, and the first processor 1102 reads the information in the first memory 1103, and completes the steps of the above method in combination with its hardware.
[0424] In an exemplary embodiment, terminal 1100 may be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), field programmable gate array (FPGA), general processor, controller, microcontroller (MCU), microprocessor, or other electronic components to execute the aforementioned method.
[0425] Based on the hardware implementation of the above program module, and in order to implement the method on the second server side of the embodiment of the present application, the embodiment of the present application also provides a second server, Fig.12 This is a schematic diagram of the network device structure of the embodiment of the present application; Fig.12 As shown, the second server 1200 includes:
[0426] The second communication interface 1201 is capable of exchanging information with the first server;
[0427] The second processor 1202 is connected to the second communication interface 1201 to implement information interaction with the network device, and is used to execute the method provided by one or more technical solutions on the terminal side when running the computer program. The computer program is stored in the second memory 1203.
[0428] It should be noted that the specific processing process of the second communication interface 1201 and the second processor 1202 can be understood by referring to the above method.
[0429] Of course, in actual application, the various components in the second server 1200 are coupled together through the bus system 1204. It can be understood that the bus system 1204 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 1204 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Fig.12 Various buses are labeled as bus system 1204.
[0430] The second memory 1203 in the embodiment of the present application is used to store various types of data to support the operation of the second server 1200. Examples of such data include: any computer program used to operate on the second server 1200.
[0431] The method disclosed in the above embodiment of the present application can be applied to the second processor 1202, or implemented by the second processor 1202. The second processor 1202 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the second processor 1202. The above-mentioned second processor 1202 may be a general-purpose processor, DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The second processor 1202 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the second memory 1203, and the second processor 1202 reads the information in the second memory 1203 and completes the steps of the above method in combination with its hardware.
[0432] In an exemplary embodiment, the second server 1200 may be implemented by one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, general purpose processors, controllers, MCUs, Microprocessors, or other electronic components to perform the aforementioned methods.
[0433] It can be understood that the memory (first memory 1003, second memory 1103, second memory 1203) of the embodiment of the present application can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a ferromagnetic random access memory, a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache.By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), direct memory bus random access memory (DRRAM). The memory described in the embodiments of the present application is intended to include but is not limited to these and any other suitable types of memory.
[0434] In order to implement the method provided in the embodiment of the present application, the embodiment of the present application also provides a system for identifying changes in contact information. Fig.13 Schematic diagram of the system structure for identifying contact information changes in an embodiment of the present application; Fig.13 As shown, the system includes: a terminal 1301 , a first server 13021 and a second server 1303 .
[0435] Here, it should be noted that the specific processing process of the terminal 1301, the first server 13021 and the second server 1303 has been described in detail above and will not be repeated here.
[0436] In an exemplary embodiment, the embodiment of the present application further provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, for example, including a first memory 1003 storing a computer program, and the computer program can be executed by the first processor 1002 of the first server 1000 to complete the steps of the first server-side method. For another example, a second memory 1103 storing a computer program is included, and the computer program can be executed by the first processor 1102 of the terminal 1100 to complete the steps of the terminal-side method. For another example, a third memory 1203 storing a computer program is included, and the computer program can be executed by the third processor 1202 of the second server 1200 to complete the steps of the second server-side method. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, FlashMemory, magnetic surface memory, optical disk, or CD-ROM.
[0437] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0438] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.
[0439] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. A method for identifying changes in contact information, It is characterized in that Applied to the first server, comprising: receiving first information sent by a second server; the first information includes change information corresponding to a change in the state of at least one terminal; the change information includes at least a communication number corresponding to a change in the state of each terminal; Determine to add at least one user identifier corresponding to the communication number based on the communication number and a preset database; the preset database stores a correspondence between a preset communication number and a user identifier corresponding to the preset communication number; The change information is sent to each terminal corresponding to the user identification; the change information is used to notify each terminal corresponding to the user identification that the contact information corresponding to the communication number stored in the terminal has changed.
2. The method according to claim 1, It is characterized in that The first information further includes summary information related to the communication number generated based on the change information; the change information further includes the change time and change identifier corresponding to the communication number; the method further includes: Verifying the integrity of the change information using the summary information to obtain a verification result of the change information; If the verification result indicates that the change information verification is successful, generating a summary of the changed communication number corresponding to each terminal based on the communication number, the change time and the change identifier; The summary information of the changed communication number is sent to each terminal corresponding to the user identification; the summary information of the changed communication number is used to verify the integrity of the change information, so that if the change information verification is successful, the terminal corresponding to each user identification is notified based on the change information to update the contact information status corresponding to the communication number.
3. The method according to claim 2, It is characterized in that The first information also includes first encrypted information obtained by encrypting the change information and the summary information, and the method further includes: The first encrypted information is decrypted using a first preset algorithm to obtain the decrypted change information and the summary information.
4. The method according to claim 2, It is characterized in that The method further comprises: Encrypting the change information and the summary information of the changed communication number to obtain second encrypted information after the change information and the summary information of the changed communication number are encrypted; The second encrypted information is sent to the terminal corresponding to each of the user identifiers; the second encrypted information is used for decryption by the terminal corresponding to each of the user identifiers to obtain the decrypted change information and the changed communication number summary information.
5. The method according to claim 1, It is characterized in that Before receiving the first information sent by the second server, the method further includes: Receiving first user information and second information sent by each of the terminals; the first user information includes information related to adding and / or modifying contacts in the address book; the second information includes contact summary information; the contact summary information includes adding a contact summary and / or modifying a contact summary; Verifying the integrity of the first user information using the second information; When the first user information is successfully verified, the first user information and the second information are stored in the preset database.
6. The method according to claim 5, It is characterized in that The method further comprises: receiving third encrypted information sent by each of the terminals; The third encrypted information is decrypted using a third preset algorithm to obtain decrypted first user information and second information.
7. The method according to claim 5, It is characterized in that The method further comprises: Determine first request information based on the first user information and the second information; the first request information includes a number change monitoring request; The first request information is sent to the second server; the first request information is used to query the online user identifier corresponding to the communication number in the first user information to generate the second user information.
8. The method according to claim 5, It is characterized in that The first user information also includes information related to deleting contacts in the address book; The contact summary information also includes deleting the contact summary; the method also includes: receiving a contact deletion summary sent by the at least one terminal; Verify the information related to the deleted address book contact using the deleted contact summary; In the case where the verification of the information related to the deleted address book contact is successful, generating a number change monitoring summary based on the information related to the deleted address book contact; Send the number change monitoring summary to the second server.
9. The method according to claim 8, It is characterized in that The method further comprises: receiving a result corresponding to the deletion of monitoring information sent by the second server; the monitoring information is information corresponding to the number change monitoring summary; In the case where the result indicates that the monitoring information is successfully deleted, the information corresponding to the number change monitoring summary in the preset database is deleted.
10. A method for identifying changes in contact information, It is characterized in that Applied to terminals, including: receiving change information sent by the first server; the change information is obtained when the state of at least one terminal changes; the change information at least includes a corresponding communication number when the state of each terminal changes; Based on the change information, it is determined that there is a change in the contact information corresponding to the communication number.
11. The method according to claim 10, It is characterized in that The method further comprises: Receiving summary information of the changed communication number sent by the first server; Verifying the integrity of the change information using the change communication number summary information; When the change information is successfully verified, the contact information status is updated based on the change information.
12. The method according to claim 11, It is characterized in that The method further comprises: receiving the change information and the second encrypted information encrypted by the summary information of the changed communication number sent by the first server; The second encrypted information is decrypted using a second preset algorithm to obtain the decrypted change information and the changed communication number summary information.
13. The method according to claim 10, It is characterized in that Before receiving the change information sent by the first server, the method further includes: Acquire first user information input by a user; the first user information includes information related to adding and / or modifying a contact in the address book; Generate second information based on the first user information; the second information includes contact summary information; the contact summary information includes adding a contact summary and / or modifying a contact summary; The first user information and the second information are sent to the first server; the second information is used to verify the first user information, so that when the first user information is successfully verified, the first user information and the second information are stored in a preset database in the first server.
14. The method according to claim 13, It is characterized in that The method further comprises: Encrypting the first user information and the second information to obtain third encrypted information obtained by encrypting the first user information and the second information; The third encrypted information is sent to the first server; the third encrypted information is used for decryption by the first server to obtain the decrypted first user information and second information.
15. The method according to claim 13, It is characterized in that The first user information also includes information related to deleting contacts in the address book; the contact summary information also includes a summary of deleted contacts; and the method further includes: The contact deletion summary is sent to the first server; the contact deletion summary is used to verify the information related to the deleted address book contact, and when the verification of the information related to the deleted address book contact is successful, a number change monitoring summary is generated based on the information related to the deleted address book contact.
16. A method for identifying changes in contact information, It is characterized in that Applied to the second server, including: When a change in the status of a communication number of at least one terminal is monitored, a first message is sent to a first server; the first message includes change information corresponding to the change in the status of the at least one terminal; the change information includes at least the communication number corresponding to the change in the status of each of the terminals; the communication number is used by the second server to determine to add at least one user identifier corresponding to the communication number, so that the change information is sent to the terminal corresponding to each of the user identifiers.
17. The method according to claim 16, It is characterized in that The method further comprises: receiving a first request message sent by the first server; the first request message is determined based on first user information and second information; the first user information includes information related to adding and / or modifying a contact in the address book; the second information includes contact summary information; the contact summary information includes adding a contact summary and / or modifying a contact summary; the first request message includes a number change monitoring request; Using the first request information to query the online user identifier corresponding to the communication number in the first user information; The communication number and the online user identification in the first user information are sent to the first server; the communication number and the online user identification in the first user information are used to be stored in a preset database in the first server.
18. The method according to claim 17, It is characterized in that The first user information also includes information related to deleting contacts in the address book; The contact summary information also includes deleting the contact summary; the method also includes: Receiving a number change monitoring summary sent by the first server; the number change monitoring summary is generated based on the information related to the deleted address book contact; Querying the monitoring information corresponding to the number change monitoring summary in a preset number change monitoring database, and deleting the monitoring information; Sending a result corresponding to the deletion of the monitoring information to the first server; the result is used to indicate that when the monitoring information is successfully deleted, the first server deletes the information corresponding to the number change monitoring summary in the preset database.
19. A device for identifying changes in contact information, It is characterized in that Set on the first server, including: A first receiving unit is used to receive first information sent by a second server; the first information includes change information corresponding to a change in the state of at least one terminal; the change information at least includes a communication number corresponding to a change in the state of each terminal; A first determining unit, configured to determine, based on the communication number and a preset database, to add at least one user identifier corresponding to the communication number; the preset database stores a correspondence between a preset communication number and a user identifier corresponding to the preset communication number; The first sending unit is used to send the change information to the terminal corresponding to each user identifier; the change information is used to notify each terminal corresponding to the user identifier that there is a change in the contact information corresponding to the communication number stored in the terminal.
20. A device for identifying changes in contact information, It is characterized in that Set on the terminal, including: A second receiving unit is used to receive change information sent by the first server; the change information is obtained when the state of at least one terminal changes; the change information at least includes a corresponding communication number when the state of each terminal changes; The second determining unit is configured to determine, based on the change information, whether there is a change in the contact information corresponding to the communication number.
21. A device for identifying changes in contact information, It is characterized in that Set up on the second server, including: The third sending unit is used to send the first information to the first server when it monitors that the status of the communication number of at least one terminal has changed; the first information includes the change information corresponding to the change of the status of the at least one terminal; the change information at least includes the communication number corresponding to the change of the status of each terminal; the communication number is used by the second server to determine to add at least one user identifier corresponding to the communication number, so that the change information is sent to the terminal corresponding to each user identifier.
22. A first server, It is characterized in that include: a first processor and a first memory for storing a computer program executable on the processor, Wherein, when the first processor is used to run the computer program, the steps of the method described in any one of claims 1 to 9 are executed.
23. A terminal, It is characterized in that include: a second processor and a second memory for storing a computer program executable on the processor, Wherein, when the second processor is used to run the computer program, the steps of the method described in any one of claims 10 to 15 are executed.
24. A second server, It is characterized in that include: a third processor and a third memory for storing a computer program executable on the processor, Wherein, the third processor is used to execute the steps of the method described in any one of claims 16 to 18 when running the computer program.
25. A storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, it implements the steps of the method described in any one of claims 1 to 9, or implements the steps of the method described in any one of claims 10 to 15, or implements the steps of the method described in any one of claims 16 to 18.
