Data processing method and device, electronic equipment and storage medium

By performing character conversion and hash operations on CPLC data to generate check codes, the problem of character input errors or omissions during CPLC data encoding is solved, achieving data integrity verification and security assurance, and ensuring the accuracy and reliability of data transmission.

CN116669003BActive Publication Date: 2026-04-07SHENZHEN DACHENG COMM TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-07
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

In NFC technology, the hexadecimal encoding of CPLC data is prone to input errors or missing characters, leading to users using incorrect CPLC data and affecting normal work. Furthermore, the encoding method lacks error correction codes and data encryption, which cannot guarantee data integrity and security.

Method used

A preset conversion strategy is used to perform character conversion processing on CPLC data, and a check code is generated by hash operation to ensure data integrity. The reverse conversion strategy is used to perform data verification at the receiving end to prevent character input errors or omissions.

Benefits of technology

It improves the reliability and security of CPLC data, prevents data from being tampered with during transmission, ensures data integrity and correctness, and avoids affecting users' normal work.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116669003B_ABST
    Figure CN116669003B_ABST
Patent Text Reader

Abstract

This invention discloses a data processing method, apparatus, electronic device, and storage medium. The method, applied to a first terminal, includes acquiring initial CPLC data to be encoded; performing character conversion processing on target type data values ​​in the initial CPLC data using a preset first conversion strategy to obtain first CPLC data; performing hash operation on the first CPLC data to obtain a first hash value; performing character conversion processing on target type data values ​​in the first CPLC data according to the first CPLC data, the first hash value, and a preset second conversion strategy to obtain second CPLC data; and sending the second CPLC data and the information of the first conversion strategy to a second terminal. Using this embodiment of the invention, a checksum can be provided for CPLC data without modifying the specific values ​​of the data values ​​in the CPLC data. This allows the second terminal to determine the integrity of the CPLC data used when using it based on the checksum, avoiding the use of incorrect CPLC data and improving the reliability of the CPLC data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer software security technology, and in particular to a data processing method, apparatus, electronic device, and storage medium. Background Technology

[0002] In Near Field Communication (NFC) technology, Card Production Life Cycle (CPLC) is an important identifier for the eSE chip and is generally used as a dispersion factor in chip key calculations.

[0003] In related technologies, CPLC data encoding typically involves transmitting and storing CPLC data in hexadecimal encoding. Specifically, CPLC data is divided into several small blocks, each containing 2 to 4 hexadecimal characters. These small blocks are then arranged in sequence to form an 84-byte long string, which serves as the CPLC encoded data. This CPLC encoded data is then transmitted and stored.

[0004] However, in the process of encoding CPLC data in related technologies, due to the long length of CPLC data, the hexadecimal encoding is prone to input errors or omissions of characters, ultimately leading to users using incorrect CPLC data and affecting their normal work. Summary of the Invention

[0005] The purpose of this invention is to provide a data processing method, apparatus, electronic device, and storage medium to solve the technical problem that CPLC data is prone to input errors or omissions during the encoding process, leading to users using incorrect CPLC data.

[0006] In a first aspect, embodiments of the present invention provide a data processing method applied to a first terminal, the method comprising:

[0007] Obtain initial CPLC data to be encoded, the initial CPLC data including at least one data value of letter type;

[0008] Using a preset first conversion strategy, the target type data value in the initial CPLC data is converted into a character to obtain the first CPLC data, wherein the target type data value is a letter type data value.

[0009] Perform a hash operation on the first CPLC data to obtain the first hash value;

[0010] Based on the first CPLC data, the first hash value, and the preset second conversion strategy, the target type data value in the first CPLC data is subjected to character conversion processing to obtain the second CPLC data. The first conversion strategy and the second conversion strategy are opposite conversion strategies.

[0011] The second CPLC data and the information of the first conversion strategy are sent to the second terminal.

[0012] Secondly, embodiments of the present invention provide a data processing method applied to a second terminal, the method comprising:

[0013] Receive the second CPLC data and the information of the first conversion strategy sent by the first terminal;

[0014] According to the first conversion strategy, the target type data value in the second CPLC data is subjected to character conversion processing to obtain the third CPLC data, wherein the target type is a letter type;

[0015] The third CPLC data is hashed to obtain a second hash value;

[0016] The integrity of the second CPLC data is determined based on the second hash value.

[0017] Thirdly, in order to solve the same technical problem, embodiments of the present invention provide a data processing apparatus applied to a first terminal, the data processing apparatus comprising:

[0018] An acquisition module is used to acquire initial CPLC data to be encoded, wherein the initial CPLC data includes at least one data value of letter type;

[0019] The first conversion module is used to perform character conversion processing on the target type data value in the initial CPLC data using a preset first conversion strategy to obtain the first CPLC data, wherein the target type is a letter type;

[0020] The first calculation module is used to perform hash operation on the first CPLC data to obtain the first hash value;

[0021] The second conversion module is used to perform character conversion processing on the target type data value in the first CPLC data according to the first CPLC data, the first hash value and the preset second conversion strategy to obtain the second CPLC data. The first conversion strategy and the second conversion strategy are opposite conversion strategies.

[0022] The sending module is used to send the second CPLC data and the information of the first conversion strategy to the second end.

[0023] In some embodiments, the first conversion strategy includes a strategy for converting letter-type data values ​​to uppercase letters;

[0024] The first conversion module is specifically used to convert the target type data value in the initial CPLC data into uppercase letters using a preset first conversion strategy to obtain the first CPLC data;

[0025] The second conversion module includes a first determining unit, a second determining unit, and a first processing unit;

[0026] The first determining unit is used to determine the first target position of the data value of the target type in the first CPLC data;

[0027] The second determining unit is used to determine the first data value at the first target position in the first hash value;

[0028] The first processing unit is configured to, if the first data value meets a preset condition, adopt a preset second conversion strategy to convert the data value of the target type corresponding to the first target position in the first CPLC data into lowercase letters to obtain the second CPLC data.

[0029] In some embodiments, the first conversion strategy includes a strategy for converting letter-type data values ​​to lowercase letters;

[0030] The first conversion module is specifically used to convert the target type data value in the initial CPLC data into lowercase letters using a preset first conversion strategy to obtain the first CPLC data;

[0031] The second conversion module includes a first determining unit, a second determining unit, and a second processing unit;

[0032] The first determining unit is used to determine the first target position of the data value of the target type in the first CPLC data;

[0033] The second determining unit is used to determine the first data value at the first target position in the first hash value;

[0034] The second processing unit is configured to, if the first data value meets a preset condition, adopt a preset second conversion strategy to convert the data value of the target type corresponding to the first target position in the first CPLC data into uppercase letters to obtain the second CPLC data.

[0035] In some embodiments, the target data value is a letter-type data value contained in the target data value, the target data value is a continuous data value of a preset data length in the initial CPLC data, and the preset data length is not greater than the data length of the initial CPLC data.

[0036] Fourthly, in order to solve the same technical problem, embodiments of the present invention provide a data processing device applied to a second terminal, the data processing device comprising:

[0037] The receiving module is used to receive the second CPLC data and the information of the first conversion strategy sent by the first terminal;

[0038] The third conversion module is used to perform character conversion processing on the target type data value in the second CPLC data according to the first conversion strategy to obtain the third CPLC data, wherein the target type is a letter type;

[0039] The second processing module is used to perform hash operations on the third CPLC data to obtain a second hash value;

[0040] The determination module is used to determine the integrity of the second CPLC data based on the second hash value.

[0041] In some embodiments, the third conversion module includes an acquisition unit and a character conversion unit;

[0042] The acquisition unit is used to acquire the target data length of the second CPLC data after character conversion processing in the first terminal;

[0043] The character conversion unit is used to perform character conversion processing on the data values ​​of the target type in the target data length contained in the second CPLC data according to the first conversion strategy, so as to obtain the third CPLC data.

[0044] In some embodiments, the first conversion strategy includes a strategy for converting letter-type data values ​​to uppercase letters;

[0045] The third conversion module is specifically used to convert the letters in the target type data values ​​contained in the target data length of the second CPLC data into uppercase letters according to the first conversion strategy, so as to obtain the third CPLC data.

[0046] In some embodiments, the first conversion strategy includes a strategy for converting letter-type data values ​​to lowercase letters;

[0047] The third conversion module is specifically used to convert the letters in the target type data values ​​contained in the target data length of the second CPLC data into lowercase letters according to the first conversion strategy, so as to obtain the third CPLC data.

[0048] In some embodiments, the determining module includes a third determining unit, a fourth determining unit, and a third processing unit;

[0049] The third determining unit is used to determine the second target position of the data value of the target type in the second CPLC data;

[0050] The fourth determining unit is used to determine the second data value at the second target position in the second hash value;

[0051] The third processing unit is configured to determine that the second CPLC data is complete data if the second data value meets a preset condition and the size format of the letters in the target type data value is not the target format. The target format is the size format of the letters in the target type data value after the character conversion processing of the first conversion strategy.

[0052] Fifthly, embodiments of the present invention provide an electronic device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps of the data processing method described in any of the preceding claims.

[0053] In a sixth aspect, embodiments of the present invention provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of any of the above-described data processing methods.

[0054] This invention provides a data processing method, apparatus, electronic device, and storage medium. The method performs character conversion processing on CPLC data using CPLC data, the corresponding hash value of the CPLC data, and a preset conversion strategy. This enables the encoding of CPLC data and provides a checksum for integrity verification, improving the reliability of the CPLC data. Consequently, when a second terminal uses the CPLC data, it can obtain a hash value based on the hash operation and verify the integrity of the CPLC data based on the hash value and the conversion strategy used. This achieves the purpose of data verification for CPLC data and prevents errors or omissions in character input when using or transmitting CPLC data. Attached Figure Description

[0055] Figure 1 This is an application scenario diagram of CPLC data usage provided in the embodiments of the present invention;

[0056] Figure 2 This is a schematic flowchart of a data processing method provided in an embodiment of the present invention;

[0057] Figure 3 This is a schematic diagram of a character conversion process provided in an embodiment of the present invention;

[0058] Figure 4 This is another schematic diagram of the character conversion process provided in an embodiment of the present invention;

[0059] Figure 5 This is another flowchart illustrating the data processing method provided in this embodiment of the invention;

[0060] Figure 6 This is a flowchart illustrating a data verification process provided in an embodiment of the present invention;

[0061] Figure 7 This is a schematic diagram of a data processing device provided in an embodiment of the present invention;

[0062] Figure 8 This is a schematic diagram of a structure of the second conversion module provided in an embodiment of the present invention;

[0063] Figure 9 This is another structural schematic diagram of the data processing device provided in the embodiments of the present invention;

[0064] Figure 10 This is a schematic diagram of a third conversion module provided in an embodiment of the present invention;

[0065] Figure 11 This is a schematic diagram of a determining module provided in an embodiment of the present invention;

[0066] Figure 12 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention;

[0067] Figure 13 This is another structural schematic diagram of the electronic device provided in the embodiment of the present invention. Detailed Implementation

[0068] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0069] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.

[0070] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.

[0071] In related technologies, CPLC data encoding typically involves transmitting and storing CPLC data in hexadecimal encoding. Specifically, CPLC data is divided into several small blocks, each containing 2 to 4 hexadecimal characters. These small blocks are then arranged in sequence to form an 84-byte long string, which serves as the CPLC encoded data. This CPLC encoded data is then transmitted and stored.

[0072] However, the following drawbacks exist in the encoding process of CPLC data in related technologies:

[0073] 1. Because CPLC data is quite long, it is easy to make mistakes or omit characters during the hexadecimal encoding process, resulting in data errors or incomplete data;

[0074] 2. The encoding method of CPLC data does not use error correction codes or other technologies for data verification and correction, which cannot effectively guarantee the integrity of the CPLC data used.

[0075] 3. The encoding method of CPLC data does not take into account data encryption and security issues, making it vulnerable to malicious data tampering and attacks.

[0076] Therefore, a new CPLC encoding technology is urgently needed to solve the above problems.

[0077] To address the technical problems existing in related technologies, embodiments of the present invention provide a data processing method. Please refer to [link / reference needed]. Figure 1 , Figure 1 This is an application scenario diagram of CPLC data usage provided in the embodiments of the present invention, wherein, Figure 1 In the middle, 10 represents the first terminal, which is mainly used to acquire CPLC data and encode the CPLC data to provide a check code for integrity verification of the CPLC data, thereby improving the reliability of the CPLC data. Figure 120 in the middle represents the second terminal. The second terminal 20 is mainly used to use or transmit CPLC data. Before using or transmitting, it is necessary to determine whether the CPLC data used is correct or complete, so as to avoid using incorrect CPLC data and affecting the normal work of the user.

[0078] For details, please continue reading. Figure 1 The CPLC data provided in this embodiment of the invention is first encoded by a first terminal 10. After obtaining the encoded CPLC data with a checksum, the CPLC data is sent to a second terminal 20. Upon receiving the encoded CPLC data with the checksum, the second terminal 20 verifies the data using the checksum to determine the integrity of the received CPLC data. After confirming that the received CPLC data is complete and error-free, it can be used or transmitted. This achieves the purpose of verifying the CPLC data before use or transmission, preventing input errors or missing characters when using or transmitting the CPLC data.

[0079] The data processing method provided in this embodiment can be applied to the first terminal 10 to implement the encoding process of CPLC data. For details, please refer to... Figure 2 , Figure 2 This is a flowchart illustrating a data processing method provided in an embodiment of the present invention, which includes steps 201 to 205.

[0080] Step 201: Obtain the initial CPLC data to be encoded.

[0081] The initial CPLC data provided in this embodiment includes at least one data value of letter type.

[0082] In this embodiment, CPLC data is the data required by NFC technology. This CPLC data can be obtained from the integrated circuit card (Smart Card, IC card) via NFC technology, or it can be obtained from IC card information entered by the user. Therefore, this embodiment does not limit the method / process of obtaining CPLC data. The CPLC data provided in this embodiment is mainly used to identify and verify the legitimacy of the IC card. CPLC data includes the IC card's manufacturer information, IC card serialization information, IC card production date information, etc.

[0083] In this embodiment, the initial CPLC data provided is CPLC data that requires encoding. Specifically, CPLC data is typically a long string consisting of 84 bytes. For example, the initial CPLC data provided in this embodiment can be:

[0084] 479007644701F3560600917409140030136748100000005100000449483BDF5380010000000000354647

[0085] Step 202: Using a preset first conversion strategy, the target type data values ​​in the initial CPLC data are converted into characters to obtain the first CPLC data.

[0086] In this embodiment, the target type is an alphabetic type. For example, the data value of the target type provided in this embodiment can be the data value corresponding to "F", "B", "D", and "F" in the initial CPLC data provided in the above embodiment. The first conversion strategy provided in this embodiment is a pre-defined strategy, which is mainly used to perform character conversion processing on the alphabetic data values ​​in the CPLC data. Specifically, the first conversion strategy provided in this embodiment can perform character conversion processing on the data values ​​corresponding to "F", "B", "D", and "F" in the initial CPLC data provided in the above embodiment.

[0087] In this embodiment, after obtaining the initial CPLC data, it is necessary to preprocess the initial CPLC data before subsequent encoding operations can be performed. Specifically, this preprocessing is the character conversion processing corresponding to the first conversion strategy provided in this embodiment. The character conversion processing provided in this embodiment mainly converts the case format of letter-type data values. By only converting the case format of letter-type data values, the preprocessing of the initial CPLC data can be completed without modifying the data values ​​in the initial CPLC data, ensuring the integrity of the initial CPLC data, so that the preprocessed initial CPLC data can be used for subsequent encoding operations.

[0088] In one implementation, the first conversion strategy includes a strategy to convert letter-type data values ​​to uppercase letters. The step of using the preset first conversion strategy to perform character conversion processing on the target type data values ​​in the initial CPLC data to obtain the first CPLC data can be: using the preset first conversion strategy to convert the target type data values ​​in the initial CPLC data to uppercase letters to obtain the first CPLC data.

[0089] For example, the initial CPLC data provided in this embodiment may be:

[0090] 479007644701f3560600917409140030136748100000005100000449483bdf5380010000000000354647

[0091] The first CPLC data obtained after the initial CPLC data undergoes character conversion processing using the first conversion strategy is:

[0092] 479007644701F3560600917409140030136748100000005100000449483BDF5380010000000000354647

[0093] In this embodiment, the four letter data values ​​"f", "b", "d" and "f" in the initial CPLC data are converted into characters to obtain "F", "B", "D" and "F".

[0094] In another implementation, the first conversion strategy includes a strategy to convert letter-type data values ​​to lowercase letters. The step of using the preset first conversion strategy to perform character conversion processing on the target type data values ​​in the initial CPLC data to obtain the first CPLC data can be: using the preset first conversion strategy to convert the target type data values ​​in the initial CPLC data to lowercase letters to obtain the first CPLC number.

[0095] For example, the initial CPLC data provided in this embodiment may be:

[0096] 479007644701F3560600917409140030136748100000005100000449483BDF5380010000000000354647

[0097] The first CPLC data obtained after the initial CPLC data undergoes character conversion processing using the first conversion strategy is:

[0098] 479007644701f3560600917409140030136748100000005100000449483bdf5380010000000000354647

[0099] In this embodiment, the four letter data values ​​"F", "B", "D" and "F" in the initial CPLC data are converted into characters to obtain "f", "b", "d" and "f".

[0100] Step 203: Perform a hash operation on the first CPLC data to obtain the first hash value.

[0101] In this embodiment, the hash operation provided can be performed using the SHA secure hash algorithm. Specifically, the SHA secure hash algorithm provided in this embodiment can be SHA1, SHA256, SHA384, etc. By performing a hash operation on the first CPLC data, a first hash value corresponding to the first CPLC data can be generated, which facilitates subsequent character conversion processing of the first CPLC data based on the first hash value, thereby achieving the purpose of providing a checksum for the first CPLC data and improving the security and reliability of the first CPLC data.

[0102] For example, the first CPLC data provided in this embodiment may be:

[0103] 479007644701F3560600917409140030136748100000005100000449483BDF5380010000000000354647

[0104] Then, a hash operation is performed on the first CPLC data, and the first hash value is obtained as follows:

[0105] 14d2fd9806bfdcdd291a859dfff7ea0cdfcd77adfa1ea86b723e223d8b96c8cd243f848c2db4468f2ba34ddf03470a26

[0106] Step 204: Based on the first CPLC data, the first hash value, and the preset second conversion strategy, perform character conversion processing on the target type data value in the first CPLC data to obtain the second CPLC data.

[0107] In this embodiment, the first conversion strategy and the second conversion strategy are opposite conversion strategies. For example, when the first conversion strategy is to convert the data value of letter type to uppercase letters, the second conversion strategy is to convert the data value of letter type to lowercase letters; conversely, when the first conversion strategy is to convert the data value of letter type to lowercase letters, the second conversion strategy is to convert the data value of letter type to uppercase letters.

[0108] As an optional embodiment, this embodiment determines whether to use the second conversion strategy to perform character conversion processing on the target type data value in the first CPLC data based on the data value at the same position in the first hash value that is the same as the letter type data value in the first CPLC data.

[0109] In this embodiment, the CPLC data is processed by character conversion based on the first CPLC data, the first hash value, and the preset second conversion strategy to obtain the second CPLC data. The letter data values ​​in the second CPLC data can be used as check codes, enabling the second CPLC data to perform data verification. This allows the second terminal to verify the second CPLC data when using it, to determine the integrity of the second CPLC data, and to prevent the second CPLC data from being maliciously tampered with or attacked during transmission, thereby effectively improving the reliability and security of the CPLC data.

[0110] In one implementation, the first conversion strategy can be a strategy of converting letter-type data values ​​to uppercase letters. Therefore, during the character conversion processing of the target type data values ​​in the first CPLC data, the second conversion strategy used is a strategy of converting letter-type data values ​​to lowercase letters. For details, please refer to [link to relevant documentation]. Figure 3 , Figure 3 This is a schematic diagram of a character conversion process provided in an embodiment of the present invention, such as... Figure 3 As shown, steps 2041 to 2043 are included;

[0111] Step 2041: Determine the first target position in the first CPLC data for the target type data value.

[0112] For example, the first CPLC data provided in this embodiment may be:

[0113] 479007644701F3560600917409140030136748100000005100000449483BDF5380010000000000354647

[0114] Then the first target position of the target type data value (letter type data value) in the first CPLC data can be determined. Specifically, the first target position of the target type data value "F" in the first CPLC data is the position of the 13th data value, the first target position of the target type data value "B" in the first CPLC data is the position of the 60th data value, the first target position of the target type data value "D" in the first CPLC data is the position of the 61st data value, and the first target position of the target type data value "F" in the first CPLC data is the position of the 62nd data value.

[0115] Step 2042: Determine the first data value at the first target position in the first hash value.

[0116] For example, the first hash value corresponding to the first CPLC data provided in this embodiment is:

[0117] 14d2fd9806bfdcdd291a859dfff7ea0cdfcd77adfa1ea86b723e223d8b96c8cd243f848c2db4468f2ba34ddf03470a26

[0118] Then the first data value at the first target position in the first hash value can be determined. Specifically, when the first target position is the 13th data value, the first data value is d; when the first target position is the 60th data value, the first data value is 6; when the first target position is the 61st data value, the first data value is c; and when the first target position is the 62nd data value, the first data value is 8.

[0119] Step 2043: If the first data value meets the preset conditions, then the preset second conversion strategy is adopted to convert the data value of the target type corresponding to the first target position in the first CPLC data into lowercase letters to obtain the second CPLC data.

[0120] In this embodiment, the preset condition provided is determined based on the relationship between the first data value and the preset threshold. Specifically, in one case, the preset condition provided in this embodiment can be that the first data value is not greater than the preset threshold; in another case, the preset condition provided in this embodiment can be that the first data value is greater than the preset threshold. Since the CPLC data provided in this embodiment is composed of hexadecimal data, the preset threshold provided in this embodiment can be 6, 7, etc. This embodiment does not limit the preset threshold; any hexadecimal data value, that is, any data value among 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b, c, d, e, and f, is acceptable.

[0121] As an optional embodiment, the preset threshold used in this embodiment can be 8, and the preset condition used in this embodiment can be that the first data value is not greater than the preset threshold 8. For example, the first CPLC data used in this embodiment can be:

[0122] 479007644701F3560600917409140030136748100000005100000449483BDF5380010000000000354647

[0123] The first hash value corresponding to the first CPLC data is:

[0124] 14d2fd9806bfdcdd291a859dfff7ea0cdfcd77adfa1ea86b723e223d8b96c8cd243f848c2db4468f2ba34ddf03470a26

[0125] Therefore, the first data values ​​can be determined to be d, 6, c, and 8. Thus, it can be determined that the first data value d does not meet the preset condition, the first data value 6 meets the preset condition, the first data value c does not meet the preset condition, and the first data value 8 meets the preset condition. At this point, the second conversion strategy is adopted to convert the target type data values ​​corresponding to the first data values ​​that meet the preset conditions in the same position in the first CPLC data to lowercase letters. Specifically, the target type data value "B" corresponding to the first data value 6 in the same position in the first CPLC data is converted to the lowercase letter "b", and the target type data value "F" corresponding to the first data value 8 in the same position in the first CPLC data is converted to the lowercase letter "f". In this way, the second CPLC data can be obtained:

[0126] 479007644701F3560600917409140030136748100000005100000449483bDf5380010000000000354647

[0127] In another implementation, the first conversion strategy can be a strategy of converting letter-type data values ​​to lowercase letters. Therefore, during the character conversion processing of the target type data values ​​in the first CPLC data, the second conversion strategy used is a strategy of converting letter-type data values ​​to uppercase letters. For details, please refer to [link to relevant documentation]. Figure 4 , Figure 4 This is another schematic diagram of the character conversion process provided in the embodiment of the present invention, such as... Figure 4 As shown, steps 2044 to 2046 are included;

[0128] Step 2044: Determine the first target position in the first CPLC data for the target type data value.

[0129] For example, the first CPLC data provided in this embodiment may be:

[0130] 479007644701f3560600917409140030136748100000005100000449483bdf5380010000000000354647

[0131] Then the first target position of the target type data value (letter type data value) in the first CPLC data can be determined. Specifically, the first target position of the target type data value "f" in the first CPLC data is the position of the 13th data value, the first target position of the target type data value "b" in the first CPLC data is the position of the 60th data value, the first target position of the target type data value "d" in the first CPLC data is the position of the 61st data value, and the first target position of the target type data value "f" in the first CPLC data is the position of the 62nd data value.

[0132] Step 2045: Determine the first data value at the first target position in the first hash value.

[0133] For example, the first hash value corresponding to the first CPLC data provided in the above embodiments is:

[0134] 14d2fd9806bfdcdd291a859dfff7ea0cdfcd77adfa1ea86b723e223d8b96c8cd243f848c2db4468f2ba34ddf03470a26

[0135] Then the first data value at the first target position in the first hash value can be determined. Specifically, when the first target position is the 13th data value, the first data value is d; when the first target position is the 60th data value, the first data value is 6; when the first target position is the 61st data value, the first data value is c; and when the first target position is the 62nd data value, the first data value is 8.

[0136] Step 2046: If the first data value meets the preset conditions, then the preset second conversion strategy is adopted to convert the data value of the target type corresponding to the first target position in the first CPLC data into uppercase letters to obtain the second CPLC data.

[0137] As an optional embodiment, the preset threshold used in this embodiment can be 8, and the preset condition used in this embodiment can be that the first data value is not greater than the preset threshold 8. For example, the first CPLC data used in this embodiment is:

[0138] 479007644701f3560600917409140030136748100000005100000449483bdf5380010000000000354647

[0139] The first hash value corresponding to the first CPLC data is:

[0140] 14d2fd9806bfdcdd291a859dfff7ea0cdfcd77adfa1ea86b723e223d8b96c8cd243f848c2db4468f2ba34ddf03470a26

[0141] Therefore, the first data values ​​can be determined to be d, 6, c, and 8. Thus, it can be determined that the first data value d does not meet the preset condition, the first data value 6 meets the preset condition, the first data value c does not meet the preset condition, and the first data value 8 meets the preset condition. At this point, the second conversion strategy is adopted to convert the target type data values ​​corresponding to the first data values ​​that meet the preset conditions in the same position in the first CPLC data to lowercase letters. Specifically, the target type data value "b" corresponding to the first data value 6 in the same position in the first CPLC data is converted to the uppercase letter "B", and the target type data value "f" corresponding to the first data value 8 in the same position in the first CPLC data is converted to the uppercase letter "F". In this way, the second CPLC data can be obtained.

[0142] 479007644701F3560600917409140030136748100000005100000449483BDF5380010000000000354647

[0143] Step 205: Send the second CPLC data and the information of the first conversion strategy to the second terminal.

[0144] After obtaining the second CPLC data, the second CPLC data and the information of the first conversion strategy are sent to the second terminal. This allows the second terminal to perform data verification on the second CPLC data according to the first conversion strategy when using the second CPLC data, thereby determining the integrity of the second CPLC data received by the second terminal and avoiding the use of incorrect CPLC data, which could affect the user's normal work.

[0145] As an optional embodiment, the target data value provided in this embodiment is a letter-type data value contained in the target data value. The target data value is a continuous data value of a preset data length in the initial CPLC data, and the preset data length is not greater than the data length of the initial CPLC data.

[0146] In one scenario, the preset data length provided in this embodiment can be equal to the data length of the initial CPLC data. Thus, the target type data value provided in this embodiment is the sum of all target type data values ​​contained in the initial CPLC data. For example, the initial CPLC data provided in this embodiment can be:

[0147] 479007644701F3560600917409140030136748100000005100000449483BDF5380010000000000354647

[0148] The target type data values ​​provided in this embodiment include “F”, “B”, “D”, and “F”.

[0149] In another case, the preset data length provided in this embodiment can be 1 / 3 of the data length of the initial CPLC data, and the continuous data value corresponding to this 1 / 3 can be a continuous data value at any position in the initial CPLC data. For example, the continuous data value corresponding to this 1 / 3 can be a continuous data value calculated starting from the first data value of the initial CPLC data, or it can be a continuous data value calculated starting from the second data value of the initial CPLC data. As long as the position corresponding to the continuous data value of this 1 / 3 is in the initial CPLC data, no specific limitation is made here.

[0150] For example, the initial CPLC data provided in this embodiment may be:

[0151] 479007644701F3560600917409140030136748100000005100000449483BDF5380010000000000354647

[0152] The preset data length provided in this embodiment, that is, the continuous data value corresponding to 1 / 3, can be a continuous data value calculated starting from the first data value of the initial CPLC data. That is, the target type data value is determined only from the first 28 data values ​​(479007644701F35606009174091) of the initial CPLC data. Therefore, the target type data value provided in this embodiment is only "F".

[0153] In other cases, the preset data length provided in this embodiment can be 1 / 2 of the data length of the initial CPLC data, and the continuous data value corresponding to 1 / 2 can be a continuous data value at any position in the initial CPLC data. For example, the continuous data value corresponding to 1 / 2 can be a continuous data value calculated starting from the first data value of the initial CPLC data, or it can be a continuous data value calculated starting from the forty-second data value of the initial CPLC data. As long as the position corresponding to the continuous data value of 1 / 2 is in the initial CPLC data, no specific limitation is made here.

[0154] For example, the initial CPLC data provided in this embodiment may be:

[0155] 479007644701F3560600917409140030136748100000005100000449483BDF5380010000000000354647

[0156] The preset data length provided in this embodiment, that is, the continuous data value corresponding to 1 / 2, can be a continuous data value calculated starting from the 42nd data value of the initial CPLC data. That is, the target type data value is determined only from the last 42 data values ​​(000005100000449483BDF5380010000000000354647) of the initial CPLC data. Therefore, the target type data values ​​provided in this embodiment include "B", "D" and "F".

[0157] It should be noted that the preset data length provided in this embodiment is not limited to 1 / 3 or 1 / 2 of the initial CPLC data length, but can also be other values, which will not be listed here.

[0158] Thus, this embodiment of the invention can perform encoding operations only on continuous data values ​​of a preset data length in the initial CPLC data, thereby achieving character conversion processing only on target type data values ​​within the preset data length of continuous data values ​​in the initial CPLC data, further improving the security and reliability of the encoded second CPLC data. For a detailed process of encoding continuous data values ​​of a preset data length in the initial CPLC data, please refer to the above embodiment of encoding the initial CPLC data; it will not be repeated here.

[0159] Specifically, when the first terminal 10 encodes only the continuous data values ​​of the preset data length in the initial CPLC data to obtain the second CPLC data and sends the second CPLC data to the second terminal 20, the second terminal 10 also performs data verification processing only on the continuous data values ​​of the preset data length in the received second CPLC data, thereby achieving the purpose of data verification of the received CPLC data and avoiding the use of incorrect CPLC data, which would affect the normal work of the user.

[0160] At this point, the first terminal 10 has completed the encoding process of the initial CPLC data.

[0161] The above embodiments mainly describe the technical solution of applying the data processing method provided in this embodiment to the first terminal 10, that is, the encoding process of the initial CPLC data. The following will describe in detail the technical solution of applying the data processing method provided in this embodiment to the second terminal 20, that is, the data verification process of the second terminal 20 before using or transmitting the received second CPLC data.

[0162] Please see Figure 5 , Figure 5 This is another schematic flowchart of the data processing method provided in the embodiments of the present invention, such as... Figure 5 As shown, the data processing method provided in this embodiment includes steps 501 to 504;

[0163] Step 501: Receive the second CPLC data and the information of the first conversion strategy sent by the first terminal.

[0164] In this embodiment, upon receiving the second CPLC data and the first conversion strategy information sent by the first terminal, the embodiment can perform data verification on the received second CPLC data using the second CPLC data and the first conversion strategy, thereby avoiding the use of incorrect second CPLC data and affecting the user's normal work. The specific data verification process is detailed in steps 502 to 504.

[0165] Step 502: According to the first conversion strategy, perform character conversion processing on the target type data value in the second CPLC data to obtain the third CPLC data.

[0166] In this embodiment, the target type is letter type. The first conversion strategy provided in this embodiment is the first conversion strategy used by the first terminal 10. This first conversion strategy is mainly used to perform character conversion processing on letter type data values ​​in CPLC data.

[0167] In this embodiment, the target type data value in the second CPLC data received by the second terminal 20 is converted into character by using the first conversion strategy used by the first terminal 10. This converts the second CPLC data into the first CPLC data after the first terminal 10 preprocesses the initial CPLC data. This facilitates the subsequent use of the third CPLC data obtained after the second CPLC data has undergone character conversion processing by the first conversion strategy, i.e., the hash value of the first CPLC data after the first terminal 10 preprocesses the initial CPLC data, to verify the second CPLC data, thereby achieving the purpose of verifying the received second CPLC data.

[0168] As an optional embodiment, since the first terminal 10 provided in this embodiment can only perform encoding operations on continuous data values ​​of a preset data length in the initial CPLC data, thereby realizing character conversion processing only on the target type data values ​​among the continuous data values ​​of the preset data length in the initial CPLC data, the second terminal 20 provided in this embodiment needs to determine the target data length processed by the first terminal 10 during character conversion processing before performing data verification on the second CPLC data. Specifically, the step of performing character conversion processing on the target type data values ​​in the second CPLC data to obtain the third CPLC data according to the first conversion strategy can be: obtaining the target data length of the second CPLC data after character conversion processing in the first terminal, and performing character conversion processing on the target type data values ​​among the data values ​​contained within the target data length in the second CPLC data according to the first conversion strategy to obtain the third CPLC data.

[0169] It should be noted that the target data length provided in this embodiment is the preset data length for encoding operations in the first terminal 10. Therefore, the target data length is the same as the preset data length. Thus, the target data length provided in this embodiment can be the same as the data length of the second CPLC data, or it can be any value such as 1 / 3 or 1 / 2 of the data length of the second CPLC data. As long as the target data length is the same as the preset data length, and the position of the continuous data value within the target data length in the second CPLC data is the same as the position of the continuous data value within the preset data length for character conversion processing in the first terminal 10 in the initial CPLC data, no specific limitation is made here.

[0170] In one implementation, the first conversion strategy includes a strategy to convert letter-type data values ​​to uppercase letters. Then, according to the first conversion strategy, the step of performing character conversion processing on the target-type data values ​​contained in the target data length of the second CPLC data to obtain the third CPLC data can be: according to the first conversion strategy, converting the letters in the target-type data values ​​contained in the target data length of the second CPLC data to uppercase letters to obtain the third CPLC data.

[0171] For example, the target data length provided in this embodiment can be the same as the data length of the second CPLC data. The second CPLC data provided in this embodiment can be:

[0172] 479007644701F3560600917409140030136748100000005100000449483bDf5380010000000000354647

[0173] The third CPLC data obtained after the second CPLC data undergoes character conversion processing using the first conversion strategy is:

[0174] 479007644701F3560600917409140030136748100000005100000449483BDF5380010000000000354647

[0175] In this embodiment, the four letter data values ​​"F", "b", "D" and "f" in the second CPLC data are converted into characters to obtain "F", "B", "D" and "F".

[0176] In another implementation, the first conversion strategy includes a strategy to convert letter-type data values ​​to lowercase letters. Then, according to the first conversion strategy, the step of performing character conversion processing on the target-type data values ​​contained in the target data length of the second CPLC data to obtain the third CPLC data can be: according to the first conversion strategy, converting the letters in the target-type data values ​​contained in the target data length of the second CPLC data to lowercase letters to obtain the third CPLC data.

[0177] For example, the target data length provided in this embodiment can be the same as the data length of the second CPLC data. The second CPLC data provided in this embodiment can be:

[0178] 479007644701F3560600917409140030136748100000005100000449483BDF5380010000000000354647

[0179] The third CPLC data obtained after the second CPLC data undergoes character conversion processing using the first conversion strategy is:

[0180] 479007644701f3560600917409140030136748100000005100000449483bdf5380010000000000354647

[0181] In this embodiment, the four letter data values ​​"F", "B", "D" and "F" in the second CPLC data are converted into characters to obtain "f", "b", "d" and "f".

[0182] Step 503: Perform a hash operation on the third CPLC data to obtain the second hash value.

[0183] In this embodiment, the SHA secure hash algorithm used in the hash operation process provided in this embodiment can be the SHA384 algorithm.

[0184] For example, the third CPLC data provided in this embodiment may be:

[0185] 479007644701F3560600917409140030136748100000005100000449483BDF5380010000000000354647

[0186] The process of using the SHA384 algorithm to hash the third CPLC data to obtain the second hash value can be as follows:

[0187] SHA384(479007644701F3560600917409140030136748100000005100000449483BDF5380010000000000354647)

[0188] =>

[0189] 14d2fd9806bfdcdd291a859dfff7ea0cdfcd77adfa1ea86b723e223d8b96c8cd243f848c2db4468f2ba34ddf03470a26

[0190] Step 504: Determine the integrity of the second CPLC data based on the second hash value.

[0191] In this embodiment, the integrity of the second CPLC data is determined based on the uniqueness of the hash value obtained through hash operation. Specifically, if the second CPLC data obtained by the second terminal 20 is correct and complete, the third CPLC data obtained by performing character conversion processing corresponding to the first conversion strategy on the second CPLC should be the same as the first CPLC data obtained by the first terminal 10 after preprocessing the initial CPLC. However, since the second terminal 20 cannot know whether the third CPLC data is the same as the first CPLC data obtained by the first terminal 10, this embodiment determines the integrity of the second CPLC data received by the second terminal 20 by using the characteristic that the hash values ​​corresponding to the same data are the same, and by using the hash value of the first CPLC data and the second conversion strategy (a strategy opposite to the first conversion strategy) to perform character conversion processing on the target type data value in the first CPLC data.

[0192] As an optional embodiment, this embodiment determines whether the data value of the target type in the second CPLC data has undergone character conversion processing of the second conversion strategy in the first terminal 10 based on the data value at the same position in the second hash value as the data value of the target type in the second CPLC data, thereby judging the correctness of the data value of the target type in the second CPLC. That is, this embodiment judges the correctness of the data value of the target type in the second CPLC by determining whether the uppercase and lowercase format of the target value in the second CPLC data and the data value at the corresponding position in the second hash value meet preset conditions. Thus, the data value of the target type in the second CPLC data provided in this embodiment is equivalent to a check code that can be used for data verification processing, which can be used for data verification of the second CPLC data, thereby effectively improving the reliability and security of the CPLC data and preventing the second terminal 20 from using incorrect or incomplete second CPLC data, which would affect the normal operation of the second terminal 20.

[0193] In some embodiments, see Figure 6 , Figure 6 This is a flowchart illustrating a data verification process provided in an embodiment of the present invention, such as... Figure 6 As shown, steps 5041 to 5043 are included;

[0194] Step 5041: Determine the second target position in the second CPLC data for the target type data value.

[0195] For example, the second CPLC data provided in this embodiment may be:

[0196] 479007644701F3560600917409140030136748100000005100000449483bDf5380010000000000354647

[0197] Then the second target position of the target type data value (letter type data value) in the second CPLC data can be determined. Specifically, the second target position of the target type data value "F" in the second CPLC data is the position of the 13th data value, the second target position of the target type data value "b" in the second CPLC data is the position of the 60th data value, the second target position of the target type data value "D" in the second CPLC data is the position of the 61st data value, and the second target position of the target type data value "f" in the second CPLC data is the position of the 62nd data value.

[0198] Step 5042: Determine the second data value at the second target position in the second hash value.

[0199] For example, the second hash value corresponding to the third CPLC data provided in the above embodiments is:

[0200] 14d2fd9806bfdcdd291a859dfff7ea0cdfcd77adfa1ea86b723e223d8b96c8cd243f848c2db4468f2ba34ddf03470a26

[0201] Then the second data value at the second target position in the second hash value can be determined. Specifically, when the second target position is the 13th data value, the second data value is d; when the second target position is the 60th data value, the second data value is 6; when the second target position is the 61st data value, the second data value is c; and when the second target position is the 62nd data value, the second data value is 8.

[0202] Step 5043: If the second data value meets the preset conditions and the size format of the letters in the target type data value is not the target format, then the second CPLC data is determined to be complete data.

[0203] In this embodiment, the target format is the size format of the letters in the target type data value after character conversion processing by the first conversion strategy. The preset conditions provided in this embodiment are the same as the preset conditions set in the first terminal 10, that is, the preset conditions provided in this embodiment are determined based on the size relationship between the second data value and the preset threshold. Specifically, in one case, the preset condition provided in this embodiment can be that the second data value is not greater than the preset threshold; in another case, the preset condition provided in this embodiment can be that the second data value is greater than the preset threshold. Since the CPLC data provided in this embodiment is composed of hexadecimal data, the preset threshold provided in this embodiment can be 6, 7, etc. This embodiment does not limit the preset threshold; as long as it is a hexadecimal data value, that is, a data value among 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b, c, d, e, f, it is acceptable.

[0204] In one implementation, the first conversion strategy adopted in this embodiment can be a strategy of converting letter-type data values ​​to uppercase letters. In this embodiment, the target format is uppercase. That is, the second CPLC data can only be determined to be complete data when the second data value meets the preset conditions and the letter size format in the target type data value is not uppercase.

[0205] Specifically, the preset threshold used in this embodiment can be 8, and the preset condition used in this embodiment can be that the second data value is not greater than the preset threshold 8. For example, the second CPLC data used in this embodiment can be:

[0206] 479007644701F3560600917409140030136748100000005100000449483bDf5380010000000000354647

[0207] The third CPLC data is:

[0208] 479007644701F3560600917409140030136748100000005100000449483BDF5380010000000000354647

[0209] The second hash value corresponding to the third CPLC data is:

[0210] 14d2fd9806bfdcdd291a859dfff7ea0cdfcd77adfa1ea86b723e223d8b96c8cd243f848c2db4468f2ba34ddf03470a26

[0211] Therefore, the second data values ​​can be determined as d, 6, c, and 8. Thus, it can be determined that the second data value d does not meet the preset condition, the second data value 6 meets the preset condition, the second data value c does not meet the preset condition, and the second data value 8 meets the preset condition.

[0212] Since this embodiment determines the second CPLC data to be complete only when the second data value meets the preset conditions and the letter size format in the target type data value is not the target format, that is, this embodiment can determine the second CPLC data to be complete only when the second data value is not greater than the preset threshold 8 and the letter size format in the target type data value is not uppercase. Therefore, the data verification method provided in this embodiment is as follows: if the second data value d does not meet the preset conditions, then the second data value d corresponds to the target type data value "F" in the second CPLC data and should be in uppercase; if the second data value 6 meets the preset conditions, then the second data value 6 corresponds to the target type data value "b" in the second CPLC data and should not be in uppercase, but should be in lowercase; if the second data value c does not meet the preset conditions, then the second data value c corresponds to the target type data value "D" in the second CPLC data and should be in uppercase; if the second data value 8 meets the preset conditions, then the second data value 8 corresponds to the target type data value "f" in the second CPLC data and should not be in uppercase, but should be in lowercase.

[0213] Based on the specific data verification process provided in the above embodiments, it can be seen that the size and format of the target type data value in the second CPLC data provided in this embodiment have passed the data verification. Therefore, it can be determined that the second CPLC data provided in this embodiment is complete.

[0214] In another implementation, the first conversion strategy can also be a strategy of converting letter-type data values ​​to lowercase letters. Therefore, the target format provided in this embodiment is lowercase. That is, the second CPLC data can only be determined to be complete data when the second data value meets the preset conditions and the letter format in the target type data value is not lowercase. For the specific data verification process, please refer to the method provided in the above embodiments, which will not be repeated here.

[0215] At this point, the second terminal 20 has completed the data verification process for the second CPLC data.

[0216] Based on the method described in the above embodiments, this embodiment will be further described from the perspective of a data processing device. The data processing device can be implemented as an independent entity or integrated into an electronic device, such as a terminal, which may include a mobile phone, a tablet computer, etc.

[0217] In some embodiments, this embodiment provides a data processing device applied to a first terminal. For details, please refer to [link to relevant documentation]. Figure 7 , Figure 7 This is a schematic diagram of a data processing device provided in an embodiment of the present invention, such as... Figure 7 As shown, the data processing device 700 provided in this embodiment of the invention includes: an acquisition module 701, a first conversion module 702, a first calculation module 703, a second conversion module 704, and a sending module 705;

[0218] The acquisition module 701 is used to acquire the initial CPLC data to be encoded.

[0219] The initial CPLC data includes at least one data value of letter type.

[0220] The first conversion module 702 is used to perform character conversion processing on the target type data value in the initial CPLC data using a preset first conversion strategy to obtain the first CPLC data.

[0221] The target type is a letter type.

[0222] In one implementation, the first conversion strategy includes a strategy to convert letter-type data values ​​to uppercase letters. The first conversion module 702 is specifically used to use a preset first conversion strategy to convert target-type data values ​​in the initial CPLC data to uppercase letters to obtain the first CPLC data.

[0223] In another implementation, the first conversion strategy includes a strategy to convert letter-type data values ​​to lowercase letters. The first conversion module 702 is specifically used to use a preset first conversion strategy to convert target-type data values ​​in the initial CPLC data to lowercase letters to obtain the first CPLC data.

[0224] In some embodiments, the target type data value is the letter type data value contained in the target data value, the target data value is a continuous data value of a preset data length in the initial CPLC data, and the preset data length is not greater than the data length of the initial CPLC data.

[0225] The first arithmetic module 703 is used to perform hash operations on the first CPLC data to obtain the first hash value.

[0226] The second conversion module 704 is used to perform character conversion processing on the target type data value in the first CPLC data according to the first CPLC data, the first hash value and the preset second conversion strategy, so as to obtain the second CPLC data.

[0227] The first conversion strategy and the second conversion strategy are opposite conversion strategies.

[0228] The sending module 705 is used to send the second CPLC data and the information of the first conversion strategy to the second end.

[0229] In some embodiments, see Figure 8 , Figure 8 This is a schematic diagram of a structure of the second conversion module provided in an embodiment of the present invention, such as... Figure 8 As shown, the second conversion module 704 includes a first determining unit 7041, a second determining unit 7042, and a first processing unit 7043;

[0230] The first determining unit 7041 is used to determine the first target position of the target type data value in the first CPLC data. The second determining unit 7042 is used to determine the first data value at the first target position in the first hash value. The first processing unit 7043 is used to, if the first data value meets a preset condition, adopt a preset second conversion strategy to convert the target type data value corresponding to the first target position in the first CPLC data into lowercase letters to obtain the second CPLC data.

[0231] As an optional embodiment, please continue to refer to Figure 8 The second conversion module 704 provided in this embodiment includes a first determining unit 7041, a second determining unit 7042, and a second processing unit 7044;

[0232] The first determining unit 7041 is used to determine the first target position of the target type data value in the first CPLC data. The second determining unit 7042 is used to determine the first data value at the first target position in the first hash value. The second processing unit 7044 is used to, if the first data value meets a preset condition, adopt a preset second conversion strategy to convert the target type data value in the first CPLC data corresponding to the first target position into uppercase letters to obtain the second CPLC data.

[0233] In other embodiments, this embodiment provides a data processing device applied to a second terminal. For details, please refer to [link to relevant documentation]. Figure 9 , Figure 9 This is another structural schematic diagram of the data processing device provided in the embodiments of the present invention, such as... Figure 9 As shown, the data processing device 900 provided in this embodiment of the invention includes: a receiving module 901, a third conversion module 902, a second calculation module 903, and a determining module 904;

[0234] The receiving module 901 is used to receive the second CPLC data and the information of the first conversion strategy sent by the first terminal.

[0235] The third conversion module 902 is used to perform character conversion processing on the target type data value in the second CPLC data according to the first conversion strategy to obtain the third CPLC data.

[0236] The target type is a letter type.

[0237] In some embodiments, see Figure 10 , Figure 10 This is a schematic diagram of a third conversion module provided in an embodiment of the present invention, such as... Figure 10 As shown, the third conversion module 902 includes an acquisition unit 9021 and a character conversion unit 9022;

[0238] The acquisition unit 9021 is used to acquire the target data length of the second CPLC data after character conversion processing in the first terminal. The character conversion unit 9022 is used to perform character conversion processing on the data values ​​of the target type contained in the target data length of the second CPLC data according to the first conversion strategy, so as to obtain the third CPLC data.

[0239] In one implementation, the first conversion strategy includes a strategy to convert letter-type data values ​​to uppercase letters, and the third conversion module 902 is specifically used to convert the letters in the target-type data values ​​contained in the target data length of the second CPLC data to uppercase letters according to the first conversion strategy, so as to obtain the third CPLC data.

[0240] In another implementation, the first conversion strategy includes a strategy to convert letter-type data values ​​to lowercase letters. The third conversion module 902 is specifically used to convert the letters in the target-type data values ​​contained in the target data length of the second CPLC data to lowercase letters according to the first conversion strategy, so as to obtain the third CPLC data.

[0241] The second operation module 903 is used to perform hash operation on the third CPLC data to obtain the second hash value.

[0242] The determination module 904 is used to determine the integrity of the second CPLC data based on the second hash value.

[0243] In some embodiments, see Figure 11 , Figure 11 This is a schematic diagram of a determining module provided in an embodiment of the present invention, such as... Figure 11 As shown, the determining module 904 includes a third determining unit 9041, a fourth determining unit 9042, and a third processing unit 9043;

[0244] The third determining unit 9041 is used to determine the second target position of the target type data value in the second CPLC data. The fourth determining unit 9042 is used to determine the second data value at the second target position in the second hash value. The third processing unit 9043 is used to determine that the second CPLC data is complete data if the second data value meets the preset conditions and the letter size format in the target type data value is not the target format, and the target format is the letter size format in the target type data value after the character conversion processing of the first conversion strategy.

[0245] In specific implementation, the above modules and / or units can be implemented as independent entities, or they can be arbitrarily combined and implemented as the same or several entities. For the specific implementation of the above modules and / or units, please refer to the previous method embodiments. For the specific beneficial effects that can be achieved, please also refer to the beneficial effects in the previous method embodiments, which will not be repeated here.

[0246] Additionally, please see Figure 12 , Figure 12 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. The electronic device can be a mobile terminal such as a smartphone, tablet computer, or other similar device. Figure 12As shown, the electronic device 1200 includes a processor 1201 and a memory 1202. The processor 1201 and the memory 1202 are electrically connected.

[0247] The processor 1201 is the control center of the electronic device 1200. It connects various parts of the electronic device through various interfaces and lines. By running or loading the application program stored in the memory 1202 and calling the data stored in the memory 1202, it performs various functions of the electronic device 1200 and processes data, thereby monitoring the electronic device 1200 as a whole.

[0248] In this embodiment, the processor 1201 in the electronic device 1200 will load the instructions corresponding to the processes of one or more applications into the memory 1202 according to the following steps, and the processor 1201 will run the applications stored in the memory 1202 to realize any step in the data processing method provided in the above embodiment.

[0249] The electronic device 1200 can implement the steps of any embodiment of the data processing method provided in the embodiments of the present invention. Therefore, it can achieve the beneficial effects that any data processing method provided in the embodiments of the present invention can achieve. For details, please refer to the previous embodiments, which will not be repeated here.

[0250] Please see Figure 13 , Figure 13 This is another structural schematic diagram of the electronic device provided in the embodiments of the present invention, such as... Figure 13 As shown, Figure 13 A specific structural block diagram of an electronic device provided in an embodiment of the present invention is shown. This electronic device can be used to implement the data processing method provided in the above embodiments. The electronic device 1300 can be a mobile terminal such as a smartphone or a laptop computer.

[0251] RF circuit 1310 is used to receive and transmit electromagnetic waves, converting electromagnetic waves into electrical signals and vice versa, thereby enabling communication with communication networks or other devices. RF circuit 1310 may include various existing circuit elements used to perform these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, subscriber identity modules (SIM cards), memory, etc. RF circuit 1310 can communicate with various networks such as the Internet, corporate intranets, and wireless networks, or communicate with other devices via wireless networks. The aforementioned wireless networks may include cellular telephone networks, wireless local area networks (WLANs), or metropolitan area networks (MANs). The aforementioned wireless networks may use various communication standards, protocols, and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (such as IEEE 802.11a, IEEE 802.11b, IEEE 802.11g, and / or IEEE 802.11n), Voice over Internet Protocol (VoIP), Worldwide Interoperability for Microwave Access (Wi-Max), other protocols for email, instant messaging, and short messages, and any other suitable communication protocols, including those that have not yet been developed.

[0252] The memory 1320 can be used to store software programs and modules, such as program instructions / modules corresponding to the data processing method in the above embodiment. The processor 1380 executes various functional applications and data processing by running the software programs and modules stored in the memory 1320.

[0253] Memory 1320 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, memory 1320 may further include memory remotely located relative to processor 1380, which can be connected to electronic device 1300 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0254] Input unit 1330 can be used to receive input numerical or character information, and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. Specifically, input unit 1330 may include touch-sensitive surface 1331 and other input devices 1332. Touch-sensitive surface 1331, also known as a touch display screen or touchpad, can collect user touch operations on or near it (such as user operations using fingers, styluses, or any suitable object or accessory on or near touch-sensitive surface 1331), and drive corresponding connection devices according to a pre-set program. Optionally, touch-sensitive surface 1331 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, sends it to processor 1380, and can receive and execute commands from processor 1380. In addition, the touch-sensitive surface 1331 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. Besides the touch-sensitive surface 1331, the input unit 1330 may also include other input devices 1332. Specifically, other input devices 1332 may include, but are not limited to, one or more of the following: a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick.

[0255] Display unit 1340 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of electronic device 1300. These graphical user interfaces can be composed of graphics, text, icons, video, and any combination thereof. Display unit 1340 may include display panel 1341, optionally configured as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or other similar forms. Further, touch-sensitive surface 1331 may cover display panel 1341. When touch-sensitive surface 1331 detects a touch operation on or near it, it transmits the information to processor 1380 to determine the type of touch event. Subsequently, processor 1380 provides corresponding visual output on display panel 1341 according to the type of touch event. Although in the figures, touch-sensitive surface 1331 and display panel 1341 are implemented as two separate components to achieve input and output functions, in some embodiments, touch-sensitive surface 1331 and display panel 1341 can be integrated to achieve input and output functions.

[0256] The electronic device 1300 may also include at least one sensor 1350, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1341 according to the ambient light level, and the proximity sensor can generate an interruption when the flip is closed or shut down. As a type of motion sensor, a gravity acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that recognize the phone's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc. Other sensors that may be configured in the electronic device 1300, such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.

[0257] Audio circuitry 1360, speaker 1361, and microphone 1362 provide an audio interface between the user and electronic device 1300. Audio circuitry 1360 converts received audio data into electrical signals and transmits them to speaker 1361, where speaker 1361 converts them into sound signals for output. Conversely, microphone 1362 converts collected sound signals into electrical signals, which are then received by audio circuitry 1360, converted back into audio data, processed by processor 1380, and then transmitted via RF circuitry 1310 to, for example, another terminal, or output to memory 1320 for further processing. Audio circuitry 1360 may also include an earphone jack to facilitate communication between external headphones and electronic device 1300.

[0258] Electronic device 1300, through transmission module 1370 (e.g., Wi-Fi module), can help users receive requests, send information, etc., providing users with wireless broadband internet access. Although transmission module 1370 is shown in the figure, it is understood that it is not an essential component of electronic device 1300 and can be omitted as needed without changing the essence of the invention.

[0259] The processor 1380 is the control center of the electronic device 1300. It connects to various parts of the phone via various interfaces and lines, and performs various functions and processes data of the electronic device 1300 by running or executing software programs and / or modules stored in the memory 1320, and by calling data stored in the memory 1320, thereby providing overall monitoring of the electronic device. Optionally, the processor 1380 may include one or more processing cores; in some embodiments, the processor 1380 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may also not be integrated into the processor 1380.

[0260] The electronic device 1300 also includes a power supply 1390 (such as a battery) for supplying power to various components. In some embodiments, the power supply may be logically connected to the processor 1380 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. The power supply 1390 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0261] Although not shown, the electronic device 1300 also includes cameras (such as front-facing cameras and rear-facing cameras), Bluetooth modules, etc., which will not be described in detail here. Specifically, in this embodiment, the display unit of the electronic device is a touch screen display, and the mobile terminal also includes a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors to implement any step of the data processing method provided in the above embodiments.

[0262] In practice, the above modules can be implemented as independent entities or combined in any way to be implemented as the same or several entities. For the specific implementation of the above modules, please refer to the previous method implementation examples, which will not be repeated here.

[0263] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor. Therefore, embodiments of the present invention provide a storage medium storing multiple instructions that, when executed by a processor, can implement any step in the data processing methods provided in the above embodiments.

[0264] The storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0265] Since the instructions stored in the storage medium can execute the steps in any embodiment of the data processing method provided in the embodiments of the present invention, the beneficial effects that any data processing method provided in the embodiments of the present invention can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.

[0266] The foregoing has provided a detailed description of a data processing method, apparatus, electronic device, and storage medium provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and its core ideas. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application. Moreover, those skilled in the art can make several improvements and modifications without departing from the principles of this invention, and these improvements and modifications are also considered to be within the scope of protection of this invention.

Claims

1. A data processing method, characterized in that, Applied to a first terminal, the method includes: Obtain initial CPLC data to be encoded, the initial CPLC data including at least one data value of letter type; Using a preset first conversion strategy, the target type data value in the initial CPLC data is converted into a character to obtain the first CPLC data, wherein the target type is a letter type. Perform a hash operation on the first CPLC data to obtain the first hash value; Based on the first CPLC data, the first hash value, and the preset second conversion strategy, the target type data value in the first CPLC data is subjected to character conversion processing to obtain the second CPLC data. The first conversion strategy and the second conversion strategy are opposite conversion strategies. The second CPLC data and the information of the first conversion strategy are sent to the second terminal, so that the second terminal performs character conversion processing on the target type data value in the second CPLC data according to the first conversion strategy to obtain the third CPLC data, wherein the target type is letter type; performs hash operation processing on the third CPLC data to obtain the second hash value; and determines the integrity of the second CPLC data according to the second hash value.

2. The method as described in claim 1, characterized in that, The first conversion strategy includes a strategy for converting letter-type data values ​​to uppercase letters; The first conversion strategy is used to perform character conversion processing on the target type data values ​​in the initial CPLC data to obtain the first CPLC data, including: Using a preset first conversion strategy, the target type data values ​​in the initial CPLC data are converted to uppercase letters to obtain the first CPLC data; The step of performing character conversion processing on the target type data value in the first CPLC data according to the first CPLC data, the first hash value, and a preset second conversion strategy to obtain the second CPLC data includes: Determine the first target position of the data value of the target type in the first CPLC data; Determine the first data value at the first target location in the first hash value; If the first data value meets the preset conditions, then the preset second conversion strategy is adopted to convert the data value of the target type corresponding to the first target position in the first CPLC data into lowercase letters to obtain the second CPLC data.

3. The method as described in claim 1, characterized in that, The first conversion strategy includes a strategy for converting letter-type data values ​​to lowercase letters; The first conversion strategy is used to perform character conversion processing on the target type data values ​​in the initial CPLC data to obtain the first CPLC data, including: Using a preset first conversion strategy, the target type data values ​​in the initial CPLC data are converted to lowercase letters to obtain the first CPLC data; The step of performing character conversion processing on the target type data value in the first CPLC data according to the first CPLC data, the first hash value, and a preset second conversion strategy to obtain the second CPLC data includes: Determine the first target position of the data value of the target type in the first CPLC data; Determine the first data value at the first target location in the first hash value; If the first data value meets the preset conditions, then the preset second conversion strategy is adopted to convert the data value of the target type corresponding to the first target position in the first CPLC data into uppercase letters to obtain the second CPLC data.

4. The method as described in claim 3, characterized in that, The target data value is a letter-type data value contained in the target data value. The target data value is a continuous data value of a preset data length in the initial CPLC data. The preset data length is not greater than the data length of the initial CPLC data.

5. A data processing method, characterized in that, Applied to a second terminal, the method includes: Receive the second CPLC data and the information of the first conversion strategy sent by the first terminal; According to the first conversion strategy, the target type data value in the second CPLC data is subjected to character conversion processing to obtain the third CPLC data, wherein the target type is a letter type; The third CPLC data is hashed to obtain a second hash value; The integrity of the second CPLC data is determined based on the second hash value; The first terminal is configured to: acquire initial CPLC data to be encoded, the initial CPLC data including at least one alphanumeric data value; perform character conversion processing on the target type data value in the initial CPLC data using a preset first conversion strategy to obtain first CPLC data, the target type being alphanumeric; perform hash operation processing on the first CPLC data to obtain a first hash value; perform character conversion processing on the target type data value in the first CPLC data according to the first CPLC data, the first hash value, and a preset second conversion strategy to obtain second CPLC data, the first conversion strategy and the second conversion strategy being opposite conversion strategies; and send the second CPLC data and the information of the first conversion strategy to the second terminal.

6. The method as described in claim 5, characterized in that, The step of performing character conversion processing on the target type data values ​​in the second CPLC data according to the first conversion strategy to obtain the third CPLC data includes: Obtain the target data length of the second CPLC data after character conversion processing in the first terminal; According to the first conversion strategy, the target type data values ​​in the target data length contained in the second CPLC data are converted into characters to obtain the third CPLC data.

7. The method as described in claim 6, characterized in that, The first conversion strategy includes a strategy for converting letter-type data values ​​to uppercase letters; The step of performing character conversion processing on the target type data values ​​within the target data length of the second CPLC data according to the first conversion strategy to obtain the third CPLC data includes: According to the first conversion strategy, the target type data values ​​contained in the target data length of the second CPLC data are converted to uppercase letters to obtain the third CPLC data.

8. The method as described in claim 6, characterized in that, The first conversion strategy includes a strategy for converting letter-type data values ​​to lowercase letters; The step of performing character conversion processing on the target type data values ​​within the target data length of the second CPLC data according to the first conversion strategy to obtain the third CPLC data includes: According to the first conversion strategy, the target type data values ​​contained in the target data length of the second CPLC data are converted to lowercase letters to obtain the third CPLC data.

9. The method as described in claim 7 or 8, characterized in that, The step of determining the integrity of the second CPLC data based on the second hash value includes: Determine the second target position of the data value of the target type in the second CPLC data; Determine the second data value at the second target position in the second hash value; If the second data value meets the preset conditions, and the size format of the letters in the target type data value is not the target format, then the second CPLC data is determined to be complete data, and the target format is the size format of the letters in the target type data value after the character conversion processing of the first conversion strategy.

10. A data processing apparatus, characterized in that, Applied to a first terminal, the data processing device includes: An acquisition module is used to acquire initial CPLC data to be encoded, wherein the initial CPLC data includes at least one data value of letter type; The first conversion module is used to perform character conversion processing on the target type data value in the initial CPLC data using a preset first conversion strategy to obtain the first CPLC data, wherein the target type is a letter type; The first calculation module is used to perform hash operation on the first CPLC data to obtain the first hash value; The second conversion module is used to perform character conversion processing on the target type data value in the first CPLC data according to the first CPLC data, the first hash value and the preset second conversion strategy to obtain the second CPLC data. The first conversion strategy and the second conversion strategy are opposite conversion strategies. The sending module is used to send the second CPLC data and the information of the first conversion strategy to the second terminal, so that the second terminal performs character conversion processing on the target type data value in the second CPLC data according to the first conversion strategy to obtain the third CPLC data, wherein the target type is a letter type; performs hash operation processing on the third CPLC data to obtain the second hash value; and determines the integrity of the second CPLC data according to the second hash value.

11. A data processing apparatus, characterized in that, The data processing device, applied to a second terminal, includes: The receiving module is used to receive the second CPLC data and the information of the first conversion strategy sent by the first terminal; The third conversion module is used to perform character conversion processing on the target type data value in the second CPLC data according to the first conversion strategy to obtain the third CPLC data, wherein the target type is a letter type; The second processing module is used to perform hash operations on the third CPLC data to obtain a second hash value; The determination module is used to determine the integrity of the second CPLC data based on the second hash value; The first terminal is configured to: acquire initial CPLC data to be encoded, the initial CPLC data including at least one alphanumeric data value; perform character conversion processing on the target type data value in the initial CPLC data using a preset first conversion strategy to obtain first CPLC data, the target type being alphanumeric; perform hash operation processing on the first CPLC data to obtain a first hash value; perform character conversion processing on the target type data value in the first CPLC data according to the first CPLC data, the first hash value, and a preset second conversion strategy to obtain second CPLC data, the first conversion strategy and the second conversion strategy being opposite conversion strategies; and send the second CPLC data and the information of the first conversion strategy to the second terminal.

12. An electronic device, characterized in that, The electronic device includes a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method as described in any one of claims 1 to 9.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the method as described in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Method and system for carrying out hierarchical expansion on data collection requests in Internet

    CN112732769A

  • Verification method, device, cipherer and system based on positioning information

    CN114697117A