Number portability data processing method, device, equipment and readable storage medium

By embedding the digital watermark generated by the recipient's identity value in the number portable network data, the problem of low security of number portable network data is solved, and the data traceability and security is realized, ensuring that the data can be traced from the source when it is leaked and preventing unauthorized use.

CN115442800BActive Publication Date: 2025-08-08CHINA MOBILE INFORMATION TECHNOLOGY CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110624524.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-04
Publication Date
2025-08-08
Estimated Expiration
2041-06-04

AI Technical Summary

Technical Problem

The security of number portable data is low, and the prior art is difficult to effectively protect its integrity and privacy in transmission and storage processes.

Method used

By encoding the network description information in the number portable network data, embedding the digital watermark generated by the recipient's identity value, using the Chinese remainder theorem to generate a highly random watermark value, and embed it into the network description information to ensure that the data can trace the source of the leakage when it is leaked.

Benefits of technology

It improves the security of the number portable data, can track the source of the leakage during data leakage, prevent data from being copied and copied unauthorized, and maintain the plain text status of the transfer number for easy identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115442800B_ABST
    Figure CN115442800B_ABST
Patent Text Reader

Abstract

The present invention provides a method, apparatus, device, and readable storage medium for processing number portability data. The method uses a recipient identity value to encode porting description information in the number portability data, embedding the recipient identity value within the number portability data. In this way, if the number portability data is leaked, the leaked number portability data can be decoded using a reverse decoding rule to obtain the recipient identity value, and then the recipient information corresponding to the recipient identity value can be obtained. The recipient information reflects the information of the party that leaked the number portability data, enabling tracking of number portability data leaks and improving the security of the number portability data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and readable storage medium for processing number portability data. Background Art

[0002] The "number portability" service refers to a service in which mobile phone users change their contracted telecommunications operators within the same local telephone network while keeping their user numbers unchanged.

[0003] The number portability service will generate a large amount of number portability data, which contains user numbers and corresponding porting description information. Each operator will use this number portability data to perform corresponding business operations, so the number portability data is very important.

[0004] Therefore, how to ensure the security of number portability data has become a topic of general consideration in the industry. Summary of the Invention

[0005] The present invention provides a number portability data processing method, device, equipment and readable storage medium, which are used to solve the defect of low security of number portability data in the existing technology and improve the security of the number portability data.

[0006] The present invention provides a method for processing number portability data, comprising:

[0007] Obtaining number portability data, the number portability data including a porting number and porting description information of the porting number;

[0008] Encoding the network porting description information using a recipient identity value according to an encoding rule, wherein the recipient identity value is a digital identity value assigned to a recipient of the number porting data;

[0009] The encoded number portability data is sent to a recipient corresponding to the recipient identity value.

[0010] According to a number portability data processing method provided by the present invention, encoding the number portability description information using the recipient identity value according to an encoding rule includes:

[0011] Generating a digital watermark according to the encoding rule and the recipient identity value;

[0012] The digital watermark is embedded in the network transfer description information.

[0013] According to a number portability data processing method provided by the present invention, before encoding the porting description information using the recipient identity value according to the encoding rule, a target number of prime numbers are selected from a preset prime group to calculate the product, and a value not greater than the product is selected as the recipient identity value;

[0014] Generating a digital watermark according to the receiver identity value includes:

[0015] Using the receiver identity value to calculate the remainder of each prime number in the preset prime array, to obtain a candidate remainder array;

[0016] Calculating the remainder of the number of prime numbers in the preset prime group using the porting number to obtain a target remainder;

[0017] The target remainder is used as an indication position, and a corresponding candidate remainder is selected from the candidate remainder group to serve as a watermark value of the digital watermark.

[0018] A number portability data processing method provided by the present invention further includes:

[0019] Before selecting a target number of prime numbers from a preset prime group and calculating a product, identifying a network switching time in the network switching description information;

[0020] The preset element array is obtained within a value range of a specified time unit of the network switching time.

[0021] The present invention also provides a method for processing number portability data, comprising:

[0022] Obtaining number portability data configured with a recipient identity value, the number portability data including a porting number and porting description information for the porting number, the number portability data being obtained by encoding the porting description information using the recipient identity value according to an encoding rule;

[0023] Decoding the network transfer description information using a decoding rule corresponding to the encoding rule to obtain the recipient identity value;

[0024] Obtain the recipient information of the number portability data corresponding to the recipient identity value.

[0025] According to a number portability data processing method provided by the present invention, decoding the number portability data using a decoding rule to obtain the recipient identity value includes:

[0026] Using the decoding rule, extracting the watermark value of the digital watermark from the porting description information corresponding to each of the target number of porting numbers;

[0027] Using the target number of porting numbers to calculate the remainder of the number of prime numbers in the preset prime group, to obtain the target number of first remainders, wherein the first remainders and the watermark value for the porting number form a corresponding relationship;

[0028] Using the target number of the first remainders as indicator positions, respectively selecting the target number of candidate prime numbers from the preset prime group, and calculating the product of the selected target number of candidate prime numbers;

[0029] Dividing the product by the target number of candidate prime numbers, the target number of cardinality values are obtained as candidate results;

[0030] Using the candidate result to calculate the remainder of the corresponding candidate prime number to obtain a second remainder corresponding to the candidate result, wherein the second remainder and the watermark value are in a corresponding relationship with the first remainder;

[0031] Determining whether the second remainder is equal to the corresponding watermark value;

[0032] If so, determining intermediate results based on the candidate results, and obtaining the target number of intermediate results corresponding to the target number of candidate results;

[0033] If not, summing the candidate result corresponding to the second remainder and the base value as a new candidate result;

[0034] Using the new candidate result, returning the remainder of the corresponding candidate prime number using the candidate result;

[0035] The target number of intermediate results are summed, and the product is modulo the sum value to obtain the recipient identity value.

[0036] The present invention also provides a number portability data processing device, comprising:

[0037] An acquisition module is configured to acquire number portability data, wherein the number portability data includes a porting number and porting description information of the porting number;

[0038] an encoding module, encoding the network porting description information using a recipient identity value according to an encoding rule, wherein the recipient identity value is a digital identity value assigned to a recipient of the number porting data;

[0039] The sending module sends the encoded number portability data to the recipient corresponding to the recipient identity value.

[0040] The present invention also provides a number portability data processing device, comprising:

[0041] A first acquisition module acquires number portability data configured with a recipient identity value, the number portability data including a porting number and porting description information for the porting number, the number portability data being obtained by encoding the porting description information using the recipient identity value according to an encoding rule;

[0042] A decoding module, which decodes the network transfer description information using a decoding rule corresponding to the encoding rule to obtain the recipient identity value;

[0043] The second acquisition module acquires the recipient information of the number portability data corresponding to the recipient identity value.

[0044] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and runnable on the processor, wherein when the processor executes the program, the steps of any of the above-mentioned number portability data processing methods are implemented.

[0045] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of any of the above-mentioned number portability data processing methods are implemented.

[0046] The method, apparatus, device, and readable storage medium for processing number portability data provided by the present invention use a recipient identity value to encode the porting description information in the number portability data, embedding the recipient identity value within the number portability data. In this way, if the number portability data is leaked, the leaked number portability data can be decoded using reverse decoding rules to obtain the recipient identity value, and then the recipient information corresponding to the recipient identity value can be obtained. The recipient information reflects the information of the party that leaked the number portability data, enabling tracking of number portability data leaks and improving the security of number portability data. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction is given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0048] Figure 1 This is one of the flow charts of the number portability data processing method provided by the present invention;

[0049] Figure 2 This is the second flow chart of the number portability data processing method provided by the present invention;

[0050] Figure 3 This is the third flow chart of the number portability data processing method provided by the present invention;

[0051] Figure 4 This is the fourth flow chart of the number portability data processing method provided by the present invention;

[0052] Figure 5This is the fifth flow chart of the number portability data processing method provided by the present invention;

[0053] Figure 6 This is one of the structural diagrams of the number portability data processing device provided by the present invention;

[0054] Figure 7 This is the second structural diagram of the number portability data processing device provided by the present invention;

[0055] Figure 8 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0056] The inventors discovered in practice that before number portability was implemented, various application systems could determine which operator a mobile number belonged to based on the mobile phone number itself, and thus send text messages to the corresponding operator's SMS gateway. With the increase in number portability services, this previous method of determining the operator of a mobile phone number is no longer feasible, resulting in significant problems with network-wide text message delivery, such as sending errors. In this case, using number portability data can accurately determine the operator to which a user number belongs, which fully demonstrates the importance of number portability data.

[0057] During the number portability process, the porting data is sent to each operator in plain text, ensuring that each operator can identify the ported number and its description. However, the plain text format also reduces the security of the ported number.

[0058] The inventors of the present invention have conducted research on this issue and found that although encrypting the number portability data can improve the security of the ported number, it also makes the ported number in a non-plaintext state, making it impossible to view the ported number through the encrypted number portability data, reducing its practical significance.

[0059] Based on this, the inventors of the present invention learned of a prior art method for credit rating of users who have ported numbers, comprising: receiving a credit rating request from a first user initiated by an operator node via a consortium chain, where the first user is the user who has ported numbers; responding to the first user credit rating request, controlling a node in the consortium chain that stores the first user's historical information to perform a multi-party secure computation based on a preset model to obtain a credit rating result for the first user; and sending the credit rating result for the first user to the operator node. However, this solution does not address the issue of low data security associated with number portability.

[0060] To this end, the inventors of the present invention have proposed a method, apparatus, device and readable storage medium for processing number portability data. By tracking the flow of number portability data, the source of leakage can be found in the event of a number portability data leak, which can limit the risk of number portability data leakage to a certain extent.

[0061] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.

[0062] The following combination Figure 1-Figure 5 The present invention describes the number portability data processing method.

[0063] Reference Figure 1 As shown, the number portability data processing method according to the embodiment of the present invention includes the following steps:

[0064] Step 110: Acquire number portability data, where the number portability data includes a porting number and porting description information of the porting number.

[0065] Step 120: Encode the network porting description information using a recipient identity value according to an encoding rule, where the recipient identity value is a digital identity value assigned to a recipient of the number porting data;

[0066] Step 130: Send the encoded number portability data to the recipient corresponding to the recipient identity value.

[0067] Using the solution of the embodiment of the present invention, the recipient identity value is used to encode the network porting description information, and the network porting number remains in plain text, which does not hinder the identification of the network porting number and allows the number porting data to be tracked.

[0068] In the embodiment of the present invention, the number portability data may be obtained by obtaining the number portability data from a third party, or may be extracted from a database.

[0069] The porting number refers to the user's number. The porting description information describes the number porting process, including the porting time, the porting operator, and the ported operator, without specific limitations. The porting description information can be used to identify porting information, such as determining the current operator of the porting number.

[0070] In this embodiment of the present invention, encoding is used to embed the recipient identity value into the number porting description information. Encoding is the process of converting information from one form or format to another, while decoding is the corresponding process of restoring the information. This allows the recipient identity value to be calculated in reverse order, and the recipient information is then determined based on the recipient identity value. The recipient information reflects the recipient's identity and also indicates the data source of the number porting data.

[0071] The embodiment of the present invention pre-assigns a receiver identity value to the receiver. The receiver identity value is a digital identity value that does not directly reflect the receiver information. A corresponding relationship between the receiver identity value and the receiver information is established.

[0072] The recipient identity value may be generated randomly or according to a specific rule. By establishing a corresponding relationship between the recipient identity value and the recipient information, the corresponding recipient information can be found according to the recipient identity value.

[0073] The encoding process provided in the embodiment of this specification uses the receiver identity value to encode the network transfer description information according to the encoding rules. Please refer to Figure 2 As shown:

[0074] Step 201: Generate a digital watermark according to the recipient identity value in accordance with the encoding rules;

[0075] Step 202: embed the digital watermark into the network switching description information.

[0076] Digital watermarking embeds specific information into a digital signal, which could be a document, audio, image, or video. Digital watermarking not only hides descriptive information for network transfer, but also prevents or blocks unauthorized copying and duplication of digital media.

[0077] Specifically, digital watermarks are difficult to tamper with, difficult to forge, and imperceptible to the senses. Embedding a digital watermark does not affect the availability of the protected data. Digital watermarks are resistant to certain operations on the embedded data and will not be erased by minor operations, including individual bit errors generated during data transmission.

[0078] Specifically in the embodiment of the present invention, the digital watermark can prevent the number portability data from being copied and replicated, so that even if the number portability data is leaked, it is not easy to be extracted, thereby significantly improving the security of the number portability data.

[0079] In an embodiment of the present invention, a digital watermark is embedded in the network switching description information. The network switching description information here can be information that has little relevance to the network switching process, such as the network switching time, so that it will not affect the hiding of information that is more relevant to the network switching process.

[0080] In an embodiment of the present invention, before encoding the network switching description information using the receiver identity value according to the encoding rule, a target number of prime numbers are selected from a preset prime group to calculate the product, and a value not greater than the product is selected as the receiver identity value.

[0081] In this case, refer to Figure 3 As shown, generating a digital watermark according to the receiver identity value includes:

[0082] Step 301: Calculate the remainder of each prime number in the preset prime array using the receiver's identity value to obtain a candidate remainder array;

[0083] Step 302: Calculate the remainder of the number of prime numbers in the preset prime group using the ported network number to obtain a target remainder;

[0084] Step 303: Using the target remainder as an indication position, a corresponding candidate remainder is selected from the candidate remainder array as a watermark value of the digital watermark.

[0085] The embodiment of the present invention uses the Chinese remainder theorem to generate a digital watermark, which can enhance the randomness of the digital watermark. In the application scenario of number portability data protection, applying the Chinese remainder theorem to generate a digital watermark can bring unexpected technical effects.

[0086] In the embodiment of the present invention, the preset pixel group may be pre-stored in a database, and thus the preset pixel group may be retrieved from the database.

[0087] In another embodiment of the present invention, the following method can be used to generate a preset element array:

[0088] Before selecting a target number of prime numbers from a preset prime group and calculating a product, identifying a network switching time in the network switching description information;

[0089] The preset element array is obtained within a value range of a specified time unit of the network switching time.

[0090] The designated time unit of the network switching time may be one of hours, minutes, or seconds. The value range of each unit is 0 to 59, and the preset prime array includes 17 prime numbers within the value range.

[0091] In this case, the digital watermark can be embedded in the specified time unit of the network switching time, specifically by replacing the number at that position with the digital watermark or covering the number.

[0092] In another embodiment, the digital watermark may also be embedded in other locations of the network transfer description information.

[0093] In the embodiment of the present invention, the preset element group may also be generated by other digital information in the network transfer description information, or may be generated randomly, which is not specifically limited here.

[0094] In the embodiment of the present invention, the target quantity referred to above can be set as needed and is not specifically limited.

[0095] use Figure 1 In the embodiment shown, a digital watermark can be embedded in the number portability data. Figure 4The number portability data processing method of the embodiment of the present invention can be used to Figure 1 The number portability data obtained by the method shown is decoded to track the source information of the number portability data.

[0096] The method of the present invention comprises:

[0097] Step 410: Obtain number portability data configured with a recipient identity value, the number portability data including a porting number and porting description information for the porting number, the number portability data being obtained by encoding the porting description information using the recipient identity value according to an encoding rule;

[0098] Step 420: Decode the network transfer description information using a decoding rule corresponding to the encoding rule to obtain the recipient identity value;

[0099] Step 430: Obtain the recipient information of the number portability data corresponding to the recipient identity value.

[0100] The decoding process in the embodiment of the present invention is the reverse process of encoding. The decoding process can parse out the recipient identity value. Based on the correspondence between the recipient identity value and the recipient information, the recipient information can be determined, and the recipient information can be used to identify the source of the number portability data leakage.

[0101] correspond Figure 3 In the embodiment shown, Figure 4 During decoding in the illustrated embodiment, a digital watermark may be extracted from the network transfer description information, and the digital watermark may be decoded to obtain the recipient identity value.

[0102] Specifically, refer to Figure 5 As shown, decoding the number portability data using a decoding rule to obtain the recipient identity value may include:

[0103] Step 501: using the decoding rule, extracting the watermark value of the digital watermark from the porting description information corresponding to each of the target number of porting numbers;

[0104] Step 502: Calculate the remainder of the number of prime numbers in the preset prime group using the target number of ported numbers to obtain the target number of first remainders. The first remainders and the watermark value for the ported number form a corresponding relationship, so that the first remainders and the watermark value form a one-to-one correspondence.

[0105] Step 503: using a target number of first remainders as indicator positions, selecting the target number of candidate prime numbers from the preset prime group, and calculating the product of the selected target number of candidate prime numbers;

[0106] Step 504: Dividing the product by the target number of candidate prime numbers to obtain the target number of cardinality values, which are respectively used as candidate results;

[0107] Step 505: Calculate the remainder of the corresponding candidate prime number using the candidate result to obtain a second remainder corresponding to the candidate result, wherein the second remainder and the watermark value are in a corresponding relationship with the first remainder;

[0108] Step 506: Determine whether the second remainder is equal to the corresponding watermark value;

[0109] If yes, then execute step 507: determine an intermediate result according to the candidate result corresponding to the second remainder, thereby obtaining a target number of intermediate results corresponding to the target number of candidate results;

[0110] Step 508: Sum the target number of intermediate results, and use the sum to modulo the product to obtain the recipient identity value.

[0111] If not, then proceed to step 509: sum the candidate result corresponding to the second remainder with the corresponding base value to obtain a new candidate result, and use the new candidate result to return the remainder of the candidate result with respect to the corresponding candidate prime number.

[0112] The encoding-decoding process of the number portability data processing method of the present invention is described below with reference to specific examples.

[0113] For the encoding process, use the number portability data:

[0114] 189******19,00109750,00359750,00109750,2020-10-22,14:00:00.

[0115] The number portability data processing method according to an embodiment of the present invention includes:

[0116] 1. Obtain all prime numbers within the range of 60 for the second digit of the time to form a preset prime group {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59}. Since the digital watermark needs to be embedded in the network transfer time, the value range of the hour, minute, and second digits of the network transfer time is 0-59, a total of 60 prime numbers.

[0117] 2. Calculate the product of the first five prime numbers, which is 2310;

[0118] 3. Determine the recipient identity value based on the value not greater than the product 2310, and assign the recipient identity value to the recipient. For example, if the recipient identity value is less than 2310, it can be 2219.

[0119] 4. Calculate the remainders of the receiver's identity value to the above 17 prime numbers {1, 2, 4, 0, 8, 9, 9, 15, 11, 15, 18, 36, 5, 26, 10, 46, 36} as the candidate remainder group;

[0120] 5. Use the mobile phone number to calculate the remainder of the number of prime numbers in the preset prime array (17), and obtain the target remainder between 0 and 16, which is 2, as the indicator position;

[0121] 6. Select the candidate remainder 4 at the indicated position 2 from the above candidate remainder array as the watermark value of the digital watermark;

[0122] 7. Format the watermark value according to the second digit of the time to obtain 04, and then add the value 04 to the second digit of the porting time to obtain the encoded number porting data as follows:

[0123] 189******19,00109750,00359750,00109750,2020-10-22,14:00:04.

[0124] Number portability data for the following four ported numbers:

[0125] 138******67,00209790,00109790,00209790,2020-10-22 14:00:00;

[0126] 133******42,00109730,00359730,00109730,2020-10-22 14:00:00;

[0127] 176******73,00359710,00209710,00359710,2020-10-22 14:00:00;

[0128] 155******51,00359710,00209710,00359710,2020-10-22 14:00:00;

[0129] use Figure 4 The encoded number portability data obtained after embedding the digital watermark using the method shown are as follows:

[0130] 138******67,00209790,00109790,00209790,2020-10-22 14:00:36;

[0131] 133******42,00109730,00359730,00109730,2020-10-22 14:00:11;

[0132] 176******73,00359710,00209710,00359710,2020-10-22 14:00:09;

[0133] 155******51,00359710,00209710,00359710,2020-10-2214:00:01.

[0134] By using the solution of the present invention, a receiver identity value is assigned to all recipients of number portability data, and the number portability data sent to them is digitally watermarked. Specifically, the digital watermarking is performed based on the Chinese remainder theorem (Sun Tzu's theorem) and Euler's theorem in number theory.

[0135] In the above embodiment of the present invention, the first five prime numbers in the preset prime array are used to determine the recipient identity value. This is merely an example and is not a specific limitation. In other embodiments, any position or number of prime numbers in the preset prime array may be selected to calculate the product, and this is not a specific limitation.

[0136] During the number portability data processing process, the number portability data of multiple ported numbers can be processed at one time. For the number portability data processing process of each ported number, please refer to Figure 4 The method shown.

[0137] With respect to the above embodiment of the present invention, the encoded number portability data is obtained. The following number portability data processing method can be used to decode the encoded number portability data to derive the original number portability data:

[0138] 1. Get 17 prime numbers within 60 to form a preset prime group {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59};

[0139] 2. Obtain the number porting data for the five porting numbers of the same recipient. Calculate the remainder of 17 using the five porting numbers. The remainders are 2, 16, 8, 5, and 0, respectively.

[0140] 3. Extract the watermark values 04, 36, 11, 09, and 01 from the second digit of the network transfer time, convert them into integers 4, 36, 11, 9, and 1, and obtain the watermark array [remainder, watermark value], specifically [2, 4] [16, 36] [8, 11] [5, 9] [0, 1];

[0141] 4. Use the five remainders obtained in the above steps as indicator positions, find the corresponding five prime numbers in the above preset prime array, and calculate the product: 5*59*23*13*2=176410.

[0142] 5. Divide the calculated product by the corresponding prime number to obtain five base values 35282, 2990, 7670, 13570, and 88205, which are respectively used as candidate results;

[0143] 6. Calculate the intermediate results corresponding to each candidate result:

[0144] The base value 35282 modulo 5 is 2, which is not equal to the watermark value 4. Therefore, 35282 + 35282 = 70564 is calculated. 70564 modulo 5 is 4, which is equal to the corresponding watermark value, so the intermediate result is determined to be 70564.

[0145] The base value 2990 modulo the remainder 59 is 40, which is not equal to the watermark value 36. The above method is used until the candidate result 2990*54=53460. The modulo 59 is 36, so 53460 is determined.

[0146] The remainder 23 modulo the base value 7670 is 11, which is exactly the watermark value 11. Therefore, the intermediate result is determined to be 7670.

[0147] The base value 13570 modulo 13 is 11, which is not equal to the watermark value 9. The above method is used until the candidate result 13570*2=27140 is modulo 5 and 11 is obtained, so the intermediate result is determined to be 27140.

[0148] The remainder modulo the base value 88205 is 1, which is exactly the watermark value 1, so the intermediate result is determined to be 88205.

[0149] 7. Use the above five intermediate results to find the remainder of 176410, (70564+53460+7670+27140+88205)%176410=2219, where 2219 is the receiver identity value, which is consistent with the receiver identity value used in the above encoding.

[0150] Using the above solution, when number portability data is leaked, as long as a record containing the ported number and porting time is obtained, the recipient's identity value can be obtained, thereby tracing the recipient who leaked the number portability data.

[0151] The number portability data of the five ported numbers used in the above embodiment are not limited by this embodiment and can be randomly selected.

[0152] The above encoding and decoding processes both use 5 prime numbers, which is not limited to this embodiment and can be any other number of prime numbers, so that the encoding and decoding processes both use the same number of prime numbers.

[0153] The above encoding and decoding embodiments use the Chinese remainder theorem to encode and decode number portability data, which can be effectively applied in number portability scenarios to track ported numbers, bringing unexpected technical effects.

[0154] The following describes a number portability data processing device provided by the present invention. The number portability data processing device described below and the number portability data processing method described above can refer to each other.

[0155] Reference Figure 6 As shown, the number portability data processing device provided by the present invention may include:

[0156] An acquisition module 610 acquires number portability data, where the number portability data includes a porting number and porting description information of the porting number;

[0157] An encoding module 620 encodes the network porting description information using a recipient identity value according to an encoding rule, where the recipient identity value is a digital identity value assigned to a recipient of the number porting data;

[0158] The sending module 630 sends the encoded number portability data to the recipient corresponding to the recipient identity value.

[0159] Reference Figure 7 As shown, the number portability data processing device provided by the present invention may include:

[0160] A first acquiring module 710 acquires number portability data configured with a recipient identity value, the number portability data including a porting number and porting description information for the porting number, the number portability data being obtained by encoding the porting description information using the recipient identity value according to an encoding rule;

[0161] A decoding module 720 decodes the network transfer description information using a decoding rule corresponding to the encoding rule to obtain the recipient identity value;

[0162] The second obtaining module 730 obtains the recipient information of the number portability data corresponding to the recipient identity value.

[0163] Figure 8 An example of a physical structure diagram of an electronic device is shown below. Figure 8As shown, the electronic device may include: a processor (processor) 810, a communication interface (Communications Interface) 820, a memory (memory) 830 and a communication bus 840, wherein the processor 810, the communication interface 820, and the memory 830 communicate with each other via the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the number portability data processing method, which includes:

[0164] Obtaining number portability data, the number portability data including a porting number and porting description information of the porting number;

[0165] Encoding the network porting description information using a recipient identity value according to an encoding rule, wherein the recipient identity value is a digital identity value assigned to a recipient of the number porting data;

[0166] The encoded number portability data is sent to a recipient corresponding to the recipient identity value.

[0167] Alternatively, the number portability data processing method includes:

[0168] Obtaining number portability data configured with a recipient identity value, the number portability data including a porting number and porting description information for the porting number, the number portability data being obtained by encoding the porting description information using the recipient identity value according to an encoding rule;

[0169] Decoding the network transfer description information using a decoding rule corresponding to the encoding rule to obtain the recipient identity value;

[0170] Obtain the recipient information of the number portability data corresponding to the recipient identity value.

[0171] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0172] On the other hand, the present invention further provides a computer program product, comprising a computer program stored on a non-transitory computer-readable storage medium, wherein the computer program comprises program instructions. When the program instructions are executed by a computer, the computer can perform the number portability data processing method provided by the above methods, the method comprising:

[0173] Obtaining number portability data, the number portability data including a porting number and porting description information of the porting number;

[0174] Encoding the network porting description information using a recipient identity value according to an encoding rule, wherein the recipient identity value is a digital identity value assigned to a recipient of the number porting data;

[0175] The encoded number portability data is sent to a recipient corresponding to the recipient identity value.

[0176] Alternatively, the number portability data processing method may include:

[0177] Obtaining number portability data configured with a recipient identity value, the number portability data including a porting number and porting description information for the porting number, the number portability data being obtained by encoding the porting description information using the recipient identity value according to an encoding rule;

[0178] Decoding the network transfer description information using a decoding rule corresponding to the encoding rule to obtain the recipient identity value;

[0179] Obtain the recipient information of the number portability data corresponding to the recipient identity value.

[0180] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for processing number portability data provided above is implemented, the method comprising:

[0181] Obtaining number portability data, the number portability data including a porting number and porting description information of the porting number;

[0182] Encoding the network porting description information using a recipient identity value according to an encoding rule, wherein the recipient identity value is a digital identity value assigned to a recipient of the number porting data;

[0183] The encoded number portability data is sent to a recipient corresponding to the recipient identity value.

[0184] Alternatively, the number portability data processing method may include:

[0185] Obtaining number portability data configured with a recipient identity value, the number portability data including a porting number and porting description information for the porting number, the number portability data being obtained by encoding the porting description information using the recipient identity value according to an encoding rule;

[0186] Decoding the network transfer description information using a decoding rule corresponding to the encoding rule to obtain the recipient identity value;

[0187] Obtain the recipient information of the number portability data corresponding to the recipient identity value.

[0188] The processor-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO)), optical storage (such as CDs, DVDs, BDs, HVDs, etc.), and semiconductor storage (such as ROMs, EPROMs, EEPROMs, non-volatile memories (NANDFLASH), solid-state drives (SSDs)), etc.

[0189] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.

[0190] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.

[0191] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A method for processing number portability data, characterized in that: include: Obtaining number portability data, the number portability data including a porting number and porting description information of the porting number; Encoding the network porting description information using a recipient identity value according to an encoding rule, wherein the recipient identity value is a digital identity value assigned to a recipient of the number porting data; Sending the encoded number portability data to a recipient corresponding to the recipient identity value; Before encoding the network transfer description information using the recipient identity value according to the encoding rule, selecting a target number of prime numbers from a preset prime group to calculate the product, and selecting a value not greater than the product as the recipient identity value; Encoding the network transfer description information using the receiver identity value according to the encoding rule includes: Generating a digital watermark according to the encoding rule and the recipient identity value; Embedding the digital watermark into the network transfer description information; Generating a digital watermark according to the receiver identity value includes: Using the receiver identity value to calculate the remainder of each prime number in the preset prime array, to obtain a candidate remainder array; Calculating the remainder of the number of prime numbers in the preset prime group using the porting number to obtain a target remainder; The target remainder is used as an indication position, and a corresponding candidate remainder is selected from the candidate remainder group to serve as a watermark value of the digital watermark.

2. The number portability data processing method according to claim 1, wherein: Also includes: Before selecting a target number of prime numbers from a preset prime group and calculating a product, identifying a network switching time in the network switching description information; The preset element array is obtained within a value range of a specified time unit of the network switching time.

3. A number portability data processing method, characterized in that: include: Obtaining number portability data configured with a recipient identity value, the number portability data including a porting number and porting description information for the porting number, the number portability data being obtained by encoding the porting description information using the recipient identity value according to an encoding rule; Decoding the network transfer description information using a decoding rule corresponding to the encoding rule to obtain the recipient identity value; Obtaining the recipient information of the number portability data corresponding to the recipient identity value; Decoding the number portability data using a decoding rule to obtain the recipient identity value includes: Using the decoding rule, extracting the watermark value of the digital watermark from the porting description information corresponding to each of the target number of porting numbers; Using the target number of porting numbers to calculate the remainder of the number of prime numbers in the preset prime group, to obtain the target number of first remainders, wherein the first remainders and the watermark value for the porting number form a corresponding relationship; Using the target number of the first remainders as indicator positions, respectively selecting the target number of candidate prime numbers from the preset prime group, and calculating the product of the selected target number of candidate prime numbers; Dividing the product by the target number of candidate prime numbers, the target number of cardinality values are obtained as candidate results; Using the candidate result to calculate the remainder of the corresponding candidate prime number to obtain a second remainder corresponding to the candidate result, wherein the second remainder and the watermark value are in a corresponding relationship with the first remainder; Determining whether the second remainder is equal to the corresponding watermark value; If yes, determining an intermediate result according to the candidate result corresponding to the second remainder, thereby obtaining the target number of intermediate results corresponding to the target number of candidate results; If not, summing the candidate result corresponding to the second remainder and the corresponding base value as a new candidate result; Using the new candidate result, returning the remainder of the corresponding candidate prime number using the candidate result; Summing the target number of intermediate results, and using the sum to modulo the product to obtain the recipient identity value; The receiver identity value is a value selected from a preset prime group after calculating the product of a target number of prime numbers and then not greater than the product.

4. A number portability data processing device, characterized in that: include: An acquisition module is configured to acquire number portability data, wherein the number portability data includes a porting number and porting description information of the porting number; an encoding module, encoding the network porting description information using a recipient identity value according to an encoding rule, wherein the recipient identity value is a digital identity value assigned to a recipient of the number porting data, and the recipient identity value is a value selected by multiplying a target number of prime numbers selected from a preset prime group and not greater than the product; A sending module, sending the encoded number portability data to a recipient corresponding to the recipient identity value; Encoding the network transfer description information using the receiver identity value according to the encoding rule includes: Generating a digital watermark according to the encoding rule and the recipient identity value; Embedding the digital watermark into the network transfer description information; Generating a digital watermark according to the receiver identity value includes: Using the receiver identity value to calculate the remainder of each prime number in the preset prime array, to obtain a candidate remainder array; Calculating the remainder of the number of prime numbers in the preset prime group using the porting number to obtain a target remainder; The target remainder is used as an indication position, and a corresponding candidate remainder is selected from the candidate remainder group to serve as a watermark value of the digital watermark.

5. A number portability data processing device, characterized in that: include: an acquisition module, configured to acquire number portability data configured with a recipient identity value, the number portability data including a porting number and porting description information for the porting number, the number portability data being obtained by encoding the porting description information using the recipient identity value according to an encoding rule; A decoding module, which decodes the network transfer description information using a decoding rule corresponding to the encoding rule to obtain the recipient identity value; A second acquisition module acquires the recipient information of the number portability data corresponding to the recipient identity value; Decoding the number portability data using a decoding rule to obtain the recipient identity value includes: Using the decoding rule, extracting the watermark value of the digital watermark from the porting description information corresponding to each of the target number of porting numbers; Using the target number of porting numbers to calculate the remainder of the number of prime numbers in the preset prime group, to obtain the target number of first remainders, wherein the first remainders and the watermark value for the porting number form a corresponding relationship; Using the target number of the first remainders as indicator positions, respectively selecting the target number of candidate prime numbers from the preset prime group, and calculating the product of the selected target number of candidate prime numbers; Dividing the product by the target number of candidate prime numbers, the target number of cardinality values are obtained as candidate results; Using the candidate result to calculate the remainder of the corresponding candidate prime number to obtain a second remainder corresponding to the candidate result, wherein the second remainder and the watermark value are in a corresponding relationship with the first remainder; Determining whether the second remainder is equal to the corresponding watermark value; If yes, determining an intermediate result according to the candidate result corresponding to the second remainder, thereby obtaining the target number of intermediate results corresponding to the target number of candidate results; If not, summing the candidate result corresponding to the second remainder and the corresponding base value as a new candidate result; Using the new candidate result, returning the remainder of the corresponding candidate prime number using the candidate result; Summing the target number of intermediate results, and using the sum to modulo the product to obtain the recipient identity value; The receiver identity value is a value selected from a preset prime group after calculating the product of a target number of prime numbers and then not greater than the product.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the number portability data processing method according to any one of claims 1 to 3 are implemented.

7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the number portability data processing method according to any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Information embedding method and device, data security processing method and device and equipment

    CN110399732A