Charging protection system based on TypeC data line

Through the charging protection system of the TypeC data cable, the addressed ciphertext data is generated using the addressed interaction table and interactive mapping images, which solves the problem of data transmission insecurity caused by key loss, and realizes the data security of charging and transmission while ensuring that The stability and security of data transmission.

CN119150319AActive Publication Date: 2024-12-17GUANGXI FUHONG TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411177571.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2024-12-17
Estimated Expiration
2044-08-26

AI Technical Summary

Technical Problem

When the existing encryption method is lost in extreme cases, it may lead to insecure data transmission, threatening user privacy and data security, especially during data transmission between mobile phones and computers, especially when charging and transmitting. There is a risk of data interruption.

Method used

Using a charging protection system based on TypeC data cable, the interactive mapping image is constructed through pre-stored migration interaction tables and interaction mapping tables, and the addressed ciphertext data is generated to avoid encryption failure caused by key loss, and depend on it during transmission. Convert multiple times to the addressed interactive table to ensure data security.

Benefits of technology

Implements data encryption without key dependency in file transfer mode, ensuring data security while charging, avoiding the risk of data transmission caused by key loss, and not affecting the leakage of the address interactive table. Transmission and storage of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119150319A_ABST
    Figure CN119150319A_ABST
Patent Text Reader

Abstract

The invention discloses a charging protection system based on a TypeC data line, and relates to the technical field of charging protection. A connection mode selected by a user when client equipment and host equipment are connected through a data line is acquired through a mode selection module; the charging protection module obtains storage addresses of all pre-transmitted data selected by the user on the host equipment after the user selects the file transmission mode, and correspondingly obtains address shifting data of the connection according to the storage addresses; the interaction mapping table and the interaction mapping image are respectively constructed according to the pre-generated address shifting interaction table and the character content of the address shifting data, the address shifting ciphertext data are obtained based on the interaction mapping table and the interaction mapping image, and the address shifting ciphertext data are received by the host equipment terminal, so that on one hand, the dependence on a key in an encryption process is eliminated; and on the other hand, the transmission data in the file mode is encrypted, so that the security of transmitting the data while charging is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of charging protection, and in particular to a charging protection system based on a Type C data line. Background Art

[0002] In today's digital age, mobile phones have become an indispensable tool in people's lives, used to store a large amount of personal data, such as photos, videos, documents, etc. However, the capacity of existing mobile phones is often limited and cannot meet the growing data storage needs of users;

[0003] In order to solve the problem of insufficient mobile phone capacity, some users choose to regularly transfer data from their mobile phones to their computers and further save them to the cloud. This method not only frees up the storage space of the mobile phone to store new content, but also enables data backup to prevent data loss;

[0004] During the data transmission between the mobile phone and the computer, in order to ensure the continuity and stability of data transmission, the mobile phone is usually charged while connected to the computer. This operation is particularly important for long-term data transmission, which can effectively avoid data transmission interruption caused by the exhaustion of the mobile phone battery.

[0005] However, in terms of data transmission security, existing encryption methods have certain limitations. For example, the widely used AES256 encryption algorithm relies on a key to encrypt the transmitted data. Although it guarantees data security to a certain extent, in extreme cases, there is a risk of key loss. Once the key is lost, the transmitted data may be illegally obtained or tampered with, seriously threatening the privacy and data security of users.

[0006] In order to solve the above problems, the present invention proposes a solution. Summary of the invention

[0007] The purpose of the present invention is to provide a charging protection system based on Type C data line, in order to solve the problems raised in the above background technology;

[0008] The purpose of the present invention can be achieved through the following technical solutions:

[0009] A charging protection system based on Type C data line, including a charging protection module:

[0010] A charging protection module, used to protect the security of data transmission when charging is connected between the client device and the host device through a data line. A shift interaction table is pre-stored in the charging protection module, and a four-bit binary number of 0 to 15 digits and its number are stored in the shift interaction table;

[0011] When it is detected that the client device and the host device are connected via a data cable and the user selects the connection mode as the file transfer mode, the charging protection module obtains corresponding data according to the storage addresses of several data selected by the user in the host device, and generates shift address data according to all the obtained data;

[0012] The charging protection module constructs an interactive mapping table according to the number and character content of each four-bit binary number in the shift interaction table. The interactive mapping table is a table with 5 columns and 16 rows, in which each cell is filled with a number of characters. The first, second, third and fourth mapping table sequences are obtained according to the characters filled in each cell in the interactive mapping table.

[0013] Constructing an interactive mapping image based on the shift data, combining each character in the shift data in binary format, selecting a number of pixel points from a number of rows of the image and corresponding one-to-one with the characters in the shift data to obtain a number of mapping image sequences;

[0014] For each mapping image sequence, the first, second, third and fourth mapping table sequences are traversed to obtain the shift segment sequence of each mapping image sequence, and the shift segment sequences of several mapping image sequences are spliced ​​to obtain the shift ciphertext data.

[0015] Furthermore, when the user selects the connection mode as the file transfer mode, the client device opens permissions to the host device, and the user can access the storage addresses of all data in the client device through the host device.

[0016] Furthermore, the numbers of the 16 four-bit binary numbers in the address shift interaction table are generated by the client device after the user independently completes the initial authentication when the client device and the host device are connected for the first time. After generation, both the client device and the host device save them. The independent initial authentication includes facial recognition and fingerprint recognition.

[0017] Furthermore, in the file transfer mode, the client device is charged through the connected host device and transmits data to the host device.

[0018] Furthermore, it also includes a host device terminal, which is used to receive the shifted data. After receiving the transmitted shifted data, the host device terminal restores and stores the shifted data according to the shift interaction table stored in the host device terminal.

[0019] Beneficial effects of the present invention:

[0020] (1) The present invention obtains the connection mode selected by the user when the client device and the host device are connected via a data line through a mode selection module. After the user selects the file transfer mode, the charging protection module obtains the storage address of all the data selected by the user for pre-transmission on the host device, obtains the displacement data of this connection according to the storage address, and constructs an interaction mapping table and an interaction mapping image according to the pre-generated displacement interaction table and the character content of the displacement data. Based on the interaction mapping table and the interaction mapping image, the mapping bit number of each character in the binary format displacement data is found to obtain the displacement ciphertext data, which is received by the host device terminal. In this way, on the one hand, the dependence on the key in the encryption process is eliminated, and the occurrence of data encryption failure caused by the loss of the key is avoided. On the other hand, the data transmitted in the file mode is encrypted, and the security of data transmission while charging is guaranteed.

[0021] (2) When constructing an interactive mapping table, the present invention fills the corresponding characters into the table according to the serial number of each four-bit binary number in the shift interaction table, and obtains the first, second, third and fourth mapping table sequences based on the characters filled in each cell in the same column. When constructing an interactive mapping image, the number of rows to be mapped is selected according to the total number of characters in the shift data in binary format, and the number of pixels selected as mapping in each row increases by one row by row. Then, based on the number of times each mapping pixel in each row is selected, a plurality of row mapping image sequences based on the shift data conversion are obtained. At this time, the first position conversion is completed for the shift data. This conversion is based on the logical position and does not need to rely on other The remaining specific data can be restored, and then the character contents in the first, second, third and fourth mapping table sequences are rotated in turn based on the content of the characters in each mapping image sequence to obtain the number of bits of the characters in each mapping image sequence in the corresponding mapping table sequence. At this time, the second conversion is completed for the shifted data, and the shifted ciphertext data is generated based on the conversion result. The shifted ciphertext data is converted. On the one hand, multiple conversions ensure the security of transmission of the shifted data under charging conditions. On the other hand, the conversion process only depends on the shift interaction table, and on the basis of the shift interaction table, it depends on the conversion logic. Even if the shift interaction table is leaked, it will not affect the transmission and storage of the shifted data. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The present invention will be further described below in conjunction with the accompanying drawings.

[0023] Figure 1 is a system block diagram of the present invention;

[0024] Figure 2 It is a flow chart of the method of the present invention. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0026] like Figure 1 , 2 As shown, a charging protection system based on Type C data line includes a mode selection module, a charging protection module and a host device terminal;

[0027] A mode selection module, used to obtain a connection mode selected by a user of the client device when the client device and the host device are connected via a data cable. In this embodiment, the client device refers to a mobile phone of the user;

[0028] When it is detected that the client device and the host device are connected via a data line, the mode selection module provides several connection modes for the user of the client device to select a unique mode, wherein the host device includes but is not limited to a laptop computer, a desktop computer, etc. In one embodiment of the present invention, the host device refers to a desktop computer;

[0029] In one embodiment of the present invention, there are three connection modes, namely, charging-only mode, file transfer mode and USB debugging mode. In charging-only mode, the client device is only charged through the connected host device and no data is transferred. In file transfer mode, the client device is charged through the connected host device and transfers data to the host device. The USB debugging mode is mainly used by developers to perform operations such as debugging and installing applications during the development process.

[0030] When the user selects the file transfer mode, the mode selection module generates a charging interaction instruction and transmits it to the charging protection module and the host device terminal respectively.

[0031] A charging protection module, used to protect the security of transmitted data when the client device and the host device are connected via a data line, wherein a shift interaction table is pre-stored in the charging protection module, wherein the shift interaction table contains four-bit binary numbers corresponding to numbers 0 to 15 and their numbers;

[0032] In this embodiment, the numbers of the 16 four-bit binary numbers in the shift interaction table are generated by the client device after the user independently completes the initial authentication when the client device and the host device are connected for the first time. After the generation, both the client device and the host device save them. In this embodiment, the independently completed initial authentication includes but is not limited to facial recognition and fingerprint recognition;

[0033] The charging protection module opens the charging interaction permission to the host device after receiving the transmitted charging interaction instruction;

[0034] After receiving the transmitted charging interaction instruction, the host device terminal monitors in real time whether the client device has opened the charging interaction permission to it. If it is opened, the host device terminal charges the client device at this time;

[0035] At the same time, after the client device opens the charging interaction permission to the host device, the user can access the storage address of all data in the client device through the host device and select the data at the corresponding storage address for transmission, where the data in the client device includes user data, system data, application data and cache data;

[0036] After the host device terminal obtains the storage addresses of all data to be stored in the host device selected by the user in the host device, it generates a shift instruction according to all the selected storage addresses, and transmits the shift instruction to the charging protection module;

[0037] After receiving the transmitted shift instruction, the charging protection module obtains all storage addresses carried therein and obtains corresponding data according to the storage addresses, and generates shift data according to the data obtained from all storage addresses carried in the shift instruction;

[0038] The charging protection module protects the transmission process of the shifted data according to the preset interactive protection rules, and the interactive protection rules are as follows:

[0039] S11: Obtain 16 four-bit binary numbers and their numbers stored in the shift interaction table, and mark the 16 four-bit binary numbers as A1, A2, ..., A16 in ascending order of the numbers;

[0040] S12: converting the shift data into a binary format, re-marking the converted data as shift conversion data, and marking all characters constituting the shift conversion data as E1, E2, ..., Ee in order from left to right, where e≥1;

[0041] S13: Construct an interactive mapping table according to a preset first construction rule, the first construction rule is as follows:

[0042] S131: Use spreadsheet software to create a blank table with 5 columns and 16 rows, and label all cells in the first column as B1, B2, ..., B16 in order from top to bottom and from right to left;

[0043] Then fill the four-digit binary numbers A1, A2, ..., A16 into cells B1, B2, ..., B16 in sequence;

[0044] S132: According to the physical position of each cell in the table, all cells in the same row as cell B1 in the table are marked, and according to the order of distance between each cell and cell B1, all cells in the same row as cell B1 in the table are marked as BC1, BC2, BC3, and BC4 in order from near to far;

[0045] S133: Mark all characters constituting the four-bit binary number A1 as D1, D2, D3 and D4 in order from right to left;

[0046] S134: Fill the character D1 into the cell BC1 for association mapping, and similarly fill the characters D2, D3, and D4 into the cells BC2, BC3, and BC4 respectively;

[0047] S135: filling characters in cells B2, B3, ..., B16 in the same row in sequence according to S134;

[0048] In this embodiment, the electronic spreadsheet software refers to office software, and the created independent authentication form is an Excel table. In this embodiment, the table is described from top to bottom and from right to left in accordance with the physical position of each cell in the Excel table;

[0049] S14: from top to bottom and from right to left, the characters filled in all cells in the second column are concatenated to obtain a first mapping table sequence. Similarly, the characters filled in all cells in the third, fourth and fifth columns are concatenated to obtain a second, third and fourth mapping table sequence respectively.

[0050] S15: construct an interactive mapping image based on the shift data according to a preset construction rule, the second construction rule is as follows:

[0051] S151: using image processing software to create an n*n image data, wherein the pixel values ​​of all pixels in the image data are (255, 255, 255), that is, each pixel in the image is white, and n is a preset rated quantity threshold, wherein the image processing software includes but is not limited to Adobe Photoshop, Canva, and OpenCV Python;

[0052] S152: Selecting the number of pixels that matches the number of rows from the first, second, ..., g rows in order from top to bottom;

[0053] From left to right, the pixel points in the first column of the first row are selected as the mapping pixel points of the first row, marked as F1. The pixel points in the first and second columns of the second row are selected as the mapping pixel points of the second row, marked as F2 and F3 respectively. Similarly, the pixel points in the first, second, ..., g columns of the g row are selected as the mapping pixel points of the g row, marked as F. 1+2+...+g 、F 1+2+...+g+1 , ..., F e ; The value of g is determined by the total number of characters that make up the shift conversion data;

[0054] S153: Then, according to the order in which each mapping pixel point is selected, the mapping pixel points of all rows are associated with the characters E1, E2, ..., Ee, and the pixel values ​​of the mapping pixel points of all rows are modified to (255, 0, 0). It should be noted that each mapping pixel point corresponds to only one character.

[0055] After the character association mapping is established, an interactive mapping image based on the shift data is obtained;

[0056] S16: Obtain h mapping image sequences according to a preset splicing rule, the splicing rule is as follows:

[0057] S161: respectively obtain the total number of mapped pixels located in the g-1th and gth rows and mark them as H1 and H2, and determine the values ​​of H1 and H2. If the values ​​of H1 and H2 satisfy the equation H1+1=H2, the mapped pixels in the gth row are included in the current mapping range. Otherwise, the mapped pixels in the gth row are not included in the current splicing range.

[0058] S162: first, from the interactive mapping image based on the shift data, sequentially obtain the first selected mapping pixel point located in the first, second, ..., h rows, and then, in the order from right to left, splice all the mapping pixel points in the order of obtaining to obtain a mapping image sequence;

[0059] S163: according to S162, the second, third, ..., g selected mapping pixel points located in the first, second, ..., g rows are sequentially obtained from the interactive mapping image based on the shift data, and h-1 mapping image sequences are correspondingly obtained, wherein if there is no selected mapping pixel point at the corresponding position in a row, the mapping pixel point at the corresponding position is not obtained;

[0060] If the mapped pixel point in the gth row is included in the current mapping range, the value of h is g, otherwise the value of h is g-1;

[0061] S17: according to the sequence of splicing each mapping image sequence, all mapping image sequences are marked as I1, I2, ..., Ih in sequence;

[0062] S18: Obtaining a shift segment sequence of the mapped image sequence I1, I2, ..., Ih according to a preset mapping rule. The mapping rule is as follows:

[0063] S181: Mark all characters constituting the mapping image sequence I1 as J1, J2, ..., Jh in sequence from left to right;

[0064] S182: Determine whether the character J1 is non-zero. If the character J1 is zero, traverse all characters in the first mapping table sequence from left to right, obtain the number of digits of the first character whose value is 0 in the first mapping table sequence, and use the number of digits as the mapping digits of the character J1. Otherwise, obtain the number of digits of the first character whose value is 1 in the first mapping table sequence, and use the number of digits as the mapping digits of the character J1.

[0065] At this time, the number of bits is recorded as the number of bits of the first mapping table sequence;

[0066] S183: Determine whether the character J2 is non-zero. If the character J2 is zero, traverse all characters in the second mapping table sequence from left to right, obtain the number of digits of the first character with a value of 0 in the first mapping table sequence, and use the number of digits as the mapping number of the character J2. Otherwise, obtain the number of digits of the first character with a value of 1 in the second mapping table sequence, and use the number of digits as the mapping number of the character J2. At this time, the number of digits is recorded as the flag number of the second mapping table sequence.

[0067] Similarly, the mapping digits of characters J3 and J4 and the flag digits of the third and fourth mapping table sequences can be obtained, wherein the mapping digits of character J3 are obtained from the third mapping table sequence, and the mapping digits of character J4 are obtained from the fourth mapping table sequence;

[0068] S184: In the order of J1, J2, ..., Jh, character J5 is judged to be non-zero. If character J5 is 0, all bits arranged to the right of the flag bit are traversed again from left to right based on the flag bit number of the first mapping table sequence, and the bit number of the first character with a value of 0 is obtained as the mapping bit number of character J5. At this time, the bit number is used as the new flag bit number of the first mapping table sequence;

[0069] Otherwise, all the bits arranged to the right of the flag bit number of the first mapping table sequence are traversed again from left to right, and the bit number of the first character with a value of 1 is obtained as the mapping bit number of the character J5, and the bit number is used as the flag bit number of the first mapping table sequence;

[0070] S185: Determine whether the character J6 is non-zero. If the character J6 is zero, traverse all the bits arranged to the right of the flag bit in the second mapping table sequence from left to right again, and obtain the bit of the first character with a value of 0 as the mapping bit of the character J6. At this time, the bit is used as the flag bit of the second mapping table sequence.

[0071] Otherwise, all the bits arranged to the right of the flag bit number of the second mapping table sequence are traversed again from left to right, and the bit number of the first character with a value of 1 is obtained as the mapping bit number of character J6, and the bit number is used as the flag bit number of the second mapping table sequence;

[0072] Similarly, the mapping digits of characters J7 and J8 and the new flag digits of the third and fourth mapping table sequences can be obtained;

[0073] S186: according to S181 to S187, the mapping bit numbers of characters J9, J10, ..., Jh are obtained in sequence, and then according to the sequence of characters J1, J2, ..., Jh, the mapping bit numbers of characters J1, J2, ..., Jj are concatenated to obtain a shift segment sequence of the mapping image sequence I1;

[0074] In the process of obtaining the number of sign bits of the character, the first, second, third and fourth mapping table sequences are traversed in turn, that is, after the first, second, third and fourth mapping table sequences are traversed once, the traversal starts again from the first mapping table sequence;

[0075] S187: Calculate and obtain the shift segment sequence of the mapping image sequence I2, I3, ..., Ih in sequence according to S181 to S186;

[0076] The charging protection module splices the shift segment sequences of the mapping image sequences I1, I2, ..., Ih in the order of the shift segment sequences of the mapping image sequences I1, I2, ..., Ih to obtain the shift ciphertext data;

[0077] The charging protection module transmits the shifted ciphertext data to the host device terminal;

[0078] After receiving the transmitted address ciphertext data, the host device terminal restores the address ciphertext data to the shift data according to the shift interaction table stored in the host device terminal for storage. It should be noted here that if the shift interaction table does not exist in the host device terminal, the shift ciphertext data is always stored in the host device terminal in the form of ciphertext;

[0079] It should be noted here that when constructing an image, its color is modified because in some cases, using snapshot technology for the image can more quickly identify the content in the image;

[0080] In the description of the specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0081] The above contents are merely examples and explanations of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the invention or exceed the scope defined by the claims, they shall all fall within the protection scope of the present invention.

[0082] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.

Claims

1. A charging protection system based on Type C data line, characterized in that: Including charging protection module: A charging protection module, used to protect the security of data transmission when charging is connected between the client device and the host device via a data line. A shift interaction table is pre-stored in the charging protection module. The shift interaction table stores four-bit binary numbers of 0 to 15 digits and their numbers; When it is detected that the client device and the host device are connected via a data cable and the user selects the connection mode as the file transfer mode, the charging protection module obtains corresponding data according to the storage addresses of several data selected by the user in the host device, and generates shift address data according to all the obtained data; The charging protection module constructs an interactive mapping table according to the number and character content of each four-bit binary number in the shift interaction table. The interactive mapping table is a table with 5 columns and 16 rows, in which each cell is filled with a number of characters. The first, second, third and fourth mapping table sequences are obtained according to the characters filled in each cell in the interactive mapping table. Constructing an interactive mapping image based on the shift data, selecting a number of pixel points from a number of rows of the interactive mapping image according to each character in the shift data in binary format, and obtaining a number of mapping image sequences in one-to-one correspondence with the characters in the shift data; For each mapping image sequence, the first, second, third and fourth mapping table sequences are traversed to obtain the shift segment sequence of each mapping image sequence, and the shift segment sequences of several mapping image sequences are spliced ​​to obtain the shift ciphertext data.

2. A charging protection system based on Type C data line according to claim 1, characterized in that: When the user selects the file transfer mode as the connection mode, the client device opens permissions to the host device, and the storage address of all data in the client device can be accessed through the host device.

3. A charging protection system based on Type C data line according to claim 1, characterized in that: The 16 four-bit binary numbers in the shift interaction table are generated by the client device after the user independently completes the initial authentication when the client device and the host device are connected for the first time. After generation, both the client device and the host device save and back them up. The independent initial authentication includes facial recognition and fingerprint recognition.

4. A charging protection system based on Type C data line according to claim 2, characterized in that: In the file transfer mode, the client device is charged through the connected host device and transmits data to the host device.

5. A charging protection system based on Type C data line according to claim 1, characterized in that: The steps to obtain the first, second, third and fourth mapping table sequences are as follows: S11: Obtain 16 four-bit binary numbers and their numbers stored in the shift interaction table, and mark the 16 four-bit binary numbers as A1, A2, ..., A16 in ascending order of the numbers; S12: converting the shift data into binary format data, re-marking the converted data as shift conversion data, and marking all characters constituting the shift conversion data as E1, E2, ..., Ee in sequence from left to right, where e≥1; S13: Construct an interactive mapping table according to a preset first construction rule, the first construction rule is as follows: S131: Use spreadsheet software to create a blank table with 5 columns and 16 rows, and label all cells in the first column as B1, B2, ..., B16 in order from top to bottom and from right to left; Then fill the four-digit binary numbers A1, A2, ..., A16 into cells B1, B2, ..., B16 in sequence; S132: According to the physical position of each cell in the table, all cells in the same row as cell B1 in the table are marked, and according to the order of distance between each cell and cell B1, all cells in the same row as cell B1 in the table are marked as BC1, BC2, BC3, and BC4 in order from near to far; S133: Mark all characters constituting the four-bit binary number A1 as D1, D2, D3 and D4 in order from right to left; S134: Fill the character D1 into the cell BC1 for association mapping, and similarly fill the characters D2, D3, and D4 into the cells BC2, BC3, and BC4 respectively; S135: filling characters in cells B2, B3, ..., B16 in the same row in sequence according to S134; S14: From top to bottom and from right to left, the characters filled in all cells in the second column are concatenated to obtain a first mapping table sequence. Similarly, the characters filled in all cells in the third, fourth and fifth columns are concatenated to obtain a second, third and fourth mapping table sequence respectively.

6. A charging protection system based on Type C data line according to claim 5, characterized in that: The steps to construct an interactive mapping image based on the shifted data are as follows: S151: Using image processing software to create an n*n image data, wherein the pixel values ​​of all pixels in the image data are (255, 255, 255), and n is a preset rated quantity threshold; S152: Select the number of pixels that is consistent with the number of rows from the first, second, ..., g rows in order from top to bottom; select the pixels located in the first column from the first row as the mapping pixels of the first row, marked as F1, select the pixels located in the first and second columns from the second row as the mapping pixels of the second row, marked as F2 and F3, and so on, select the pixels located in the first, second, ..., g columns from the g row as the mapping pixels of the g row, marked as F 1+2+...+g 、F 1+2+...+g+1 , ..., F e ; The value of g is determined by the total number of characters that make up the shift conversion data; S153: Then, according to the order in which each mapping pixel point is selected, the mapping pixel points of all rows are associated with the characters E1, E2, ..., Ee, and the pixel values ​​of the mapping pixel points of all rows are modified to (255, 0, 0).

7. A charging protection system based on Type C data line according to claim 6, characterized in that: The steps of obtaining a plurality of mapping image sequences according to the interactive mapping images based on the shift data are as follows: S161: acquiring the first selected mapping pixel point in the first, second, ..., g rows from the interactive mapping image based on the shift data in order from right to left, and splicing all the mapping pixel points in the order of acquisition to obtain a mapping image sequence; S162: according to S161, the second, third, ..., g selected mapping pixel points located in the first, second, ..., g rows are sequentially obtained from the interactive mapping image based on the shift data, and g-1 mapping image sequences are correspondingly obtained, wherein if there is no selected mapping pixel point at the corresponding position in a row, the mapping pixel point at the corresponding position is not obtained; S17: according to the sequence of splicing of each mapping image sequence, all mapping image sequences are marked as I1, I2, . . . , Ig in sequence.

8. A charging protection system based on Type C data line according to claim 7, characterized in that: The steps to obtain the shift segment sequence of each mapped image sequence are as follows: S181: Mark all characters constituting the mapping image sequence I1 as J1, J2, ..., Jg in sequence from left to right; S182: Determine whether the character J1 is non-zero. If the character J1 is zero, traverse all characters in the first mapping table sequence from left to right, obtain the number of digits of the first character whose value is 0 in the first mapping table sequence, and use the number of digits as the mapping digits of the character J1. Otherwise, obtain the number of digits of the first character whose value is 1 in the first mapping table sequence, and use the number of digits as the mapping digits of the character J1. At this time, the number of bits is recorded as the number of flag bits of the first mapping table sequence; S183: According to S182, the mapping digits of the characters J2, J3, and J4 and the flag digits of the second, third, and fourth mapping table sequences are obtained, wherein the mapping digit of the character J2 is obtained from the second mapping table sequence, the mapping digit of the character J3 is obtained from the third mapping table sequence, and the mapping digit of the character J4 is obtained from the fourth mapping table sequence; S184: In the order of J1, J2, ..., Jg, character J5 is judged to be non-zero. If character J5 is 0, all bits arranged to the right of the flag bit are traversed again from left to right based on the flag bit number of the first mapping table sequence, and the bit number of the first character with a value of 0 is obtained as the mapping bit number of character J5. At this time, the bit number is used as the new flag bit number of the first mapping table sequence; Otherwise, all the bits arranged to the right of the flag bit number of the first mapping table sequence are traversed again from left to right, and the bit number of the first character with a value of 1 is obtained as the mapping bit number of the character J5, and the bit number is used as the flag bit number of the first mapping table sequence; S185: According to S184, the mapping bit numbers of characters J6, J7, and J8 and the new flag bit numbers of the second, third, and fourth mapping table sequences are obtained; S186: according to S181 to S187, the mapping bit numbers of characters J9, J10, ..., Jg are obtained in sequence, and then according to the sequence of characters J1, J2, ..., Jg, the mapping bit numbers of characters J1, J2, ..., Jj are concatenated to obtain the shift segment sequence of the mapping image sequence I1; S187: Calculate and obtain the shift segment sequence of the mapping image sequence I2, I3, ..., Ig in sequence according to S181 to S186.

9. A charging protection system based on Type C data line according to claim 1, characterized in that: It also includes a host device terminal, which is used to receive the shifted data. After receiving the transmitted shifted data, the host device terminal restores and stores the shifted data according to the shift interaction table stored in the host device terminal.

Citation Information

Patent Citations

  • Information steganography and recovery method

    CN110827187A

  • Method, device and system for transmitting data

    CN112306929A

  • Data transmission method based on charging cable and electronic equipment

    CN114297127A

  • Charging protection system based on TypeC data line

    CN115549261A

  • Zero-trust unified identity authentication system and construction method

    CN117749536A