CN110138744B - Method, device and system for replacing communication number, computer equipment and storage medium - Google Patents

Method, device and system for replacing communication number, computer equipment and storage medium Download PDF

Info

Publication number
CN110138744B
CN110138744B CN201910326624.5A CN201910326624A CN110138744B CN 110138744 B CN110138744 B CN 110138744B CN 201910326624 A CN201910326624 A CN 201910326624A CN 110138744 B CN110138744 B CN 110138744B
Authority
CN
China
Prior art keywords
communication number
target application
application program
verification information
encrypted data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910326624.5A
Other languages
Chinese (zh)
Other versions
CN110138744A (en
Inventor
黄锦伦
沈张锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910326624.5A priority Critical patent/CN110138744B/en
Publication of CN110138744A publication Critical patent/CN110138744A/en
Priority to PCT/CN2019/103341 priority patent/WO2020215568A1/en
Application granted granted Critical
Publication of CN110138744B publication Critical patent/CN110138744B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0442Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/18Network architectures or network communication protocols for network security using different networks or channels, e.g. using out of band channels

Abstract

The embodiment of the application provides a method, a device and a system for replacing a communication number, computer equipment and a storage medium. The method comprises the following steps: receiving and storing a number replacement request input by a user through a client of a preset replacement platform; according to the original communication number in the number replacement request, inquiring an application program matched with the original communication number in a database of a preset replacement platform as a target application program; sending the verification information to a server side of the target application program so that the server side of the target application program replaces the original communication number with a new communication number in the number replacement request through the received verification information; and receiving a message of successful or failed replacement returned by the server side of the target application program. The communication number of a plurality of target application programs can be replaced at one time, the efficiency of replacing the communication number is improved, the problem that the communication number cannot be replaced due to omission in replacing the communication number is avoided, and the user experience is improved.

Description

Method, device and system for replacing communication number, computer equipment and storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method, an apparatus, a system, a computer device, and a storage medium for replacing a communication number.
Background
For convenience of use, one communication number will typically bind multiple applications or platforms. In some cases, many users want to change the communication number, but because the communication number is bound with more applications or platforms, it is very troublesome to unbind the old communication number and then bind the new communication number, and some users need to go to the field for handling. On the other hand, when the user changes the communication number, some applications or platforms are changed, and some applications or platforms forget to be changed or are not ready to be changed, but the old communication number is already out of service, and the verification code cannot be obtained through the old communication number for unbinding operation, which is very inconvenient if the user wants to bind a new communication number.
Disclosure of Invention
The embodiment of the application provides a method, a device, a system, computer equipment and a storage medium for replacing communication numbers, which can replace the communication numbers of a plurality of target application programs at one time and improve the efficiency of replacing the communication numbers.
In a first aspect, an embodiment of the present application provides a method for replacing a communication number, where the method is applied to a server side of a preset replacement platform, where the preset replacement platform further includes a client side communicating with the server side, and an application program is installed on the client side, and the method includes:
receiving and storing a number replacement request input by a user through the client, wherein the number replacement request comprises original communication numbers bound by all application programs on the client, new communication numbers needing to be bound again and verification information needed for changing the binding; according to the original communication number, an application program matched with the original communication number is inquired in a database of a preset replacement platform to serve as a target application program; sending the number replacement request to a server side of the target application program so that the server side of the target application program replaces the original communication number with the new communication number according to the verification information; and receiving a message of successful or failed replacement returned by the server side of the target application program.
In a second aspect, another embodiment of the present application provides a method for replacing a communication number, which is applied to a server of a target application, and the method includes:
receiving a private key sent by a server of a preset replacement platform; receiving first encrypted data sent by a server of a preset replacement platform, wherein the first encrypted data is obtained by encrypting a number replacement request by the server of the preset replacement platform by using a generated public key, the private key and the public key are a pair of secret keys, and the number replacement request comprises original communication numbers bound by all applications on a client of the preset replacement platform, new communication numbers required to be bound again and verification information required by binding change; decrypting the first encrypted data by using the private key to obtain an original communication number, a new communication number and verification information corresponding to the target application program; searching verification information prestored in the original communication number according to the original communication number, and judging whether the prestored verification information is consistent with the verification information obtained by decryption; if the prestored verification information is consistent with the verification information obtained through decryption, replacing the original communication number corresponding to the target application program with a new communication number obtained through decryption, and sending a message of successful replacement to a server of a preset replacement platform; and if the pre-stored verification information is inconsistent with the verification information obtained by decryption, sending a message of failed replacement to a server of a preset replacement platform.
In a third aspect, an embodiment of the present application provides an apparatus for replacing a communication number, where the apparatus for replacing a communication number includes a unit configured to execute the method according to the first aspect or a unit configured to execute the method according to the second aspect.
In a fourth aspect, an embodiment of the present application provides a system for replacing a communication number, where the system for replacing a communication number includes a server side of a preset replacement platform and a server side of at least one target application program, where the server side of the preset replacement platform includes a unit configured to perform the method according to the first aspect, and the server side of the target application program includes a unit configured to perform the method according to the second aspect.
In a fifth aspect, an embodiment of the present application provides a computer device, where the computer device includes a memory, and a processor connected to the memory;
the memory is adapted to store a computer program, and the processor is adapted to execute the computer program stored in the memory to perform the method of the first aspect or to perform the method of the second aspect.
In a sixth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the method of the first aspect, or implements the method of the second aspect.
According to the embodiment of the application, the client side of the preset replacement platform is used for filling the verification information of all the application programs on the client side at one time, and then the server of the preset replacement platform automatically carries out communication number replacement on each target application program. The communication numbers of the target application programs can be replaced at one time, the efficiency of replacing the communication numbers is improved, the problem that the communication numbers cannot be replaced due to omission in replacing the communication numbers is solved, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a timing diagram illustrating a method for replacing a communication number according to an embodiment of the present application;
fig. 2 is a timing diagram illustrating a method for changing a communication number according to another embodiment of the present application;
fig. 3 is a timing diagram illustrating a method for changing a communication number according to another embodiment of the present application;
fig. 4 is a schematic block diagram of a system for changing a communication number provided by an embodiment of the present application;
fig. 5 is a schematic block diagram of a system for changing a communication number provided in another embodiment of the present application;
fig. 6 is a schematic block diagram of a system for changing a communication number provided in another embodiment of the present application;
fig. 7 is a schematic block diagram of a computer device provided by an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1 to 3, in fig. 1 to 3, a client 100 of a predetermined replacement platform, a server 200 of the predetermined replacement platform, and a server 300 of a target application are included. The preset replacement platform in the embodiment of the present application includes a client 100 of the preset replacement platform and a server 200 of the preset replacement platform. The system for replacing a communication number in the embodiment of the present application includes a server 200 for presetting a replacement platform, and a server 300 for a target application program.
In the present embodiment, the pre-set replacement platform already exists. In some embodiments, if the default replacement platform does not exist, the default replacement platform also needs to be developed. The developed preset replacing platform comprises a client side of the preset replacing platform and a server of the preset replacing platform, the client side of the preset replacing platform comprises an input interface of verification information which needs to be input by all application program replacing communication numbers, and the server of the preset replacing platform is used for processing the verification information input by a user through the input interface. And inputting the original communication number, the verification code corresponding to the original communication number and the new communication number needing to be bound again on the input interface. It will be appreciated that the authentication information that needs to be entered for all applications to change communication numbers is collected proactively. The verification information comprises a mailbox, identity card and certificate information (comprising an identity card picture and an identity card number), a fingerprint, a voiceprint, a face image, a gesture password, a video with a preset requirement, an original communication number, a verification code corresponding to the original communication number, a new communication number and the like which are required when the communication number is replaced. The original communication number, the verification code corresponding to the original communication number and the new communication number are indispensable items. And developing the preset replacement platform according to the collected verification information required to be input by replacing the communication number of all the application programs. It should be noted that all the applications mentioned in this application do not really refer to all the applications existing in the market, but refer to applications that may have mobile phone number bindings or applications that have higher usage rate and mobile phone number bindings. Through the preset replacement platform, the communication numbers can be replaced uniformly and safely, and users only need to operate once on the preset replacement platform to input verification information, so that all application programs can complete the updating of the communication numbers.
It is noted that the default replacement platform may be present in the form of a module, e.g. present in a certain application program of interest, or it may be understood that the default replacement platform is part of a certain application program. In some cases, the preset replacement platform may exist in the form of an APP, for example, the APP may operate independently, or may also exist in the form of an applet (an applet corresponding to the preset replacement platform may be called by other applications).
Fig. 1 is a timing diagram illustrating a method for replacing a communication number according to an embodiment of the present application. As shown in fig. 1, the method comprises the following steps S101-S109. Steps S101 to S103, S109 are executed on the server side of the preset replacement platform, and steps S104 to S108 are executed on the server side of the target application program.
S101, a server side of a preset replacement platform receives and stores a number replacement request input by a user through a client side of the preset replacement platform, wherein the number replacement request comprises original communication numbers bound by all application programs on the client side, new communication numbers needing to be bound again and verification information needed for binding change.
It can be understood that, the user inputs all verification information, original communication numbers, new communication numbers and the like of the communication numbers of all the applications on the replacement client at one time through the client of the preset replacement platform. The input verification information comprises a verification code corresponding to the original telephone. Specifically, the method comprises the following steps: if a verification code acquisition instruction of a user is received, acquiring an original communication number input by the user through a client of a preset replacement platform; generating a verification code; sending the generated verification code to the client through the acquired original communication number; if receiving a submission instruction of a user, verifying whether the verification code input by the user in the submission instruction is consistent with the generated verification code and whether the verification code is valid; if the verification codes are consistent and valid, receiving verification information input by a user in the submitted instruction, and storing the received verification information; otherwise, the user is prompted to re-enter.
And S102, the server side of the preset replacement platform inquires an application program matched with the original communication number in a database of the preset replacement platform as a target application program according to the original communication number in the number replacement request.
It should be noted that the database of the server of the default replacement platform stores various applications bound to the communication numbers. The preset manner for the server of the replacement platform to obtain the various applications bound to the communication number may include the following manners. When a user uses a certain application program and needs to bind or input a communication number, after the server of the application program receives the communication number bound or input by the user, the server of the application program simultaneously sends the communication number and the corresponding application program information to a server of a preset replacement platform, and the server of the preset replacement platform stores the communication number and the corresponding application program information; if the server of the preset replacement platform is in timing to the server side of various application programs to acquire the message of the updated communication number; for example, the server of various application programs actively sends the updated communication number message to the server of the preset replacement platform at regular time. In this embodiment, a manner in which the server side of the preset replacement platform acquires the various applications bound to the communication number is not limited, as long as the preset replacement platform stores the communication number and information of the various applications bound to the communication number.
And the server side of the preset replacement platform inquires the matched application program bound with the original communication number in a database of the preset replacement platform according to the original communication number in the received number replacement request, and takes the inquired matched application program as a target application program. Namely, the application program with the binding relation existing in the inquired original communication number is determined as the target application program.
And S103, the server side of the preset replacing platform sends the number replacing request to the server side of the target application program so that the server side of the target application program replaces the original communication number with the new communication number according to the verification message.
In one embodiment, step S103 includes: and the server side of the preset replacement platform acquires the verification information corresponding to each target application program from the verification information according to the target application program, and sends a number replacement request comprising the verification information corresponding to the target application program to the server side of each target application program so that the server side of the target application program replaces the original communication number with the new communication number according to the verification information corresponding to the target application program, wherein the number replacement request does not comprise the verification information required by the change and the binding of all the application programs but comprises the verification information corresponding to each target application program. In this embodiment, the preset database at the server side of the replacement platform stores the types of the authentication information corresponding to each application program, such as one or more of a mailbox, an identity card, a fingerprint, a voiceprint, a face image, a gesture password, and a video with predetermined requirements. Acquiring the type of the verification information corresponding to each target application program from a database; acquiring the verification information corresponding to each target application program from the verification information (the verification information required by all application program change binding) according to the type of the verification information corresponding to each target application program; and sending the number replacement request to the server side of each target application program so that the server side of each target application program replaces the original communication number with a new communication number according to the corresponding verification information. The authentication information may vary from target application to target application. It can be understood that, if the type of the verification information required for changing the binding corresponding to the target application program a includes a face image, the verification information in the number replacement request sent to the target application program a includes the face image; and if the verification information type required by the binding change corresponding to the target application program B comprises the voiceprint, the verification information in the number replacement request sent to the target application program B comprises the voiceprint. In this embodiment, the server on the preset replacement platform automatically distributes the received verification information required for binding change of all the application programs to each target application program, and replaces the communication number according to the verification information corresponding to each target application program.
In one embodiment, step S103 includes: and sending the number replacement request to a server side of the target application program, so that the server side of the target application program extracts verification information corresponding to the target application program according to the verification information, and replaces the original communication number with the new communication number according to the verification information corresponding to the target application program. In this embodiment, the verification message sent to the server side of each target application includes verification information required for changing the binding of all applications, and thus, after the target application receives the verification information required for changing the binding of all applications, the verification information corresponding to each target application is obtained from the verification information required for changing the binding of all applications according to the verification information pre-stored in the database of the target application, and the communication number is changed according to the verification information corresponding to each target application. In this embodiment, after receiving the verification information required by all the application program change bindings, the target application program automatically obtains the verification information corresponding to the target application program from the verification information.
And sending the number replacement request to a server corresponding to the target application program. If there are a plurality of target applications, the target applications may be sent to a plurality of servers of the target applications at the same time, or may be sent to the servers of the target applications one by one.
And S104, the server side of the target application program receives the number replacement request.
And S105, the server side of the target application program extracts the original communication number, the new communication number and the verification information corresponding to the target application program in the number replacement request. The verification information corresponding to the target application program includes other verification information except the verification code, such as one or more of a mailbox, identification card information (including an identification card picture and an identification card number), a fingerprint, a voiceprint, a face image, a gesture password, a video with a predetermined requirement, and the like. If a certain target application program only changes the communication number according to the verification code, the verification information corresponding to the target application program is null.
If the verification information required for modifying and binding all the application programs is automatically allocated, that is, the verification information in the number change request includes the verification information corresponding to the target application program, in this step, "the server of the target application program extracts the original communication number, the new communication number and the verification information corresponding to the target application program" in the number change request, that is, "the server of the target application program obtains the original communication number, the new communication number and the verification information corresponding to the target application program".
If the verification information required for changing and binding all the application programs is not processed, that is, the verification information in the number change request includes the verification information required for changing and binding all the application programs, in this step, "the server side of the target application program extracts the original communication number, the new communication number and the verification information corresponding to the target application program in the number change request", which is understood to be that the verification information corresponding to the target application program is automatically extracted from the verification information required for changing and binding all the application programs. In this way, the server side of the target application program extracts the original communication number, the new communication number and the verification information corresponding to the target application program in the number replacement request.
S106, searching the verification information prestored in the original communication number according to the extracted original communication number, and judging whether the extracted verification information corresponding to the target application program is consistent with the verification information prestored in the original communication number.
Specifically, according to the extracted original communication number, inquiring verification information prestored in the original communication number in a database of a target application program; matching the extracted verification information corresponding to the target application program with the verification information prestored in the original communication number; and judging whether the extracted verification information corresponding to the target application program is consistent with the prestored verification information corresponding to the original communication number.
And S107, if the verification information corresponding to the target application program is consistent with the pre-stored verification information corresponding to the original communication number, replacing the original communication number in the target application program with a new communication number.
It should be noted that, if the verification information corresponding to the target application program is empty and the verification information prestored in the original communication number does not exist, it is determined that the verification information corresponding to the target application program is consistent with the prestored verification information. It can be understood that when many application programs change the telephone number, only the original communication number (some of the communication numbers also include verification codes and the like) and the new communication number need to be input, and thus, corresponding verification information does not exist.
The method comprises the steps of replacing an original communication number in a target application program with a new communication number, and the steps of unbinding the original communication number and binding the new communication number.
And S108, after the replacement is finished, sending a message of successful replacement to a server of a preset replacement platform, and if the verification information corresponding to the target application program is inconsistent with the pre-stored verification information corresponding to the original communication number, sending a message of failed replacement to the server of the preset replacement platform.
If the original communication number in the target application program is successfully replaced with the new communication number, namely the replacement is successful, the server side of the target application program sends a message of successful replacement to a server of a preset replacement platform, and if the verification information corresponding to the target application program is inconsistent with the pre-stored verification information corresponding to the original communication number, a message of failed replacement is sent to the server of the preset replacement platform. If the corresponding verification information is inconsistent with the pre-stored verification information, the operation of the user is not considered.
And S109, receiving a message of successful or failed replacement returned by the server of the target application program by the server of the preset replacement platform.
Therefore, the messages of successful replacement and identification of replacement received by the server end can be displayed on the client end of the preset replacement platform, so that a user can conveniently know which application programs are successful in replacing the communication numbers and which application programs are failed in replacement.
In an embodiment, before the step of replacing the original communication number in the target application program with a new communication number, the server side of the target application program further executes the steps of: sending confirmation information of replacing the communication number to a client corresponding to the original communication number; and if the confirmation information sent by the client corresponding to the original communication number is received, replacing the original communication number in the target application program with a new communication number. Thus, it is further ensured whether the communication number is to be replaced by the user, and the security of replacing the communication number is improved.
In an embodiment, after the original communication number of the target application is replaced with a new communication number, the server side of the target application further performs the following steps: and sending the replaced new communication number and application program information (which can be application identification information and the like so as to be convenient for the server side of the preset replacement platform to identify) corresponding to the target application program to a server of the preset replacement platform, so that the server of the preset replacement platform stores the replaced new communication number to update the information in the database. Therefore, the data in the database of the preset replacement platform is updated in real time.
In the embodiment, the original communication numbers which are bound by all the application programs and input by the client of the preset replacement platform, the new communication numbers which need to be bound again and the verification information needed for changing the binding are received, and all the target application programs matched with the original communication numbers are inquired in the database according to the original communication numbers, so that all the target application programs replace the original communication numbers with the new communication numbers in the verification information. Therefore, the server of the preset replacement platform automatically performs communication number replacement on each target application program by inputting the verification information of all the application programs at one time. The communication numbers of the target application programs can be modified at one time, the efficiency of replacing the communication numbers is improved, the problem that the communication numbers cannot be replaced due to the fact that the communication numbers of one part of the application programs are not replaced in time while the communication numbers of the other part of the application programs are not replaced in time is solved, and user experience is improved.
Fig. 2 is a timing diagram illustrating a method for changing a communication number according to another embodiment of the present application. As shown in fig. 2, the method comprises the following steps S201-S213. Steps S201 to S204, S206 to S207, and S213 run on the server side of the preset replacement platform, and steps S205 and S208 to S212 run on the server side of the target application program.
S201, a server side of a preset replacement platform receives and stores a number replacement request input by a user through a client side of the preset replacement platform, wherein the number replacement request comprises original communication numbers bound by all application programs on the client side, new communication numbers needing to be bound again and verification information needed for binding change.
S202, the server side of the preset replacement platform inquires an application program matched with the original communication number in a database of the preset replacement platform as a target application program according to the original communication number in the number replacement request.
S203, the server side of the preset replacement platform generates a pair of public key and private key through an asymmetric encryption algorithm.
The asymmetric encryption algorithm generates a pair of secret keys, namely a public key and a private key, in the using process, the public key is used for encryption, and the private key is used for decryption. Asymmetric algorithms such as the RSA algorithm. It should be noted that the pair of public and private keys generated are different for different target applications.
And S204, the server side of the preset replacement platform sends the generated private key to the server side of the target application program.
S205, the server side of the target application program receives a private key sent by a server of a preset replacement platform.
And S206, the server side of the preset replacing platform encrypts the number replacing request by using the generated public key to obtain first encrypted data.
In one embodiment, the steps include: and the server side of the preset replacement platform acquires the verification information corresponding to each target application program from the verification information required by the change and binding of all the application programs in the number replacement request according to the target application program, and encrypts the number replacement request comprising the verification information corresponding to the target application program by using the generated public key to obtain first encrypted data, wherein the number replacement request is not the verification information required by the change and binding of all the application programs but the verification information corresponding to each target application program. In this embodiment, the authentication information required for all the applications to change the binding is automatically allocated, so that the data before encryption corresponding to each target application may be different.
In an embodiment, the verification information in the number change request in this step is the verification information required by all the applications to change the binding, so that the data before encryption corresponding to each target application is identical.
And S207, the server side of the preset replacement platform sends the first encrypted data to the server side of the target application program.
S208, the server side of the target application program receives first encrypted data sent by a server of a preset replacement platform.
S209, the server side of the target application decrypts the first encrypted data by using the private key to obtain the original communication number, the new communication number, and the verification information corresponding to the target application.
If the verification information required by the binding change of all the application programs is automatically distributed, namely the verification information in the number change request only comprises the verification information corresponding to the target application program, the server side of the target application program can directly obtain the original communication number, the new communication number and the verification information corresponding to the target application program after decrypting the first encrypted data by using the private key.
If the verification information required for changing and binding all the application programs is not processed, that is, the verification information in the number change request includes the verification information required for changing and binding all the application programs, after the server side of the target application program decrypts the first encrypted data by using the private key, the verification information corresponding to the target application program needs to be automatically extracted from the decrypted data. Thus, the original communication number, the new communication number and the verification information corresponding to the target application program are obtained.
Since the server side of the target application program has correct private key data, only the correct private key can decrypt the first encrypted data encrypted by the public key of the key pair. And if the other terminals do not have the private key, the first encrypted data cannot be decrypted. And the safety of the information is ensured by using the key pair. Such as at least securing the authentication information transfer process.
S210, the server side of the target application program searches the verification information prestored in the original communication number according to the original communication number and judges whether the prestored verification information is consistent with the verification information obtained by decryption.
And S211, if the pre-stored verification information is consistent with the verification information obtained through decryption, replacing the original communication number of the target application program with a new communication number obtained through decryption.
S212, after the replacement is finished, a message of successful replacement is sent to the server of the preset replacement platform, and if the pre-stored verification information is inconsistent with the verification information obtained by decryption, a message of failed replacement is sent to the server of the preset replacement platform.
If the pre-stored verification information is inconsistent with the verification information obtained by decryption, the operation is not the operation of the user or the operation of the user, and the corresponding verification information is subjected to conditions such as modification or inaccurate verification information input in the transmission process. For security reasons, the communication number is not replaced.
S213, receiving the message of successful or failed replacement returned by the server of the target application program.
In an embodiment, before the step of replacing the original communication number in the target application program with a new communication number, the server side of the target application program further executes the steps of: sending confirmation information of replacing the communication number to a client corresponding to the original communication number; and if the confirmation information sent by the client corresponding to the original communication number is received, replacing the original communication number in the target application program with a new communication number. Thus, it is further ensured whether the communication number is to be replaced by the user, and the security of replacing the communication number is improved.
In an embodiment, after the original communication number of the target application is replaced with a new communication number, the server side of the target application further performs the following steps: and sending the replaced new communication number and application program information (which can be application identification information and the like so as to be convenient for the server side of the preset replacement platform to identify) corresponding to the target application program to a server of the preset replacement platform, so that the server of the preset replacement platform stores the replaced new communication number to update the information in the database. Therefore, the data in the database of the preset replacement platform is updated in real time.
It should be noted that, in this embodiment, the same steps or the same noun descriptions as those in the embodiment of fig. 1 are referred to the corresponding descriptions in the embodiment of fig. 1, and are not repeated herein.
The original communication number, the new communication number, the verification information corresponding to the target application program and the like are relatively private data. Therefore, the embodiment encrypts the number verification request (the number verification request comprises the original communication number, the new communication number, the verification information corresponding to the target application program and the like) by using the asymmetric encryption algorithm, so that the safety of the verification information is ensured, and the safety of information transmission is improved.
Fig. 3 is a timing diagram illustrating a method for changing a communication number according to another embodiment of the present application. As shown in fig. 3, the method comprises the following steps S301-S317. Steps S301 to S305, S310 to S311, and S317 are executed on the server side of the preset replacement platform, and steps S306 to S309, and S312 to S316 are executed on the server side of the target application.
S301, a server side of a preset replacement platform receives and stores a number replacement request input by a user through a client side of the preset replacement platform, wherein the number replacement request comprises original communication numbers bound by all application programs on the client side, new communication numbers needing to be bound again and verification information needed for binding change.
S302, the server side of the preset replacement platform inquires an application program matched with the original communication number in a database of the preset replacement platform as a target application program according to the original communication number in the number replacement request.
And S303, generating a pair of public key and private key by the server side of the preset replacement platform through an asymmetric encryption algorithm.
S304, the server side of the preset replacement platform encrypts the identification information of the target application program through a message digest algorithm to obtain second encrypted data.
And the database of the preset replacement platform stores the identification information of the target application program corresponding to the original communication number. Identification information refers to information that can identify an application. The main characteristic of the message digest algorithm is that no key is needed in the encryption process, the encrypted data cannot be decrypted, and the same ciphertext (encrypted data) can be obtained only by inputting the same plaintext data (data to be encrypted) and performing the same message digest algorithm. It should be noted that different target applications correspond to different identification information, and the second encrypted data obtained by encrypting the corresponding identification information by the different target applications are different.
It should be noted that the order of step S303 and step S304 is not limited strictly, and in other embodiments, step S304 may be executed first, and step S303 may be executed.
S305, the generated private key and the generated second encrypted data are sent to the server side of the target application program.
S306, the server side of the target application program receives the private key and the second encrypted data sent by the server of the preset replacing platform.
S307, the server side of the target application program acquires the identification information of the target application program, and encrypts the identification information by using the same message digest algorithm to obtain third encrypted data.
The server side of the target application program also stores the identification information of the target application program.
S308, the server side of the target application program judges whether the second encrypted data and the third encrypted data are consistent.
S309, if the second encrypted data is consistent with the third encrypted data, sending confirmation information to a server side of a preset replacement platform, and if the second encrypted data is inconsistent with the third encrypted data, sending a replacement failure message to the server of the preset replacement platform.
Data generated according to a message digest algorithm is hardly or cannot be decrypted. The third encrypted data is generated by the server side of the target application program according to the same message digest algorithm, and the second encrypted data is generated and sent by the server side of the preset replacement platform. If the second encrypted data is consistent with the third encrypted data, the identification information of the application program is consistent with the identification information stored in the preset replacement platform, and meanwhile, the network is relatively safe, and at least the second encrypted data is completely safe. The transmitted private key is also considered to be accurate and there are no cases of being maliciously modified, etc. If the target application program returns the change failure information, two situations are included, firstly, the identification information of the application program stored in the preset replacement platform is not matched with the real identification information of the application program, secondly, the network is not safe, and at least the second encrypted data is modified in the transmission process.
And the second encrypted data and the third encrypted data obtained by the message digest algorithm further confirm whether the information of the target application program is correct or not so as to further determine whether the target application program needs to truly replace the telephone number or not and simultaneously preliminarily judge whether the network is safe or not. Thus, the target application program is further confirmed, and the information security is further improved.
And S310, if the confirmation information returned by the server side of the target application program is received, encrypting the number replacement request by using the generated public key to obtain first encrypted data.
In one embodiment, the steps include: and the server side of the preset replacement platform acquires the verification information corresponding to each target application program from the verification information required by the change and binding of all the application programs in the number replacement request according to the target application program, and encrypts the number replacement request comprising the verification information corresponding to the target application program by using the generated public key to obtain first encrypted data, wherein the number replacement request is not the verification information required by the change and binding of all the application programs but the verification information corresponding to each target application program. In this embodiment, the authentication information required for all the applications to change the binding is automatically allocated, so that the data before encryption corresponding to each target application may be different.
In an embodiment, the verification information in the number change request in this step is the verification information required by all the applications to change the binding, so that the data before encryption corresponding to each target application is identical.
S311, the first encrypted data is sent to the server side of the target application program.
S312, receiving first encrypted data sent by a server of a preset replacement platform.
S313, the private key is used for decrypting the first encrypted data to obtain an original communication number, a new communication number and verification information corresponding to the target application program.
If the verification information required by the binding change of all the application programs is automatically distributed, namely the verification information in the number change request only comprises the verification information corresponding to the target application program, the server side of the target application program can directly obtain the original communication number, the new communication number and the verification information corresponding to the target application program after decrypting the first encrypted data by using the private key.
If the verification information required for changing and binding all the application programs is not processed, that is, the verification information in the number change request includes the verification information required for changing and binding all the application programs, after the server side of the target application program decrypts the first encrypted data by using the private key, the verification information corresponding to the target application program needs to be automatically extracted from the decrypted data. Thus, the original communication number, the new communication number and the verification information corresponding to the target application program are obtained.
S314, searching the verification information prestored in the original communication number according to the original communication number, and judging whether the prestored verification information is consistent with the verification information obtained by decryption.
And S315, if the pre-stored verification information is consistent with the verification information obtained through decryption, replacing the original communication number of the target application program with a new communication number obtained through decryption.
S316, after the replacement is finished, a message of successful replacement is sent to the server of the preset replacement platform, and if the pre-stored verification information is inconsistent with the verification information obtained by decryption, a message of failed replacement is sent to the server of the preset replacement platform.
And S317, receiving a message of successful or failed replacement returned by the server side of the target application program.
In an embodiment, before the step of replacing the original communication number in the target application program with a new communication number, the server side of the target application program further executes the steps of: sending confirmation information of replacing the communication number to a client corresponding to the original communication number; and if the confirmation information sent by the client corresponding to the original communication number is received, replacing the original communication number in the target application program with a new communication number. Thus, it is further ensured whether the communication number is to be replaced by the user, and the security of replacing the communication number is improved.
In an embodiment, after the original communication number of the target application is replaced with a new communication number, the server side of the target application further performs the following steps: and sending the replaced new communication number and application program information (which can be application identification information and the like so as to be convenient for the server side of the preset replacement platform to identify) corresponding to the target application program to a server of the preset replacement platform, so that the server of the preset replacement platform stores the replaced new communication number to update the information in the database. Therefore, the data in the database of the preset replacement platform is updated in real time.
It should be noted that, in this embodiment, the same steps or the same noun descriptions as those in the embodiment of fig. 1 and fig. 2 are referred to the corresponding descriptions in the embodiment of fig. 1 and fig. 2, and are not repeated herein.
Since the original communication number, the new communication number, the verification information corresponding to the target application, and the like are relatively private data, the change of the communication number of the application is also an important thing for the user. The identification information of the target application program stored in the preset replacement platform is further encrypted through a message digest algorithm to obtain second encrypted data, the identification information stored in the target application program is encrypted through the same message digest algorithm to obtain third encrypted data, and the second encrypted data and the third encrypted data are compared to further judge whether the identification information of the target application program is correct and further judge whether a network is safe. In this way, the target application is further validated, and the information and the security of the information transfer are further improved.
Since the above embodiments in fig. 1 to fig. 3 have described the steps of operating on the server side of the preset replacement platform and the steps of operating on the server side of the target application program respectively, it is also obvious from fig. 1 to fig. 3 which steps are operating on the server side of the preset replacement platform and which steps are operating on the server side of the target application program. Meanwhile, due to space limitation, the present application will not separately describe a procedure of a method for replacing a communication number, which runs on a server side of a preset replacement platform, and a procedure of a method for replacing a communication number, which runs on a server side of a target application program. It is understood that a method of replacing a communication number at the server side running on the preset replacement platform and a method of replacing a communication number at the server side running on the target application program may be separately provided.
Fig. 4 is a schematic block diagram of a system for changing a communication number according to an embodiment of the present application. The system 100 includes a server side with a preset replacement platform and a server side with at least one target application program. The server end of the preset replacement platform comprises a device for replacing the communication number, wherein the device exists at the server end of the preset replacement platform. The server side of the target application includes means for replacing the communication number that exists at the server of the target application. As shown in fig. 4, the apparatus 110 for replacing a communication number existing on the server side of a preset replacement platform includes a first input receiving unit 111, a first application determining unit 112, an authentication information transmitting unit 113, and a first result receiving unit 114. The apparatus 120 for replacing a communication number of a server existing in a target application includes an authentication message receiving unit 121, a first extracting unit 122, a first search judging unit 123, a first replacing unit 124, and a first result transmitting unit 125.
The first input receiving unit 111 is configured to receive and store a number replacement request input by a user through a client of a preset replacement platform, where the number replacement request includes original communication numbers bound to all applications on the client, new communication numbers to be re-bound, and verification information required to change binding.
And a first application determining unit 112, configured to query, according to an original communication number in the number replacement request, an application program matched with the original communication number in a database of a preset replacement platform as a target application program.
A verification information sending unit 113, configured to send the number replacement request to the server of the target application, so that the server of the target application replaces the original communication number with the new communication number through the verification message.
A first result receiving unit 114, configured to receive a message of replacement success or failure returned by the server side of the target application.
The first verification message receiving unit 121 is configured to receive a number replacement request sent by a server of a preset replacement platform.
The first extracting unit 122 extracts the original communication number, the new communication number, and the verification information corresponding to the target application program in the number replacement request.
The first searching and determining unit 123 is configured to search, according to the extracted original communication number, the pre-stored verification information of the original communication number, and determine whether the extracted verification information corresponding to the target application program is consistent with the pre-stored verification information corresponding to the original communication number.
A first replacing unit 124, configured to replace the original communication number of the target application with the extracted new communication number if the extracted verification information corresponding to the target application is consistent with the pre-stored verification information corresponding to the original communication number.
A first result sending unit 125, configured to send a message that the replacement is successful to a server of a preset platform after the replacement is completed, and send a message that the replacement is failed to the server of the preset platform if the extracted verification information corresponding to the target application program is inconsistent with the pre-stored verification information corresponding to the original communication number.
In one embodiment, the apparatus 120 for replacing the communication number of the server existing in the target application further includes a confirmation information sending unit. And the confirmation information sending unit is used for sending the confirmation information of the replacement communication number to the client corresponding to the original communication number. If the confirmation information sent by the client corresponding to the original communication number is received, the first replacing unit 124 is triggered to replace the original communication number of the target application program with the extracted new communication number.
In one embodiment, the apparatus 120 for replacing a communication number of a server existing in the target application further includes a replacement information transmitting unit. And the replacement information sending unit is used for sending the replaced new communication number and the application program information corresponding to the target application program to a server of a preset replacement platform, so that the server of the preset replacement platform stores the replaced new communication number.
Fig. 5 is a schematic block diagram of a system for changing a communication number according to another embodiment of the present application. The system 200 includes a server side with a preset replacement platform and a server side with at least one target application program. The server end of the preset replacement platform comprises a device for replacing the communication number, wherein the device exists at the server end of the preset replacement platform. The server side of the target application includes means for replacing the communication number that exists at the server of the target application. As shown in fig. 5, the apparatus 210 for replacing a communication number existing on the server side of a preset replacement platform includes a second input receiving unit 211, a second application determining unit 212, a first secret key generating unit 213, a first private key transmitting unit 214, a first public key encrypting unit 215, a first encrypted data transmitting unit 216, and a second result receiving unit 217. The apparatus 220 for replacing a communication number of a server existing in a target application includes a first private key receiving unit 221, a first encrypted data receiving unit 222, a second extracting unit 223, a second search judging unit 224, a second replacing unit 225, and a second result transmitting unit 226.
The second input receiving unit 211 is configured to receive and store a number replacement request input by a user through a client of a preset replacement platform, where the number replacement request includes original communication numbers bound to all applications on the client, new communication numbers to be re-bound, and verification information required to change binding.
And a second application determining unit 212, configured to query, according to the original communication number in the number replacement request, an application program matched with the original communication number in a database of a preset replacement platform as a target application program.
A first secret key generating unit 213, configured to generate a pair of a public key and a private key through an asymmetric encryption algorithm.
A first private key sending unit 214, configured to send the generated private key to the server of the target application.
A first public key encryption unit 215, configured to encrypt the number change request with the generated public key to obtain first encrypted data.
A first encrypted data sending unit 216, configured to send the first encrypted data to the server of the target application.
A second result receiving unit 217, configured to receive a message of replacement success or failure returned by the server side of the target application program.
The first private key receiving unit 221 is configured to receive a private key sent by a server of a preset replacement platform.
The first encrypted data receiving unit 222 is configured to receive first encrypted data sent by a server of a preset replacement platform.
A second extracting unit 223, configured to decrypt the first encrypted data by using the private key to obtain the original communication number, the new communication number, and the verification information corresponding to the target application.
The second searching and determining unit 224 is configured to search, according to the original communication number, the verification information pre-stored in the original communication number, and determine whether the pre-stored verification information is consistent with the verification information obtained by decryption.
A second replacing unit 225, configured to replace the original communication number of the target application with a new communication number obtained by decryption if the pre-stored verification information matches the verification information obtained by decryption.
The second result sending unit 226 is configured to send a message that the replacement is successful to the server of the preset platform after the replacement is completed, and send a message that the replacement is failed to the server of the preset platform if the pre-stored verification information is inconsistent with the verification information obtained by decryption.
It is understood that in this embodiment, the first secret key generation unit 213, the first secret key transmission unit 214, the first public key encryption unit 215, and the first encrypted data transmission unit 216 correspond to the verification message transmission unit 113 in the embodiment of fig. 4, and it is understood that the verification message transmission unit 113 includes the first secret key generation unit 213, the first private key transmission unit 214, the first public key encryption unit 215, and the first encrypted data transmission unit 216. The first private key receiving unit 221 and the first encrypted data receiving unit 222 are equivalent to the verification message receiving unit 121 in the embodiment of fig. 4, and it is understood that the verification message receiving unit 121 includes the first private key receiving unit 221 and the first encrypted data receiving unit 222.
In one embodiment, the apparatus 220 for replacing a communication number of a server existing in the target application further includes a confirmation information sending unit. And the confirmation information sending unit is used for sending the confirmation information of the replacement communication number to the client corresponding to the original communication number. And if the confirmation information sent by the client corresponding to the original communication number is received, triggering a second replacing unit 225 to replace the original communication number of the target application program with a new communication number obtained by decryption.
In one embodiment, the apparatus 220 for replacing a communication number of a server existing in the target application further includes a replacement information transmitting unit. And the replacement information sending unit is used for sending the replaced new communication number and the application program information corresponding to the target application program to a server of a preset replacement platform, so that the server of the preset replacement platform stores the replaced new communication number.
Fig. 6 is a schematic block diagram of a system for changing a communication number according to another embodiment of the present application. The system 300 comprises a server side with a preset replacement platform and a server side with at least one target application program. The server end of the preset replacement platform comprises a device for replacing the communication number, wherein the device exists at the server end of the preset replacement platform. The server side of the target application includes means for replacing the communication number that exists at the server of the target application. As shown in fig. 5, the apparatus 310 for replacing a communication number existing on the server side of the preset replacement platform includes a third input receiving unit 311, a third application determining unit 312, a second secret key generating unit 313, a first digest generating unit 314, a second secret key transmitting unit 315, a second public key encrypting unit 316, a second encrypted data transmitting unit 317, and a third result receiving unit 318. The apparatus 320 for replacing a communication number existing at the server of the target application includes a second private key receiving unit 321, a second digest generating unit 322, a digest data determining unit 323, a digest result transmitting unit 324, a second encrypted data receiving unit 325, a third extracting unit 326, a third search determining unit 327, a third replacing unit 328, and a third result transmitting unit 329.
A third input receiving unit 311, configured to receive and store a number replacement request input by a user through a client of a preset replacement platform, where the number replacement request includes original communication numbers bound to all applications on the client, new communication numbers to be bound again, and verification information required to change binding.
A third application determining unit 312, configured to query, according to the original communication number in the number replacement request, an application program matched with the original communication number in a database of a preset replacement platform as a target application program.
A second secret key generation unit 313, configured to generate a pair of a public key and a private key through an asymmetric encryption algorithm.
The first digest generating unit 314 is configured to encrypt the identification information of the target application program through a message digest algorithm to obtain second encrypted data.
The second private key sending unit 315 is configured to send the generated private key and the generated second encrypted data to the server side of the target application program.
The second public key encryption unit 316 is configured to encrypt the number replacement request by using the generated public key to obtain first encrypted data if receiving the confirmation information returned by the server side of the target application program.
A second encrypted data sending unit 317, configured to send the first encrypted data to the server of the target application.
A third result receiving unit 318, configured to receive a message of replacement success or failure returned by the server side of the target application program.
The second private key receiving unit 321 is configured to receive a private key and second encrypted data sent by a server of a preset replacement platform.
The second digest generating unit 322 is configured to obtain the identification information of the target application, and encrypt the identification information by using the same message digest algorithm to obtain third encrypted data.
A digest data determination unit 323 configured to determine whether the second encrypted data and the third encrypted data are consistent.
A digest result sending unit 324, configured to send confirmation information to a server of a preset replacement platform if the second encrypted data is consistent with the third encrypted data; and if the second encrypted data is inconsistent with the third encrypted data, sending a message of failed replacement to a server of a preset platform.
A second encrypted data receiving unit 325, configured to receive the first encrypted data sent by the server of the preset replacement platform.
A third extracting unit 326, configured to decrypt the first encrypted data with the private key to obtain an original communication number, a new communication number, and verification information corresponding to the target application.
The third searching and determining unit 327 is configured to search, according to the original communication number, the verification information pre-stored in the original communication number, and determine whether the pre-stored verification information is consistent with the verification information obtained by decryption.
A third replacing unit 328, configured to replace the original communication number of the target application program with a new communication number obtained by decryption if the pre-stored verification information is consistent with the verification information obtained by decryption.
A third result sending unit 329, configured to send, after the replacement is completed, a message of successful replacement to the server of the preset platform, and send, if the pre-stored verification information is inconsistent with the verification information obtained by decryption, a message of failed replacement to the server of the preset platform.
It is understood that in this embodiment, the second secret key generation unit 313, the first digest generation unit 314, the second private key transmission unit 315, the second public key encryption unit 316, and the second encrypted data transmission unit 317 are equivalent to the verification message transmission unit 113 in the embodiment of fig. 4, and it is understood that the verification message transmission unit 113 includes the second secret key generation unit 313, the first digest generation unit 314, the second private key transmission unit 315, the second public key encryption unit 316, and the second encrypted data transmission unit 317. In this embodiment, the second private key receiving unit 321, the second digest generating unit 322, the digest data determining unit 323, the digest result transmitting unit 324, and the second encrypted data receiving unit 325 correspond to the authentication message receiving unit 121 in the embodiment of fig. 4, and it is understood that the authentication message receiving unit 121 includes the second private key receiving unit 321, the second digest generating unit 322, the digest data determining unit 323, the digest result transmitting unit 324, and the second encrypted data receiving unit 325.
In one embodiment, the device 320 for replacing the communication number of the server existing in the target application further includes a confirmation information sending unit. And the confirmation information sending unit is used for sending the confirmation information of the replacement communication number to the client corresponding to the original communication number. If the confirmation information sent by the client corresponding to the original communication number is received, the third replacing unit 328 is triggered to replace the original communication number of the target application program with the new communication number obtained by decryption.
In one embodiment, the device 320 for replacing the communication number of the server existing in the target application further includes a replacement information transmitting unit. And the replacement information sending unit is used for sending the replaced new communication number and the application program information corresponding to the target application program to a server of a preset replacement platform, so that the server of the preset replacement platform stores the replaced new communication number.
It should be noted that the above device for replacing the communication number existing at the server side of the preset replacement platform and the device for replacing the communication number existing at the server of the target application program may exist independently. Since the components corresponding to the respective unit modules when they exist independently are the same as those in the system for exchanging communication numbers, they are not described separately.
It should be noted that, as will be clear to those skilled in the art, specific implementation processes of the above apparatus and each unit may refer to corresponding descriptions in the foregoing method embodiments, and for convenience and brevity of description, no further description is provided herein.
The above-described apparatus may be implemented in the form of a computer program which is executable on a computer device as shown in fig. 7.
Fig. 7 is a schematic block diagram of a computer device according to an embodiment of the present application. The device is a terminal or the like, such as a server with a preset replacement platform. The device 400 includes a processor 402, memory, and network interface 403 connected by a system bus 401, where the memory may include a non-volatile storage medium 404 and an internal memory 405.
The non-volatile storage medium 404 may store an operating system 4041 and computer programs 4042. The computer program 4042 stored in the non-volatile storage medium may implement the above-described method for replacing a communication number on the server side running on the preset replacement platform when executed by the processor 402. The processor 402 is used to provide computing and control capabilities that support the operation of the overall device 400. The internal memory 405 provides an environment for running a computer program in the non-volatile storage medium, and when the computer program is executed by the processor 402, the processor 402 may execute the method for replacing the communication number at the server side running on the preset replacement platform. The network interface 403 is used for network communication. It will be appreciated by those skilled in the art that the arrangements shown in the drawings are merely block diagrams of some of the arrangements relevant to the inventive arrangements and are not intended to limit the devices to which the inventive arrangements may be applied, and that a particular device may include more or less components than those shown, or may have some components combined, or may have a different arrangement of components.
The processor 402 is configured to execute a computer program stored in a memory to implement any embodiment of the method for replacing a communication number at a server side running on a preset replacement platform.
Another embodiment of the invention also provides a schematic block diagram of a computer device. In this embodiment, the device is a terminal or other device, such as a server of a target application. Referring specifically to fig. 7, the computer apparatus includes the same structure as the computer apparatus shown in fig. 7. The computer device is different from the computer device shown in fig. 7 in that when the computer program stored in the non-volatile storage medium is executed by the processor 402, any of the above-described embodiments of the method for replacing a communication number on the server side running in the target application program can be implemented.
It should be understood that in the embodiments of the present application, the Processor 402 may be a Central Processing Unit (CPU), and the Processor may be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program may be stored in a storage medium, which may be a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present application also provides a storage medium. The storage medium may be a computer-readable storage medium including a non-volatile computer-readable storage medium. The storage medium stores a computer program which, when executed by a processor, implements any of the embodiments of the method for replacing a communication number at a server side running on a preset replacement platform described above.
In another embodiment of the present application, a storage medium is also provided. The storage medium may be a computer-readable storage medium including a non-volatile computer-readable storage medium. The storage medium stores a computer program which, when executed by a processor, implements any of the embodiments of the method for replacing a communication number at a server side running on a target application program described above.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus, device and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and the division of the unit is only one logical function division, and other division manners may be available in actual implementation. It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, devices and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (7)

1. A method for replacing a communication number is applied to a server side of a preset replacement platform, the preset replacement platform further comprises a client side communicated with the server side, and an application program is installed on the client side, and the method is characterized by comprising the following steps:
receiving and storing a number replacement request input by a user through the client, wherein the number replacement request comprises original communication numbers bound by all application programs on the client, new communication numbers needing to be bound again and verification information needed for changing the binding;
according to the original communication number, an application program matched with the original communication number is inquired in a database of a preset replacement platform to serve as a target application program;
generating a pair of public key and private key by an asymmetric encryption algorithm;
encrypting the identification information of the target application program through a message digest algorithm to obtain second encrypted data;
sending the second encrypted data and the generated private key to a server side of the target application program, so that after the server side of the target application program receives the second encrypted data, whether the second encrypted data is consistent with third encrypted data generated by the target application program is judged, and if the second encrypted data is consistent with the third encrypted data, confirmation information is returned; if the second encrypted data is inconsistent with the third encrypted data, returning a message of failed replacement; the third encrypted data is obtained by encrypting the corresponding identification information by the target application program according to the same message digest algorithm;
if the confirmation information returned by the server side of the target application program is received, the number replacement request is encrypted by using the generated public key to obtain first encrypted data;
sending the first encrypted data to a server side of the target application program, so that the server side of the target application program decrypts the first encrypted data by using a received private key to obtain an original communication number, a new communication number and verification information corresponding to the target application program, and the server side of the target application program judges whether the corresponding verification information is consistent with the verification information prestored in the original communication number, and under the condition that the verification information corresponding to the target application program is consistent with the prestored verification information, the original communication number in the target application program is replaced by the new communication number, and under the condition that the verification information corresponding to the target application program is inconsistent with the prestored verification information, a message of failed replacement is returned;
and receiving a message of successful or failed replacement returned by the server side of the target application program.
2. A method for replacing a communication number is applied to a server side of a target application program, and is characterized by comprising the following steps:
receiving a private key sent by a server of a preset replacement platform;
receiving second encrypted data sent by a server of a preset replacement platform, wherein the second encrypted data is obtained by encrypting identification information of the target application program by the server of the preset replacement platform by using a message digest algorithm;
acquiring identification information of the target application program, and encrypting the identification information by using the same message digest algorithm to obtain third encrypted data;
judging whether the second encrypted data and the third encrypted data are consistent;
if the second encrypted data is inconsistent with the third encrypted data, sending a message of failed replacement to a server of a preset replacement platform;
if the second encrypted data is consistent with the third encrypted data, sending confirmation information to a server side of a preset replacement platform, so that the server of the preset replacement platform sends first encrypted data according to the confirmation information, and receiving the first encrypted data sent by the server of the preset replacement platform, wherein the first encrypted data is obtained by encrypting a number replacement request by the server of the preset replacement platform by using a generated public key, the private key and the public key are a pair of secret keys, and the number replacement request comprises all original communication numbers bound to the application on a client side of the preset replacement platform, new communication numbers required to be bound again and verification information required by binding change;
decrypting the first encrypted data by using the private key to obtain an original communication number, a new communication number and verification information corresponding to the target application program;
searching verification information prestored in the original communication number according to the original communication number, and judging whether the prestored verification information is consistent with the verification information obtained by decryption;
if the prestored verification information is consistent with the verification information obtained through decryption, replacing the original communication number corresponding to the target application program with a new communication number obtained through decryption, and sending a message of successful replacement to a server of a preset replacement platform;
and if the pre-stored verification information is inconsistent with the verification information obtained by decryption, sending a message of failed replacement to a server of a preset replacement platform.
3. The method of claim 2, wherein prior to the step of replacing the original communication number of the target application with the decrypted new communication number, the method further comprises:
sending confirmation information of replacing the communication number to a client corresponding to the original communication number;
and if the confirmation information sent by the client corresponding to the original communication number is received, the step of replacing the original communication number of the target application program with the new communication number obtained by decryption is executed.
4. An apparatus for changing a communication number, the apparatus comprising means for performing a method as claimed in claim 1, or comprising means for performing a method as claimed in any of claims 2 to 3.
5. A system for changing a communication number, the system for changing a communication number comprising a server side of a predetermined changing platform and a server side of at least one target application, wherein the server side of the predetermined changing platform comprises means for performing the method according to claim 1, and the server side of the target application comprises means for performing the method according to any one of claims 2 to 3.
6. A computer device, comprising a memory, and a processor coupled to the memory;
the memory is used for storing a computer program; the processor is configured to execute a computer program stored in the memory to perform the method of claim 1 or to perform the method of any one of claims 2-3.
7. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the method of claim 1 or implements the method of any of claims 2-3.
CN201910326624.5A 2019-04-23 2019-04-23 Method, device and system for replacing communication number, computer equipment and storage medium Active CN110138744B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910326624.5A CN110138744B (en) 2019-04-23 2019-04-23 Method, device and system for replacing communication number, computer equipment and storage medium
PCT/CN2019/103341 WO2020215568A1 (en) 2019-04-23 2019-08-29 Communication number changing method, apparatus and system, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910326624.5A CN110138744B (en) 2019-04-23 2019-04-23 Method, device and system for replacing communication number, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110138744A CN110138744A (en) 2019-08-16
CN110138744B true CN110138744B (en) 2021-11-09

Family

ID=67570502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910326624.5A Active CN110138744B (en) 2019-04-23 2019-04-23 Method, device and system for replacing communication number, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN110138744B (en)
WO (1) WO2020215568A1 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110138744B (en) * 2019-04-23 2021-11-09 平安科技(深圳)有限公司 Method, device and system for replacing communication number, computer equipment and storage medium
CN110536280B (en) * 2019-08-28 2021-08-17 联想(北京)有限公司 Data processing method, device, computing equipment and medium
CN110944087A (en) * 2019-11-12 2020-03-31 广州供电局有限公司 Control method and device, medium and equipment for fixed-line telephone call record
CN111669744B (en) * 2020-06-11 2023-10-20 维沃移动通信有限公司 Information processing method and device and electronic equipment
CN114531484A (en) * 2021-02-04 2022-05-24 深圳思为科技有限公司 Message pushing method, device and system
CN113127930A (en) * 2021-05-17 2021-07-16 阳光电源股份有限公司 Charging data processing method, device and computer readable storage medium
CN115134119B (en) * 2022-05-25 2024-03-26 中国信息通信研究院 Method and device for verifying identity of Internet registered user, server and storage medium
CN115134117B (en) * 2022-05-25 2023-10-27 中国信息通信研究院 Method and device for verifying identity of Internet registered user, server and storage medium
CN115134116B (en) * 2022-05-25 2024-03-26 中国信息通信研究院 Method and device for verifying identity of Internet registered user, server and storage medium
CN115134118B (en) * 2022-05-25 2024-03-26 中国信息通信研究院 Method and device for verifying identity of Internet registered user, server and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107371142A (en) * 2016-05-13 2017-11-21 中兴通讯股份有限公司 A kind of method, mobile terminal, server and the system of the number of changing notice
CN108829838A (en) * 2018-06-19 2018-11-16 彭建超 A kind of account information batch processing method and server
CN109450949A (en) * 2018-12-28 2019-03-08 努比亚技术有限公司 Mostly application releases the method for number binding, mobile terminal, readable storage medium storing program for executing

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150397B (en) * 2007-10-25 2011-12-28 宇龙计算机通信科技(深圳)有限公司 Method and mobile terminal for secure communication between mobile terminal and computer
CN105704640B (en) * 2014-11-25 2019-06-25 中国移动通信集团公司 A kind of information processing method, device, support platform and system
CN105472596A (en) * 2015-11-23 2016-04-06 小米科技有限责任公司 Binding method of communication number, apparatus and terminal thereof
CN105700936A (en) * 2016-01-14 2016-06-22 福州靠谱网络有限公司 Operating method and apparatus for application program of Android simulator
CN107659931B (en) * 2016-07-25 2020-11-24 中国移动通信集团上海有限公司 Method and device for changing bound mobile phone number
US20180131796A1 (en) * 2016-11-08 2018-05-10 Sriram Varadhan Mobile App to Update Phone Number Automatically
CN110138744B (en) * 2019-04-23 2021-11-09 平安科技(深圳)有限公司 Method, device and system for replacing communication number, computer equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107371142A (en) * 2016-05-13 2017-11-21 中兴通讯股份有限公司 A kind of method, mobile terminal, server and the system of the number of changing notice
CN108829838A (en) * 2018-06-19 2018-11-16 彭建超 A kind of account information batch processing method and server
CN109450949A (en) * 2018-12-28 2019-03-08 努比亚技术有限公司 Mostly application releases the method for number binding, mobile terminal, readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN110138744A (en) 2019-08-16
WO2020215568A1 (en) 2020-10-29

Similar Documents

Publication Publication Date Title
CN110138744B (en) Method, device and system for replacing communication number, computer equipment and storage medium
US8396218B2 (en) Cryptographic module distribution system, apparatus, and program
WO2017202025A1 (en) Terminal file encryption method, terminal file decryption method, and terminal
CN110690956B (en) Bidirectional authentication method and system, server and terminal
EP3824592A1 (en) Public-private key pair protected password manager
CN109145628B (en) Data acquisition method and system based on trusted execution environment
CN111294203B (en) Information transmission method
CN111130798B (en) Request authentication method and related equipment
CN108270561B (en) Data sending method and device and key index generating method and device
CN109936546B (en) Data encryption storage method and device and computing equipment
CN112800393B (en) Authorization authentication method, software development kit generation method, device and electronic equipment
CN113836506A (en) Identity authentication method, device, system, electronic equipment and storage medium
CN114915504B (en) Security chip initial authentication method and system
CN113301036A (en) Communication encryption method and device, equipment and storage medium
CN114501431A (en) Message transmission method and device, storage medium and electronic equipment
JP4028849B2 (en) Communication system, portable terminal, and program
JP2007020065A (en) Decryption backup method, decryption restoration method, attestation device, individual key setting machine, user terminal, backup equipment, encryption backup program, decryption restoration program
KR20070062632A (en) Mobile message and file security implementation by cryptography
CN115941328A (en) Sharable user data encryption processing method, device and system
CN115766270A (en) File decryption method, file encryption method, key management method, device and equipment
CN110968878A (en) Information transmission method, system, electronic device and readable medium
CN113946862A (en) Data processing method, device and equipment and readable storage medium
CN114139180A (en) Method and device for processing secret key
CN111726320B (en) Data processing method, device and equipment
CN109783674A (en) Image identification method, device, system, computer equipment and storage medium

Legal Events

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