Mobile data traffic monitoring methods, devices, electronic equipment and media
By encoding and encrypting the target application traffic data on the mobile phone, using the device number to generate an encryption password, and encrypting and transmitting the traffic data on the mobile phone, the problem of data leakage caused by plain text transmission is solved and data security is improved.
Patent Information
- Application Number
- CN202410558563.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-08
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-05-08
AI Technical Summary
There is a risk of data leakage in the clear text data transmission between the mobile phone and the server, which makes the user's private data easily intercepted illegally and the data security is low.
By obtaining the target application traffic data and device number on the mobile phone, using the target encoding table to encode the data, and generating an encryption password based on the device number to encrypt and transmit the traffic data, ensuring that the application sequence and traffic data list are transmitted in ciphertext, and the server only Corresponding algorithm rules need to be set to decrypt and obtain data.
It effectively reduces the risk of data leakage during data transmission, avoids leakage of user privacy data, improves data security, and makes mobile phone traffic data transmission safer.
Smart Images

Figure CN118283610B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data transmission, and more specifically, to a method, device, electronic device and computer-readable medium for monitoring mobile phone traffic data. Background Art
[0002] The mobile phone generally collects statistics on the traffic usage information of various types of applications on the device, such as short videos, music, communication software, browsers, etc., to facilitate understanding of the user's traffic usage. The mobile phone sends this information to the operator server that provides network services, so that the operator server can recommend reasonable traffic services to the user based on the traffic usage information and push them to the mobile phone.
[0003] At present, information transmission between the mobile phone and the server is mainly carried out in plain text. However, the above information is the user's more sensitive privacy data. If it is illegally intercepted, it is easy to cause the user's privacy data to be leaked. Therefore, the data transmission process of this method has the risk of data leakage, so the data security is relatively low. Summary of the invention
[0004] The embodiments of the present application provide a method, device, electronic device and computer-readable medium for monitoring mobile phone traffic data, which effectively reduce the risk of data leakage in the data transmission process, avoid the leakage of user privacy data, and effectively improve data security.
[0005] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0006] According to one aspect of an embodiment of the present application, a method for monitoring mobile phone traffic data is provided, comprising: obtaining traffic data corresponding to each target application in the mobile phone and a device number of a terminal device where the mobile phone is located, wherein the target application is an application that runs on the mobile phone under a target network and generates traffic; importing the traffic data corresponding to each target application into a preset data table, the data table comprising an application sequence obtained by sorting the target applications according to a predetermined application sorting rule and a traffic data list obtained by sorting the traffic data corresponding to each target application according to the predetermined application sorting rule; using a target coding table to sequentially encode the application sequence in the data table sorted according to the predetermined application sorting rule to obtain a first coding value corresponding to the application sequence; selecting a character for the first coding value based on the device number to obtain a first character; generating an encryption password based on the first character, encrypting the traffic data list according to the encryption password to obtain encrypted data, and sending the encrypted data, the first coding value and the device number to a server, so that the server generates traffic service push information based on the encrypted data, the first coding value and the device number; receiving the traffic service push information from the server to select a traffic service based on the traffic service push information.
[0007] Optionally, the target coding table includes a standard Chinese coding table and a target English coding table, the standard Chinese coding table includes all Chinese characters and coding numbers mapped one-to-one with Chinese characters, the target English coding table includes all English characters and coding numbers mapped one-to-one with English characters; the English characters include uppercase and lowercase English letters, and the target coding table is used to sequentially encode the application sequence sorted according to a predetermined application sorting rule in the data table to obtain a first coding value corresponding to the application sequence, including: based on the standard Chinese coding table, the Chinese names of each target application of the application sequence are sequentially encoded to obtain a second coding value corresponding to the application sequence; based on the target English coding table, the English names of each target application of the application sequence are sequentially encoded code, obtain the third code value corresponding to the application sequence; determine the sum of the total characters included in the second code value and the characters included in the third code value, and use the first digit of the sum of the total characters as the first marking digit; in the second code value corresponding to the application sequence, move the code value corresponding to the target application whose application sequence is in the first few digits of the first marking digit to the end of the second code value to obtain an updated second code value; in the third code value corresponding to the application sequence, move the code value corresponding to the target application whose application sequence is in the first few digits of the first marking digit to the end of the third code value to obtain an updated third code value; based on the updated second code value and the updated third code value, generate the first code value corresponding to the application sequence.
[0008] Optionally, the method of sequentially encoding the English names of each target application of the application sequence based on the target English coding table to obtain a third coding value corresponding to the application sequence includes: obtaining a standard Chinese coding table to sequentially encode the Chinese names corresponding to each application in the application directory to obtain a fourth coding value; performing a hash calculation based on the fourth coding value to obtain a hash value; determining an English character that exists in both the hash value and the device number as a target character, and generating an identification number based on the total number of characters of the target character; adding the identification number to the end of the coding number corresponding to the character identical to the target character in the standard English coding table to generate the corresponding target English coding table; sequentially encoding the English names of each target application of the application sequence based on the target English coding table to obtain a third coding value corresponding to the application sequence.
[0009] Optionally, the character selection of the first coding value based on the device number to obtain the first character includes: obtaining a first marking number based on the total number of characters corresponding to the character with the most repeated occurrences among the characters contained in the device number; obtaining a second marking number based on the total number of characters corresponding to the remaining characters after deduplication of the characters contained in the device number; generating a rule selection serial number based on the first marking number and the second marking number; if the first marking number and the second marking number are both single digits, then the number consisting of the first marking number as a tens digit and the second marking number as a single digit is used as the rule selection serial number; if there are numbers with more than ten digits in the first marking number and the second marking number, then the sum of the first marking number and the second marking number is used as the rule selection serial number; based on the rule selection serial number, matching the corresponding character selection rule in the management database; wherein the management database stores a mapping relationship between the rule selection serial number and the character selection rule; based on the matched character selection rule, character selection is performed on the first coding value, and the selected characters are combined in sequence to obtain the encrypted password.
[0010] Optionally, the server generates traffic service push information based on the encrypted data, the first coding value and the device number, including: using the target coding table to decode the first coding value to obtain the corresponding application sequence; selecting characters for the first coding value based on the device number to obtain a second character; generating a decryption password based on the second character, and decrypting the encrypted data according to the decryption password to obtain the traffic data list; based on the application sequence and the traffic data list, obtaining the traffic data corresponding to each target application; based on the traffic data corresponding to each target application, determining the traffic service push information in the traffic service information library.
[0011] According to one aspect of an embodiment of the present application, a mobile phone traffic data monitoring device is provided, comprising: an acquisition unit, for acquiring traffic data corresponding to each target application in the mobile phone terminal and a device number of a terminal device where the mobile phone terminal is located, wherein the target application is an application that runs on the mobile phone terminal under a target network and generates traffic; an import unit, for importing the traffic data corresponding to each target application into a preset data table, the data table comprising an application sequence obtained by sorting the target applications according to a predetermined application sorting rule and a traffic data list obtained by sorting the traffic data corresponding to each target application according to a predetermined application sorting rule; an encoding unit, for encoding the traffic data corresponding to the target applications in the data table according to a predetermined application sorting rule using a target encoding table. An application sequence sorted according to a specified application sorting rule is encoded in sequence to obtain a first coding value corresponding to the application sequence; a selection unit is used to select a character for the first coding value based on the device number to obtain a first character; an encryption unit is used to generate an encryption password based on the first character, and encrypt the traffic data list according to the encryption password to obtain encrypted data, and send the encrypted data, the first coding value and the device number to a server, so that the server generates traffic service push information based on the encrypted data, the first coding value and the device number; a receiving unit is used to receive the traffic service push information from the server, so as to select a traffic service based on the traffic service push information.
[0012] Optionally, the target coding table includes a standard Chinese coding table and a target English coding table, the standard Chinese coding table includes all Chinese characters and coding numbers mapped one-to-one with Chinese characters, and the target English coding table includes all English characters and coding numbers mapped one-to-one with English characters; the English characters include uppercase and lowercase English letters, and the encoding unit includes: a first encoding module, used to encode the Chinese names of each target application of the application sequence in sequence based on the standard Chinese coding table to obtain a second coding value corresponding to the application sequence; a second encoding module, used to encode the English names of each target application of the application sequence in sequence based on the target English coding table to obtain a third coding value corresponding to the application sequence; a marking module, used to determine the second coding The sum of the characters contained in the value and the total characters contained in the third coding value, and the first digit of the sum of the total characters is used as the first marking digit; a first moving module is used to move the coding value corresponding to the target application of the application sequence that is in the first few digits of the first marking digit in the second coding value corresponding to the application sequence to the end of the second coding value to obtain an updated second coding value; a second moving module is used to move the coding value corresponding to the target application of the application sequence that is in the first few digits of the first marking digit in the third coding value corresponding to the application sequence to the end of the third coding value to obtain an updated third coding value; a generating module is used to generate the first coding value corresponding to the application sequence based on the updated second coding value and the updated third coding value.
[0013] Optionally, the second encoding module includes: a first encoding submodule, used to obtain a standard Chinese encoding table to encode the Chinese names corresponding to each application in the application directory in sequence to obtain a fourth encoding value; a calculation submodule, used to perform hash calculation based on the fourth encoding value to obtain a hash value; a generation submodule, used to determine an English character that exists in both the hash value and the device number as a target character, and generate an identification number based on the total number of characters of the target character; an adding submodule, used to add the identification number to the end of the encoding number corresponding to the character identical to the target character in the standard English encoding table to generate the corresponding target English encoding table; a second encoding submodule, used to encode the English names of each target application in the application sequence in sequence based on the target English encoding table to obtain a third encoding value corresponding to the application sequence.
[0014] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the mobile phone traffic data monitoring method as described in the above embodiments.
[0015] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for monitoring mobile phone traffic data as described in the above embodiment is implemented.
[0016] In the technical solutions provided in some embodiments of the present application, by acquiring the traffic data corresponding to each target application and importing it into a preset data table, an application sequence is obtained by sorting each target application according to a predetermined application sorting rule, and the traffic data corresponding to each target application is sorted according to the predetermined application sorting rule to obtain a traffic data list; the application sequence is encoded in sequence by using a target coding table to obtain a first coding value corresponding to the application sequence; a character is selected for the first coding value based on the device number to obtain a first character; an encryption password is generated based on the first character, and the traffic data list is encrypted according to the encryption password to obtain encrypted data, and the encrypted data, the first coding value and the device number are sent to the server; since the application sequence and the traffic data list are both transmitted in ciphertext, the server only needs to be set with corresponding algorithm rules to realize the smooth acquisition of the traffic data corresponding to each target application on the mobile phone according to the encrypted data, the first coding value and the device number, so that the server can generate traffic service push information based on the traffic data corresponding to each target application on the mobile phone, so that the mobile phone can select traffic service based on the traffic service push information. The traffic data corresponding to each target application on the mobile phone is encrypted and transmitted in a specific way, which effectively reduces the risk of data leakage in the data transmission process, effectively avoids the leakage of user privacy data, and improves data security.
[0017] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0019] Figure 1 A flow chart of a method for monitoring mobile phone traffic data in an embodiment of the present application is shown.
[0020] Figure 2 A block diagram of a mobile phone traffic data monitoring device according to an embodiment of the present application is shown.
[0021] Figure 3 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0022] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0023] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0024] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0025] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0026] refer to Figure 1 , Figure 1 A flow chart of a mobile phone traffic data monitoring method according to an embodiment of the present application is shown. The mobile phone traffic data monitoring method in this embodiment is applied to a mobile phone. The mobile phone traffic data monitoring method includes at least steps S110 to S160, which are described in detail as follows.
[0027] Step S110, obtaining the traffic data corresponding to each target application in the mobile terminal and the device number of the mobile terminal, wherein the target application is an application that runs on the mobile terminal under the target network and generates traffic;
[0028] Step S120, importing the flow data corresponding to each target application into a preset data table, wherein the data table includes an application sequence obtained by sorting each target application according to a predetermined application sorting rule and a flow data list obtained by sorting the flow data corresponding to each target application according to the predetermined application sorting rule;
[0029] Step S130, using the target coding table to sequentially encode the application sequence in the data table that is sorted according to the predetermined application sorting rule, to obtain a first coding value corresponding to the application sequence;
[0030] Step S140, selecting a character for the first code value based on the device number to obtain a first character;
[0031] Step S150, generating an encryption password based on the first character, and encrypting the traffic data corresponding to each target application in the application list according to the encryption password to obtain encrypted data, and sending the encrypted data, the first coding value and the device number to the server, so that the server generates traffic service push information based on the encrypted data, the first coding value and the device number;
[0032] Step S160, receiving traffic service push information from the server, and selecting a traffic service based on the traffic service push information.
[0033] In this embodiment, the system architecture using the technical solution of this application includes a mobile phone end and a server end, and the mobile phone end can be an electronic device such as a smart phone. The server end is a server, which can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, and big data and artificial intelligence platforms. Between the mobile phone end and the server end, a communication medium of various connection types for providing a communication link can be included, for example, a wired communication link or a wireless communication link. The mobile phone end sends the encrypted data and the first coding value to the server end, so that the server end generates traffic service push information based on the encrypted data, the first coding value and the device number; receives the traffic service push information from the server end to select the traffic service based on the traffic service push information.
[0034] Specifically, as described in the above step S110, the mobile phone obtains the traffic data corresponding to each of its own target applications and the device number of the terminal device where the mobile phone is located. The above device number is identification information that uniquely identifies the terminal device where the mobile phone is located, usually a string of numbers and English letters. Of course, the device number can also contain specific symbols, which are not limited here. The target application is an application that the mobile phone runs on the target network and generates traffic. The target network includes one or more of 5G, 4G, 3G, and 2G, which are not specifically limited here. The above applications are applications installed on the mobile phone, which may include various types of applications such as short videos, music, communication software, video playback, shopping, etc.
[0035] As described in the above step S120, the data table is a kind of table data storing two dimensional data, namely, the application sequence and the traffic data list corresponding to each target application. The application sorting rule is a sorting rule for sorting multiple different applications according to a predetermined arrangement order. The application sequence is a sequence obtained after sorting the target applications according to the above application sorting rule. For example, the target applications are A, B, C, D, where A, B, C, D specifically refer to the Chinese name of the application. The application sorting rule includes B before A, D before C, and A before D. Then the generated application sequence is (B, A, D, C). The traffic data corresponding to each target application is also filled into the above data table in sequence according to the application sorting rule to obtain a traffic data list. For example, the traffic data corresponding to the four applications A, B, C, and D are a, b, c, and d respectively. According to the arrangement order of B, A, D, and C, the traffic data corresponding to each of B, A, D, and C are also filled into the data table in sequence, thereby obtaining a traffic data list of (b, a, d, c). It is understandable that the above traffic data includes the total traffic data used by each target application, and of course, may also include the traffic data used by the target application in different time periods, which is not specifically limited here.
[0036] As described in step S130 above, the server uses the target coding table to sequentially encode each application name in the application sequence sorted according to the predetermined application sorting rule in the data table to obtain the first coding value corresponding to the application sequence. The target coding table includes all application names and coding numbers mapped one by one with the application names. The target coding table is used to encode each application name in the application sequence into a number. Through the target coding table, each application name in the application sequence can be encoded, and then the target application information running on the mobile phone under the target network and generating traffic is converted into ciphertext information, which can effectively prevent the leakage of data information.
[0037] As described in step S140 above, character selection is performed on the first encoding value based on the device number to obtain the first character. In this embodiment, a specific character selection rule can be obtained according to the device number, and the character selection rule refers to a rule for selecting corresponding characters from a string, for example, selecting the first three characters and the last three characters, or selecting characters on the first, second, fourth, fifth, eighth, and ninth digits, which is not specifically limited here.
[0038] In one embodiment, selecting a character for the first encoding value based on the device number to obtain a first character includes:
[0039] The first marking number is obtained based on the total number of characters corresponding to the most repeated characters in the characters contained in the device number; the second marking number is obtained based on the total number of characters corresponding to the remaining characters after the characters contained in the device number are deduplicated. The device number will contain more characters. For example, if the device number is the string "FFWDL2WOD1DD2021090", it can be seen from the above that in the string corresponding to the device number, the character that appears the most times is "D", and the total number of characters of the character "D" is 4, so the first marking number is "4". The string corresponding to the device number after deduplication is obtained is "FWDL2O109", and the total number of characters corresponding to the remaining characters after the characters contained in the device number are deduplicated is 9, so the second marking number is "9".
[0040] Generate a rule selection sequence number based on the first marking number and the second marking number; if the first marking number and the second marking number are both single digits, use the first marking number as the tens digit and the second marking number as the single digit as the rule selection sequence number; if there is a number with more than ten digits between the first marking number and the second marking number, use the sum of the first marking number and the second marking number as the rule selection sequence number. For example, if the first marking number is "4" and the second marking number is "9", since the first marking number and the second marking number are both single digits, the rule selection sequence number is "49"; if the first marking number is "4" and the second marking number is "11", since the second marking number has more than ten digits, the rule selection sequence number is "15".
[0041] Based on the rule selection sequence number, the corresponding character selection rule is matched in the management database; wherein, the management database stores the mapping relationship between the rule selection sequence number and the character selection rule. The management database stores the mapping relationship between the rule selection sequence number and the character selection rule; the character selection rules corresponding to the above different rule selection sequences are different, such as the character selection rule corresponding to the rule selection sequence number "15" is to select the first three and last three characters, and the character selection rule corresponding to the rule selection sequence number "49" is to select the characters on the first, second, fourth, fifth, eighth and ninth digits. Based on the matching character selection rule, character selection is performed on the first encoding value, and the selected characters are combined in sequence to obtain an encrypted password.
[0042] In the scheme of this embodiment, specific character selection rules can be selected based on the specificity of the device number. When the device number of the above-mentioned mobile phone changes, the character selection rules will be different, which will directly affect the subsequent encryption password generation results. Therefore, only a specific mobile phone can generate a correct and valid encryption password, and other terminal devices cannot generate a correct encryption password, so that the generated encryption password is specific.
[0043] As described in the above step S150, an encryption password is generated based on the first character, and the traffic data list is encrypted according to the encryption password to obtain encrypted data, and the encrypted data, the first coding value and the device number are sent to the server, so that the server generates traffic service push information based on the encrypted data, the first coding value and the device number. Among them, the mobile phone can directly use the first character as the corresponding encryption password, and encrypt the traffic data list according to the encryption password to obtain encrypted data. The server is provided with an algorithm rule corresponding to the mobile phone, so that the server can obtain the traffic data corresponding to each target application running on the mobile phone under the target network and generating traffic based on the encrypted data, the first coding value and the device number, and then determine the traffic service push information suitable for pushing to the mobile phone in the traffic service information library according to the traffic data corresponding to each target application.
[0044] In one embodiment, the server generates traffic service push information based on the encrypted data, the first coding value and the device number, including:
[0045] The target coding table is used to decode the first coding value to obtain a corresponding application sequence. The server is provided with an algorithm rule corresponding to the mobile phone, and the corresponding application sequence can be obtained by decoding the first coding value.
[0046] Select a character for the first encoding value based on the device number to obtain a second character; generate a decryption password based on the second character, and decrypt the encrypted data according to the decryption password to obtain a traffic data list; obtain the traffic data corresponding to each target application based on the application sequence and the traffic data list. The server generates a decryption password corresponding to or the same as the encryption password based on the algorithm rules corresponding to the server, and decrypts the encrypted data according to the decryption password to obtain a traffic data list. After obtaining the traffic data list, it is only necessary to sequentially associate the traffic data corresponding to each target application of the application sequence with each target application to obtain the traffic data corresponding to each target application on the mobile phone.
[0047] Based on the traffic data corresponding to each target application, the traffic service push information is determined in the traffic service information library. After the server obtains the traffic data used by each target application that runs on the mobile phone under the target network and has generated traffic, the server can determine the types corresponding to all target applications used by the mobile phone and which types of applications use the highest proportion of traffic based on the traffic data used by each target application that runs on the mobile phone under the target network and has generated traffic, and then determine the traffic service push information in the traffic service information library based on the above information, thereby generating traffic service push information that has a high degree of match with the traffic usage information of the mobile phone based on the traffic usage information corresponding to each target application used by the mobile phone.
[0048] As described in the above step S160, the traffic service push information is received from the server, and the traffic service is selected based on the traffic service push information, so that the user can reasonably select the traffic service according to the traffic service push information of the mobile phone.
[0049] In the technical solution of this embodiment, by obtaining the traffic data corresponding to each target application and importing it into a preset data table, an application sequence is obtained by sorting each target application according to a predetermined application sorting rule, and the traffic data corresponding to each target application is sorted according to the predetermined application sorting rule to obtain a traffic data list; the application sequence is encoded in sequence by using a target coding table to obtain a first coding value corresponding to the application sequence; a character is selected for the first coding value based on the device number to obtain a first character; an encryption password is generated based on the first character, and the traffic data list is encrypted according to the encryption password to obtain encrypted data, and the encrypted data, the first coding value and the device number are sent to the server; since the application sequence and the traffic data list are both transmitted in ciphertext, the server only needs to set up corresponding algorithm rules to achieve smooth acquisition of the traffic data corresponding to each target application on the mobile phone according to the encrypted data, the first coding value and the device number, so that the server can generate traffic service push information based on the traffic data corresponding to each target application on the mobile phone, so that the mobile phone can select traffic service based on the traffic service push information. The traffic data corresponding to each target application on the mobile phone is encrypted and transmitted in a specific way, which effectively reduces the risk of data leakage in the data transmission process, effectively avoids the leakage of user privacy data, and improves data security.
[0050] In one embodiment, in order to improve the specificity of encoding the application sequence, the target encoding table includes a standard Chinese encoding table and a target English encoding table. The target encoding table is used to sequentially encode the application sequence sorted according to the predetermined application sorting rule in the data table, and the first encoding value corresponding to the application sequence is obtained, which specifically includes:
[0051] The Chinese names of the target applications of the application sequence are encoded in sequence based on the standard Chinese encoding table to obtain the second encoding value corresponding to the application sequence. The standard Chinese encoding table includes all Chinese characters and encoding numbers mapped one-to-one with the Chinese characters. According to the standard Chinese encoding table, the encoding number corresponding to the Chinese name of each target application can be obtained, and then the encoding number corresponding to each Chinese name is arranged in sequence to obtain the second encoding value corresponding to the application sequence.
[0052] The English names of the target applications of the application sequence are encoded in sequence based on the target English encoding table to obtain the third encoding value corresponding to the application sequence. The target English encoding table includes all English characters and encoding numbers mapped one-to-one with the English characters; English characters include uppercase and lowercase English letters. According to the target English encoding table, the encoding numbers corresponding to the English name of each target application can be obtained, and then the encoding numbers corresponding to the English name of each target application are arranged in sequence to obtain the third encoding value corresponding to the application sequence.
[0053] Determine the sum of the characters included in the second code value and the characters included in the third code value, and use the first digit of the sum of the total characters as the first marking digit; in the second code value corresponding to the application sequence, move the code value corresponding to the target application whose application sequence is in the first marking digit to the end of the second code value to obtain the updated second code value; in the third code value corresponding to the application sequence, move the code value corresponding to the target application whose application sequence is in the first marking digit to the end of the third code value to obtain the updated third code value. Based on the updated second code value and the updated third code value, the first code value corresponding to the application sequence is obtained. It can be understood that if the first digit of the sum of the total characters is "2", the code values corresponding to the first two target applications in the second code value corresponding to the application sequence are moved to the end of the second code value to obtain the updated second code value. Similarly, the code values corresponding to the first two target applications in the third code value corresponding to the application sequence are moved to the end of the third code value to obtain the updated second code value. When obtaining the first coding value corresponding to the application sequence based on the updated second coding value and the updated third coding value, the updated second coding value and the updated third coding value can be combined to obtain the first coding value corresponding to the application sequence, wherein the updated second coding value is placed before the updated third coding value or after the updated third coding value, which is not limited here.
[0054] In this embodiment, since the Chinese names and English names corresponding to the target applications of the application sequence are encoded separately and then recombined, the specificity of the encoding of the application sequence is effectively guaranteed. In addition, the order of the target applications of the application sequence is disrupted according to the sum of the characters included in the second encoding value and the characters included in the third encoding value. Even if the target encoding table is known, the specific target application information cannot be obtained, which effectively reduces the risk of data leakage in the data transmission process and improves data security.
[0055] In one embodiment, a scheme for arranging the coding table is also proposed, which is used to improve the specificity of the coding, enhance the coding security, and prevent the generated encryption password from being easily cracked. Specifically, based on the target English coding table, the English names of each target application of the application sequence are encoded in sequence to obtain the third coding value corresponding to the application sequence, including:
[0056] Obtain a standard Chinese encoding table to encode the Chinese names corresponding to each application in the application directory in sequence to obtain a fourth encoding value. The standard Chinese encoding table includes all Chinese characters and encoding numbers mapped one-to-one with the Chinese characters. According to the standard Chinese encoding table, the encoding number corresponding to the Chinese name of each target application can be obtained, and then the encoding numbers corresponding to each Chinese name are arranged in sequence to obtain the fourth encoding value corresponding to the application sequence.
[0057] A hash calculation is performed based on the fourth code value to obtain a hash value. The algorithm used in the hash calculation may be an MD5 message digest algorithm or other hash algorithms, which are not limited here.
[0058] Determine the English characters that exist in both the hash value and the device number as the target characters, and generate identification numbers based on the total number of characters of the target characters. Traverse all characters in the hash value and the device number, determine all English characters that exist in both the hash value and the device number as the target characters, and count the total number of characters corresponding to the target characters to generate identification numbers. For example, if the target characters are "W" and "F", the identification number is "2".
[0059] Add an identification number to the tail of the coding number corresponding to the character identical to the target character in the standard English coding table to generate the corresponding target English coding table. The standard English coding table can be an ASCII coding table or an English coding table of other standards, which is not limited here. Add an identification number to the tail of the coding number corresponding to the character identical to the target character in the standard English coding table to generate the corresponding target English coding table. For example, the coding number of the English character "A" is "65" and the identification number is "2", then the new coding number corresponding to the new English character "A" is "652".
[0060] The English names of the target applications of the application sequence are encoded in sequence based on the target English encoding table to obtain a third encoding value corresponding to the application sequence.
[0061] The target English coding table obtained after the above standard English coding table is rearranged is unique. Other users cannot obtain the above target English coding table without knowing the corresponding arrangement rules, and cannot generate the above correct encryption password, thereby improving the coding security.
[0062] The following describes an apparatus embodiment of the present application, which can be used to execute the mobile phone traffic data monitoring method in the above-mentioned embodiment of the present application. For details not disclosed in the apparatus embodiment of the present application, please refer to the embodiment of the mobile phone traffic data monitoring method in the above-mentioned embodiment of the present application.
[0063] Figure 2 A block diagram of a mobile phone traffic data monitoring device according to an embodiment of the present application is shown.
[0064] Reference Figure 2 As shown, according to an embodiment of the present application, a mobile phone traffic data monitoring device 200 includes: an acquisition unit 210, an import unit 220, an encoding unit 230, a selection unit 240, an encryption unit 250 and a receiving unit 260. The acquisition unit 210 is used to acquire the traffic data corresponding to each target application in the mobile phone and the device number of the terminal device where the mobile phone is located, wherein the target application is an application that runs on the mobile phone under the target network and generates traffic; the import unit 220 is used to import the traffic data corresponding to each target application into a preset data table, the data table includes an application sequence obtained by sorting the target applications according to a predetermined application sorting rule and a traffic data list obtained by sorting the traffic data corresponding to each target application according to the predetermined application sorting rule; the encoding unit 230 is used to use the target coding table to sort the application sequence in the data table according to the predetermined application sorting rule. Encoding is performed in sequence to obtain a first coding value corresponding to the application sequence; a selection unit 240 is used to select a character for the first coding value based on the device number to obtain a first character; an encryption unit 250 is used to generate an encryption password based on the first character, and encrypt the traffic data list according to the encryption password to obtain encrypted data, and send the encrypted data, the first coding value and the device number to the server, so that the server generates traffic service push information based on the encrypted data, the first coding value and the device number; a receiving unit 260 is used to receive the traffic service push information from the server, so as to select a traffic service based on the traffic service push information.
[0065] In some embodiments of the present application, based on the aforementioned scheme, the target coding table includes a standard Chinese coding table and a target English coding table, the standard Chinese coding table includes all Chinese characters and coding numbers mapped one-to-one with Chinese characters, and the target English coding table includes all English characters and coding numbers mapped one-to-one with English characters; the English characters include uppercase and lowercase English letters, and the encoding unit 230 includes: a first encoding module, used to encode the Chinese names of each target application of the application sequence in sequence based on the standard Chinese coding table to obtain a second coding value corresponding to the application sequence; a second encoding module, used to encode the English names of each target application of the application sequence in sequence based on the target English coding table to obtain a third coding value corresponding to the application sequence; a marking module, used The invention relates to a method for determining the sum of the characters included in the second coding value and the characters included in the third coding value, and taking the first digit of the sum of the total characters as the first marking digit; a first moving module, used for moving the coding values corresponding to the target applications in the application sequence that are located in the first few digits of the first marking digit in the second coding value corresponding to the application sequence to the end of the second coding value, so as to obtain an updated second coding value; a second moving module, used for moving the coding values corresponding to the target applications in the application sequence that are located in the first few digits of the first marking digit in the third coding value corresponding to the application sequence to the end of the third coding value, so as to obtain an updated third coding value; a generating module, used for generating the first coding value corresponding to the application sequence based on the updated second coding value and the updated third coding value.
[0066] In some embodiments of the present application, based on the aforementioned scheme, the second encoding module includes: a first encoding submodule, used to obtain a standard Chinese encoding table to encode the Chinese names corresponding to each application in the application directory in sequence to obtain a fourth encoding value; a calculation submodule, used to perform hash calculation based on the fourth encoding value to obtain a hash value; a generation submodule, used to determine an English character that exists in both the hash value and the device number as a target character, and generate an identification number based on the total number of characters of the target character; an addition submodule, used to add the identification number to the end of the encoding number corresponding to the character identical to the target character in the standard English encoding table to generate the corresponding target English encoding table; a second encoding submodule, used to encode the English names of each target application in the application sequence in sequence based on the target English encoding table to obtain a third encoding value corresponding to the application sequence.
[0067] In some embodiments of the present application, based on the aforementioned scheme, the selection unit 240 is specifically used to obtain a first marking number based on the total number of characters corresponding to the character with the most repeated occurrences among the characters contained in the device number; obtain a second marking number based on the total number of characters corresponding to the remaining characters after deduplication of the characters contained in the device number; generate a rule selection serial number based on the first marking number and the second marking number; if the first marking number and the second marking number are both single digits, then the number consisting of the first marking number as a tens digit and the second marking number as a single digit is used as the rule selection serial number; if there are more than ten digits in the first marking number and the second marking number, then the sum of the first marking number and the second marking number is used as the rule selection serial number; based on the rule selection serial number, match the corresponding character selection rule in the management database; wherein the management database stores a mapping relationship between the rule selection serial number and the character selection rule; based on the matched character selection rule, perform character selection on the first encoding value, and combine the selected characters in sequence to obtain the encrypted password.
[0068] In some embodiments of the present application, based on the aforementioned scheme, the server generates traffic service push information based on the encrypted data, the first coding value and the device number, including: using the target coding table to decode the first coding value to obtain the corresponding application sequence; selecting characters for the first coding value based on the device number to obtain a second character; generating a decryption password based on the second character, and decrypting the encrypted data according to the decryption password to obtain the traffic data list; based on the application sequence and the traffic data list, obtaining the traffic data corresponding to each target application; based on the traffic data corresponding to each target application, determining the traffic service push information in the traffic service information library.
[0069] Figure 3 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.
[0070] It should be noted that Figure 3 The computer system 300 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0071] like Figure 3As shown, the computer system 300 includes a central processing unit (CPU) 301, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 302 or the program loaded from the storage part 308 to the random access memory (RAM) 303, such as executing the method described in the above embodiment. In the RAM 303, various programs and data required for system operation are also stored. The CPU 301, the ROM 302 and the RAM 303 are connected to each other through the bus 304. The input / output (I / O) interface 305 is also connected to the bus 304.
[0072] The following components are connected to the I / O interface 305: an input section 306 including a keyboard, a mouse, etc.; an output section 307 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 308 including a hard disk, etc.; and a communication section 309 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 309 performs communication processing via a network such as the Internet. A drive 310 is also connected to the I / O interface 305 as needed. A removable medium 311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 310 as needed so that a computer program read therefrom is installed into the storage section 308 as needed.
[0073] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer-readable medium, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part 309, and / or installed from a removable medium 311. When the computer program is executed by a central processing unit (CPU) 301, various functions defined in the system of the present application are executed.
[0074] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier, which carries a computer-readable computer program. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0075] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0076] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0077] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.
[0078] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0079] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software, or by combining software with necessary hardware. Therefore, the technical solution according to the implementation method of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation method of the present application.
[0080] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.
[0081] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for monitoring mobile phone traffic data, characterized in that: Applied to mobile phones, including: Obtaining traffic data corresponding to each target application in the mobile terminal and the device number of the terminal device where the mobile terminal is located, wherein the target application is an application that runs on the mobile terminal under the target network and generates traffic; Importing the flow data corresponding to each target application into a preset data table, wherein the data table includes an application sequence obtained by sorting each target application according to a predetermined application sorting rule and a flow data list obtained by sorting the flow data corresponding to each target application according to the predetermined application sorting rule; Using a target coding table, sequentially encode the application sequence in the data table that is sorted according to a predetermined application sorting rule to obtain a first coding value corresponding to the application sequence; Selecting a character for the first encoding value based on the device number to obtain a first character; Generate an encryption password based on the first character, encrypt the traffic data list according to the encryption password to obtain encrypted data, and send the encrypted data, the first coding value, and the device number to the server, so that the server generates traffic service push information based on the encrypted data, the first coding value, and the device number; Receive traffic service push information from the server to select a traffic service based on the traffic service push information.
2. The method for monitoring mobile phone traffic data according to claim 1, characterized in that: The target encoding table includes a standard Chinese encoding table and a target English encoding table, wherein the standard Chinese encoding table includes all Chinese characters and encoding numbers mapped one-to-one with the Chinese characters, and the target English encoding table includes all English characters and encoding numbers mapped one-to-one with the English characters; the English characters include uppercase and lowercase English letters, and the target encoding table is used to sequentially encode the application sequence in the data table sorted according to a predetermined application sorting rule to obtain a first encoding value corresponding to the application sequence, including: Encoding the Chinese names of the target applications of the application sequence in sequence based on the standard Chinese encoding table to obtain a second encoding value corresponding to the application sequence; Encoding the English names of the target applications of the application sequence in sequence based on the target English coding table to obtain a third coding value corresponding to the application sequence; Determine the sum of the characters included in the second encoding value and the characters included in the third encoding value, and use the first digit of the sum of the total characters as the first marking digit; Among the second code values corresponding to the application sequence, the code values corresponding to the target applications in the application sequence that are located in the first few digits of the first marking number are moved to the end of the second code value to obtain an updated second code value; Among the third code values corresponding to the application sequence, the code values corresponding to the target applications in the application sequence that are located at the first few digits of the first marking number are moved to the end of the third code value to obtain an updated third code value; Based on the updated second code value and the updated third code value, a first code value corresponding to the application sequence is generated.
3. The method for monitoring mobile phone traffic data according to claim 2, characterized in that: The step of sequentially encoding the English names of the target applications of the application sequence based on the target English encoding table to obtain a third encoding value corresponding to the application sequence includes: Obtain a standard Chinese encoding table to sequentially encode the Chinese name corresponding to each application in the application sequence to obtain a fourth encoding value; Performing a hash calculation based on the fourth encoding value to obtain a hash value; Determine an English character that exists in both the hash value and the device number as a target character, and generate an identification number based on the total number of characters of the target character; Add the identification number to the end of the code number corresponding to the character identical to the target character in the standard English code table to generate the corresponding target English code table; Based on the target English coding table, the English names of the target applications of the application sequence are encoded in sequence to obtain a third coding value corresponding to the application sequence.
4. The method for monitoring mobile phone traffic data according to claim 1, characterized in that: The step of selecting a character from the first encoding value based on the device number to obtain a first character includes: Obtaining a first marking number based on the total number of characters corresponding to the character with the most repetitive occurrences among the characters included in the device number; Obtaining a second marking number based on the total number of characters corresponding to the remaining characters after deduplication processing of the characters included in the device number; Generate a rule selection serial number based on the first marking number and the second marking number; if the first marking number and the second marking number are both single digits, use the first marking number as the tens digit and the second marking number as the single digit as the rule selection serial number; if there is a number with more than ten digits between the first marking number and the second marking number, use the sum of the first marking number and the second marking number as the rule selection serial number; Based on the rule selection serial number, a corresponding character selection rule is matched in a management database; wherein the management database stores a mapping relationship between the rule selection serial number and the character selection rule; Based on the matched character selection rule, characters are selected for the first encoding value, and the selected characters are combined in sequence to obtain the encrypted password.
5. The method for monitoring mobile phone traffic data according to claim 1, characterized in that: The server generates traffic service push information based on the encrypted data, the first coding value and the device number, including: Decoding the first coding value using the target coding table to obtain the corresponding application sequence; Select a character for the first encoding value based on the device number to obtain a second character; generating a decryption password based on the second character, and decrypting the encrypted data according to the decryption password to obtain the traffic data list; Based on the application sequence and the traffic data list, obtaining the traffic data corresponding to each target application; Based on the traffic data corresponding to each target application, traffic service push information is determined in a traffic service information library.
6. A mobile phone traffic data monitoring device, characterized in that: include: An acquisition unit, used to acquire traffic data corresponding to each target application in the mobile terminal and a device number of a terminal device where the mobile terminal is located, wherein the target application is an application that runs on the mobile terminal under the target network and generates traffic; An importing unit, used to import the flow data corresponding to each target application into a preset data table, wherein the data table includes an application sequence obtained by sorting each target application according to a predetermined application sorting rule and a flow data list obtained by sorting the flow data corresponding to each target application according to the predetermined application sorting rule; An encoding unit, configured to use a target encoding table to sequentially encode an application sequence in the data table that is sorted according to a predetermined application sorting rule, to obtain a first encoding value corresponding to the application sequence; A selection unit, configured to select a character for the first encoding value based on the device number to obtain a first character; an encryption unit, configured to generate an encryption password based on the first character, encrypt the traffic data list according to the encryption password to obtain encrypted data, and send the encrypted data, the first coding value, and the device number to a server, so that the server generates traffic service push information based on the encrypted data, the first coding value, and the device number; The receiving unit is used to receive the traffic service push information from the server to select the traffic service based on the traffic service push information.
7. The flow data monitoring device according to claim 6, characterized in that: The target encoding table includes a standard Chinese encoding table and a target English encoding table. The standard Chinese encoding table includes all Chinese characters and encoding numbers mapped one-to-one with Chinese characters. The target English encoding table includes all English characters and encoding numbers mapped one-to-one with English characters. The English characters include uppercase and lowercase English letters. The encoding unit includes: A first encoding module, used for encoding the Chinese names of the target applications of the application sequence in sequence based on the standard Chinese encoding table to obtain a second encoding value corresponding to the application sequence; A second encoding module, used to encode the English names of the target applications of the application sequence in sequence based on the target English encoding table to obtain a third encoding value corresponding to the application sequence; a marking module, used for determining the sum of the characters included in the second encoding value and the characters included in the third encoding value, and using the first digit of the sum of the total characters as a first marking digit; A first moving module is used to move the code values corresponding to the target applications in the application sequence that are located at the first few digits of the first marking number in the second code value corresponding to the application sequence to the end of the second code value to obtain an updated second code value; A second moving module is used to move the code values corresponding to the target applications in the application sequence that are located in the first few digits of the first marking number in the third code value corresponding to the application sequence to the end of the third code value to obtain an updated third code value; A generating module is used to generate a first coding value corresponding to the application sequence based on the updated second coding value and the updated third coding value.
8. The flow data monitoring device according to claim 7, characterized in that: The second encoding module includes: The first encoding submodule is used to obtain a standard Chinese encoding table to sequentially encode the Chinese names corresponding to the applications in the application sequence to obtain a fourth encoding value; A calculation submodule, configured to perform a hash calculation based on the fourth encoding value to obtain a hash value; A generating submodule, used for determining an English character existing in both the hash value and the device number as a target character, and generating an identification number based on the total number of characters of the target character; An adding submodule, used for adding the identification number to the tail of the coding number corresponding to the character identical to the target character in the standard English coding table, to generate the corresponding target English coding table; The second encoding submodule is used to encode the English names of the target applications of the application sequence in sequence based on the target English encoding table to obtain a third encoding value corresponding to the application sequence.
9. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, enables the one or more processors to implement the mobile phone traffic data monitoring method as described in any one of claims 1 to 5.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the mobile phone traffic data monitoring method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Business data processing method and device, computer equipment and storage medium
CN116383189A
Network surveillance and security system
US20030051026A1
Methods and systems for efficient encoding and decoding storage systems
US20200089419A1
