A file resource exchange system and method

By designing file acquisition units and conversion transmission units in the file resource exchange system, using binary conversion and mapping coordinate changes to determine flag bits and feature bits, and generating pre-converted attribute sequences, the difficulty of ordinary users in managing session keys under the encryption protocol is solved, and a secure and simplified file resource exchange process is realized.

CN118449762BActive Publication Date: 2025-05-06淮安市第三人民医院
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410655013.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2025-05-06
Estimated Expiration
2044-05-24

AI Technical Summary

Technical Problem

In the prior art, ordinary users lack the knowledge and skills to manage session keys in the process of using encryption protocols to protect file resource exchange, resulting in an increased risk of losing session keys and poses a security risk.

Method used

A file resource exchange system is designed, including a file acquisition unit and a conversion and transmission unit. By performing binary conversion of file resources, setting the mapping coordinates of characters, and determining the flag bits and feature bits of characters based on the changes in mapping coordinates, finally generating a pre-converted attribute sequence to achieve secure exchange of file resources.

Benefits of technology

It reduces security risks caused by poor key management, simplifies the file resource conversion and exchange process, is suitable for file resource exchange between individual users, and improves security in file sharing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118449762B_ABST
    Figure CN118449762B_ABST
Patent Text Reader

Abstract

The present invention discloses a file resource exchange system and method, and relates to the technical field of file resource security exchange. The present invention acquires pre-exchanged file resources by setting a file acquisition unit, and a conversion and transmission unit sets mapping coordinates for each character in pre-exchanged binary data obtained after binary conversion of the file resources, and then compares the mapping coordinates of two adjacent characters to determine the flag bit and characteristic bit of each character, and determines the final pre-conversion attribute sequence based on the flag bit and characteristic bit of each character, so that the entire file resource conversion process has no participation of other keys, and the generated pre-conversion attribute sequence only depends on the internal structure of the file content itself, rather than the key generated or provided externally, which greatly reduces the security risk caused by poor key management, and also simplifies the entire file resource conversion and exchange process, and is suitable for file resource exchange between individual users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of secure file resource exchange, and in particular to a file resource exchange system and method. Background Art

[0002] With the rapid development of the Internet and information technology, the advent of the big data era has made it impossible for traditional storage and processing methods to meet the growing volume and complexity of data. Collaboration between enterprises, customers, and individuals is becoming more frequent, and file sharing has become a common and urgent need. However, in the process of file sharing, how to ensure data security has become an issue that cannot be ignored;

[0003] Currently, in order to ensure the security of files in resource exchange, a common practice is to use encryption protocols, such as SSL / TLS or SSH, to ensure that files transmitted between senders and receivers are not accessed by unauthorized persons. Although these technologies can provide strong security protection, they usually require users to have the ability to manage session keys. Ordinary users may lack the corresponding knowledge and skills, which may lead to the risk of losing session keys stored in ordinary users' computers, which will increase the security threat when exchanging file resources between individuals.

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

[0005] The purpose of the present invention is to provide a file resource exchange system and method, in order to solve the problem that in the process of protecting file resource exchange using encryption protocol in the prior art, ordinary users often lack the necessary knowledge and skills to properly manage session keys. This situation not only increases the risk of losing session keys, but also may cause security risks when sharing file resources between individuals;

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

[0007] A file resource exchange system comprises a file acquisition unit and a conversion transmission unit;

[0008] After receiving the transmitted pre-exchanged file resource, the conversion transmission unit opens the file resource, reads the content in the file resource to obtain a text string corresponding to the file resource, and performs binary conversion on the text string to obtain pre-exchanged binary data;

[0009] The conversion transmission unit sets the mapping coordinates of the first character constituting the pre-swapped binary data from left to right according to the numerical value of the first character itself, and then determines the mapping coordinates of the second character constituting the pre-swapped binary data according to the mapping coordinates of the first character, and for all the remaining characters constituting the pre-swapped binary data, the mapping coordinates of each character are determined one by one based on the mapping coordinates of the previous character;

[0010] The conversion transmission unit traverses the mapping coordinates of all characters according to the order in which the mapping coordinates of each character are determined, and determines the flag bit and characteristic bit of each character except the first character constituting the pre-exchanged binary data based on the previous character according to the numerical changes of the horizontal and vertical coordinates in the mapping coordinates of each character compared with the horizontal and vertical coordinates in the mapping coordinates of the previous character;

[0011] The conversion transmission unit determines the attribute sequence of each character except the first character constituting the pre-switch binary data according to the flag bit and the characteristic bit of the previous character of each of the remaining characters;

[0012] The conversion transmission unit obtains a pre-conversion attribute sequence according to the mapping coordinates of the first character constituting the pre-exchange base data and the attribute sequence of each character except the first character constituting the pre-exchange base data.

[0013] Furthermore, after the current sender selects the pre-exchanged file resource, the file acquisition unit acquires the pre-exchanged file resource and transmits the pre-exchanged file resource to the conversion and transmission unit.

[0014] Furthermore, it also includes a receiving terminal, which is used for the receiving party to receive and store the pre-exchanged file resources, and the receiving terminal includes a plurality of receiving units.

[0015] A file resource exchange method comprises the following steps:

[0016] Step 1: After the current sender selects a pre-exchanged file resource, the file acquisition unit acquires the pre-exchanged file resource and transmits the pre-exchanged file resource to the conversion and transmission unit;

[0017] Step 2: After receiving the transmitted pre-exchanged file resource, the conversion transmission unit opens the file resource, reads the content in the file resource to obtain a text string corresponding to the file resource, and performs binary conversion on the text string to obtain pre-exchanged binary data;

[0018] Step 3: The conversion transmission unit sets the mapping coordinates of the first character constituting the pre-swapped binary data from left to right according to the numerical value of the first character itself, and then determines the mapping coordinates of the second character constituting the pre-swapped binary data according to the mapping coordinates of the first character, and for all the remaining characters constituting the pre-swapped binary data, the mapping coordinates of each character are determined one by one based on the mapping coordinates of the previous character;

[0019] Step 4: The conversion transmission unit traverses the mapping coordinates of all characters according to the order determined by the mapping coordinates of each character, and determines the flag bit and characteristic bit of each character except the first character constituting the pre-exchanged binary data based on the previous character according to the numerical changes of the horizontal and vertical coordinates in the mapping coordinates of each character compared with the horizontal and vertical coordinates in the mapping coordinates of the previous character;

[0020] Step 5: The conversion transmission unit determines the attribute sequence of each character except the first character constituting the pre-switch binary data according to the flag bit and the characteristic bit of each of the remaining characters based on the previous character;

[0021] Step 6: The conversion transmission unit obtains a pre-conversion attribute sequence according to the mapping coordinates of the first character constituting the pre-exchange base data and the attribute sequence of each character except the first character constituting the pre-exchange base data, and transmits the pre-conversion attribute sequence to the receiving unit;

[0022] Step 7: After receiving the pre-converted attribute sequence, the receiving unit restores it to obtain the pre-exchanged file resource and stores the file resource.

[0023] Beneficial effects of the present invention:

[0024] (1) The present invention sets a file acquisition unit. After the current sender selects the pre-exchanged file resource, the file acquisition unit acquires the pre-exchanged file resource. The conversion and transmission unit sets mapping coordinates for each character in the pre-exchanged binary data obtained after binary conversion of the file resource, and then compares the mapping coordinates of two adjacent characters. The flag bit and feature bit of each character are determined based on the change in the horizontal and vertical coordinates. The final pre-conversion attribute sequence is determined based on the flag bit and feature bit of each character. In this way, the entire file resource conversion process does not involve other keys. The generated pre-conversion attribute sequence only depends on the internal structure of the file content itself, rather than the key generated or provided externally. This greatly reduces the security risks caused by poor key management and simplifies the entire file resource conversion and exchange process. It is suitable for file resource exchange between individual users.

[0025] (2) When determining the mapping coordinates of characters, the mapping coordinates of each character are determined one by one based on the mapping coordinates of the previous character. This method increases the correlation between the various parts in the pre-conversion attribute sequence. Since the flag bit and the characteristic bit are strings composed of 0 and 1, the final generated pre-conversion attribute sequence is closer to the original binary data in form. If a third party attempts to insert binary data converted from executable code into the pre-conversion attribute sequence, then these foreign data will also be converted from the binary data converted from the executable code into other garbled codes due to the viscosity of the various parts within the pre-conversion attribute sequence, which can be easily detected, further ensuring the security of the file sharing process. BRIEF DESCRIPTION OF THE DRAWINGS

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

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

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

[0029] 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.

[0030] like Figure 1 , 2 As shown, a file resource exchange system and method includes a sender module and a receiver terminal;

[0031] A sender module, used for the sender to select and securely transmit file resources. The sender module includes a file acquisition unit and a conversion and transmission unit. In this embodiment, the sender refers to a trusted individual user;

[0032] After the current sender selects the pre-exchanged file resources, the file acquisition unit acquires them, and the file acquisition unit transmits the pre-exchanged file resources to the conversion and transmission unit. The file resources refer to various documents and data that can be stored, accessed, and transmitted;

[0033] After receiving the pre-exchanged file resource to be transmitted, the conversion transmission unit first uses the open() function to open the file resource in text mode, then reads the pre-exchanged file resource content to obtain the text string corresponding to the pre-exchanged file resource, performs binary conversion on the text string corresponding to the pre-exchanged file resource to obtain pre-exchanged binary data, and then performs feature conversion on it according to the preset feature conversion rules. The feature conversion rules are as follows:

[0034] S11: Mark the characters constituting the pre-swap binary data as A1, A2, ..., Aa in sequence from left to right, where a≥1;

[0035] S12: Obtain mapping coordinates B1, B2, ..., Ba of characters A1, A2, ..., Aa in sequence according to a preset coordinate mapping rule. The coordinate mapping rule is as follows:

[0036] S121: Set the horizontal coordinate of the mapping coordinate of the character A1 to 0 and the vertical coordinate to A1, so that the mapping coordinate of the character A1 is B1 (0, A1);

[0037] S122: Determine whether A2 is 1, and set the mapping coordinates of character A2 based on the mapping coordinates of character A1 according to the determination result:

[0038] If the character A2 is 1, then the horizontal coordinate of the character A2 is set to be 1 plus the horizontal coordinate of the character A1 mapping coordinate, that is, the horizontal coordinate of the character A2 mapping coordinate is 0+1, and the vertical coordinate of the character A2 is set to be 1 plus the vertical coordinate of the character A1 mapping coordinate, that is, the vertical coordinate of the character A2 mapping coordinate is A1+1. At this time, the mapping coordinate of the character A2 is B2(1,A1+1), where the character A2 being 1 means that the value of the character A2 is 1;

[0039] If the character A2 is 0, then the horizontal coordinate of the character A2 is set to be 0 plus 0 based on the horizontal coordinate of the character A1 mapping coordinate, that is, the horizontal coordinate of the character A2 mapping coordinate is 0+0, and the vertical coordinate of the character A2 is set to be 1 minus 1 based on the vertical coordinate of the character A1 mapping coordinate, that is, the vertical coordinate of the character A2 mapping coordinate is A1-1. At this time, the mapping coordinate of the character A2 is B2(0,A1-1);

[0040] S123: According to S122, characters A3, A4, ..., Aa are judged to be "1" in turn, and mapping coordinates B3, B4, ..., Ba of characters A3, A4, ..., Aa are set according to the judgment results, wherein the mapping coordinates of character A3 are set based on the mapping coordinates of character A2, the mapping coordinates of character A4 are set based on the mapping coordinates of character A3, ..., the mapping coordinates of character Aa are set based on the mapping coordinates of character Aa-1;

[0041] S13: Traverse the horizontal and vertical coordinates of the mapped coordinates B1 and B2 in sequence. If both the horizontal and vertical coordinates of B2 have changed relative to those of B1, then determine that the flag bit of character A2 based on character A1 is 1. If either the horizontal coordinate of B2 has changed relative to the horizontal coordinate of B1 or the vertical coordinate of B2 has changed relative to the vertical coordinate of B1, and only one of them has changed, then determine that the flag bit of character A2 based on character A1 is 0;

[0042] S14: Based on the fact that the flag bit of character A2 based on character A1 has been determined in step S13, determine the characteristic bits of character A2 based on character A1 for the cases where the flag bit of character A2 based on character A1 is 1 and 0 respectively, as follows:

[0043] S141: For the case where the flag bit of character A2 based on character A1 is 1: If the horizontal coordinate of B2 > the horizontal coordinate of B1, then determine that the characteristic bit of character A2 based on character A1 is 00. If the horizontal coordinate of B2 < the horizontal coordinate of B1, then determine that the characteristic bit of character A2 based on character A1 is 11;

[0044] S142: For the case where the flag bit of character A2 based on character A1 is 0: If the horizontal coordinate of B2 has changed relative to the horizontal coordinate of B1 and the horizontal coordinate of B2 > the horizontal coordinate of B1, then determine that the characteristic bit of character A2 based on character A1 is 00. If the horizontal coordinate of B2 has changed relative to the horizontal coordinate of B1 and the horizontal coordinate of B2 < the horizontal coordinate of B1, then determine that the characteristic bit of character A2 based on character A1 is 01;

[0045] If the vertical coordinate of B2 has changed relative to the vertical coordinate of B1 and the vertical coordinate of B2 > the vertical coordinate of B1, then determine that the characteristic bit of character A2 based on character A1 is 10. If the vertical coordinate of B2 has changed relative to the vertical coordinate of B1 and the vertical coordinate of B2 < the vertical coordinate of B1, then determine that the characteristic bit of character A2 based on character A1 is 11;

[0046] S15: Concatenate the flag bit and characteristic bit of character A2 based on character A1 to obtain the attribute sequence of character A2. The concatenation order is in accordance with the order of the flag bit and characteristic bit, and concatenate the flag bit and characteristic bit from left to right;

[0047] S16: Obtain the attribute sequences of characters A2, A3,..., Aa in sequence according to the steps from S13 to S15. It should be noted that the flag bit and characteristic bit of character A3 are determined based on character A2, the flag bit and characteristic bit of character A4 are determined based on character A3,..., and the flag bit and characteristic bit of character Aa are determined based on character Aa - 1;

[0048] S17: according to the order of the horizontal coordinate and the vertical coordinate of B1, the horizontal coordinate and the vertical coordinate of B1 are concatenated to obtain the attribute sequence of the character A1;

[0049] The conversion transmission unit sequentially concatenates the attribute sequences of characters A1, A2, ..., Aa in the order of A1, A2, ..., Aa to obtain a pre-converted attribute sequence, and transmits it to the receiving terminal;

[0050] A receiving terminal, used for a receiving party to receive the pre-exchanged file. The receiving terminal includes a plurality of receiving party units. One receiving party unit corresponds to one receiving party that receives the pre-exchanged file. In this embodiment, the receiving party refers to a trusted individual user.

[0051] The receiving terminal receives the transmitted pre-converted attribute sequence and transmits it to all receiving units;

[0052] After receiving the transmitted pre-converted attribute sequence, the receiving unit converts the pre-converted attribute sequence into a pre-exchange file according to a preset attribute restoration rule. The attribute restoration rule is as follows:

[0053] S21: From left to right, the first character and the second character are intercepted in sequence, the first character is used as the horizontal coordinate C1 of the starting coordinate, and the second character is used as the vertical coordinate D1 of the starting coordinate to obtain the starting coordinate E1 (C1, D1), and the horizontal and vertical coordinates of the starting coordinate E1 are concatenated to obtain the starting sequence:

[0054] S22: specifying a cutting step length of 3, cutting the remaining pre-conversion attribute sequence after cutting out two characters in order from left to right, with every three characters as a cutting object, obtaining f cutting objects, and marking all cutting objects as F1, F2, ..., Ff from left to right in sequence according to the position of each cutting object in the pre-conversion attribute sequence before cutting, where f=1, 2, ..., a-1;

[0055] S23: in order from left to right, the first character of the cutting object F1 is used as the flag bit G1 of the cutting object F1, and the last two characters are used as the characteristic bit H1 of the cutting object F1;

[0056] S24: determining whether the flag bit G1 of the cutting object F1 is 1: obtaining the restored coordinates of the cutting object F1 based on the determination result and the starting coordinates E1;

[0057] S241: If the flag bit G1 is 1, it means that the horizontal and vertical coordinates of the restored coordinate I1 of the cut object F1 have changed compared with the horizontal and vertical coordinates of the starting coordinate E1. At this time, the feature bit H1 is judged again:

[0058] If H1 is 00, it means that the horizontal and vertical coordinates of the restored coordinates I1 of the cut object F1 are increased by 1 compared with the horizontal and vertical coordinates of the initial coordinates E1. At this time, the restored coordinates I1 of the cut object F1 are (C1+1, D1+1);

[0059] If H1 is 11, it means that the horizontal and vertical coordinates of the restored coordinate I1 of the cut object F1 are reduced by 1 compared with the horizontal and vertical coordinates of the initial coordinate E1. At this time, the restored coordinate I1 of the cut object F1 is (C1-1, D1-1);

[0060] S242: If the flag bit G1 is 0, it means that only one of the horizontal and vertical coordinates of the restored coordinate I1 of the cut object F1 has changed compared with the horizontal and vertical coordinates of the starting coordinate E1. At this time, the feature bit H1 is determined again:

[0061] If H1 is 00, it means that the horizontal coordinate of the cutting object F1 increases by 1 compared with the horizontal coordinate of the starting coordinate E1, and at this time, the restored coordinate of the cutting object F1 is I1(C1+1,D1); if H1 is 01, it means that the horizontal coordinate of the cutting object F1 decreases by 1 compared with the horizontal coordinate of the starting coordinate E1, and at this time, the restored coordinate of the cutting object F1 is I1(C1-1,D1);

[0062] If H1 is 10, it means that the ordinate of the cutting object F1 increases by 1 compared with the ordinate of the starting coordinate E1, and at this time, the restored coordinate of the cutting object F1 is I1(C1, D1+1); if H1 is 11, it means that the ordinate of the cutting object F1 decreases by 1 compared with the ordinate of the starting coordinate E1, and at this time, the restored coordinate of the cutting object F1 is I1(C1, D1-1);

[0063] S25: splicing the horizontal coordinate and the vertical coordinate of the restored coordinate I1 to obtain the restored sequence of the cut object F1;

[0064] S26: according to S22 to S25, the restoration sequence of the cutting objects F1, F2, ..., Ff is obtained in sequence, wherein when performing the restoration sequence of the cutting objects F2, F3, ..., Ff, the calculation of the restoration coordinates of the cutting objects F2, ..., Ff is obtained based on the starting coordinate E1, the restoration coordinates of the cutting object F1, the restoration coordinates of the cutting object F2, ..., the restoration coordinates of the cutting object Ff-1 in sequence;

[0065] The receiving unit sequentially splices the starting sequence, the cutting objects F1, F2, ..., Ff in the order of the restoration sequence of the starting sequence, the cutting objects F1, F2, ..., Ff to obtain pre-exchanged binary data, and restores the pre-exchanged binary data to obtain a pre-exchanged file, and the receiving unit stores the pre-exchanged file;

[0066] 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.

[0067] 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.

[0068] 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 file resource exchange system, characterized in that: It includes a file acquisition unit and a conversion transmission unit; After receiving the transmitted pre-exchanged file resource, the conversion transmission unit opens the file resource, reads the content in the file resource to obtain a text string corresponding to the file resource, and performs binary conversion on the text string to obtain pre-exchanged binary data; The conversion transmission unit sets the mapping coordinates of the first character constituting the pre-swapped binary data from left to right according to the numerical value of the first character itself, and then determines the mapping coordinates of the second character constituting the pre-swapped binary data according to the mapping coordinates of the first character, and for all the remaining characters constituting the pre-swapped binary data, the mapping coordinates of each character are determined one by one based on the mapping coordinates of the previous character; The conversion transmission unit traverses the mapping coordinates of all characters according to the order in which the mapping coordinates of each character are determined, and determines the flag bit and characteristic bit of each character except the first character constituting the pre-exchanged binary data based on the previous character according to the numerical changes of the horizontal and vertical coordinates in the mapping coordinates of each character compared with the horizontal and vertical coordinates in the mapping coordinates of the previous character; The conversion transmission unit determines the attribute sequence of each character except the first character constituting the pre-switch binary data according to the flag bit and the characteristic bit of the previous character of each of the remaining characters; The conversion transmission unit obtains a pre-conversion attribute sequence according to the mapping coordinates of the first character constituting the pre-exchange base data and the attribute sequence of each character except the first character constituting the pre-exchange base data; The steps for determining the mapping coordinates of all characters constituting the pre-swapped binary data from left to right are as follows: S11: Mark the characters constituting the pre-swap binary data as A1, A2, ..., Aa in sequence from left to right, where a≥1; S12: Obtain mapping coordinates B1, B2, ..., Ba of characters A1, A2, ..., Aa in sequence according to a preset coordinate mapping rule. The coordinate mapping rule is as follows: S121: Set the horizontal coordinate of the mapping coordinate of the character A1 to 0 and the vertical coordinate to A1, so that the mapping coordinate of the character A1 is B1 (0, A1); S122: Determine whether A2 is 1, and set the mapping coordinates of character A2 based on the mapping coordinates of character A1 according to the determination result: If the character A2 is 1, then the horizontal coordinate of the character A2 is set to be 1 plus the horizontal coordinate of the character A1 mapping coordinate, that is, the horizontal coordinate of the character A2 mapping coordinate is 0+1, and the vertical coordinate of the character A2 is set to be 1 plus the vertical coordinate of the character A1 mapping coordinate, that is, the vertical coordinate of the character A2 mapping coordinate is A1+1. At this time, the mapping coordinate of the character A2 is B2(1,A1+1); If the character A2 is 0, then the horizontal coordinate of the character A2 is set to be 0 plus 0 based on the horizontal coordinate of the character A1 mapping coordinate, that is, the horizontal coordinate of the character A2 mapping coordinate is 0+0, and the vertical coordinate of the character A2 is set to be 1 minus 1 based on the vertical coordinate of the character A1 mapping coordinate, that is, the vertical coordinate of the character A2 mapping coordinate is A1-1. At this time, the mapping coordinate of the character A2 is B2(0,A1-1); S123: According to S122, determine whether each of the characters A3, A4, ..., Aa is "1" in sequence, and set the mapping coordinates B3, B4, ..., Ba of the characters A3, A4, ..., Aa according to the determination results. Among them, the setting of the mapping coordinates of character A3 is based on the mapping coordinates of character A2, the setting of the mapping coordinates of character A4 is based on the mapping coordinates of character A3, ..., and the setting of the mapping coordinates of character Aa is based on the mapping coordinates of character Aa-1.

2. A file resource exchange system according to claim 1, characterized in that: It further includes a file acquisition unit. After the current sender selects the file resources to be pre-exchanged, the file acquisition unit acquires the pre-exchanged file resources and transmits the pre-exchanged file resources to the conversion and transmission unit.

3. A file resource exchange system according to claim 1, characterized in that: The steps to obtain the pre-conversion attribute sequence are as follows: S13: Traverse the horizontal and vertical coordinates of the mapping coordinates B1 and B2 in sequence. If both the horizontal and vertical coordinates of B2 change relative to the horizontal and vertical coordinates of B1, it is determined that the flag bit of character A2 based on character A1 is 1. If only one of the following two cases occurs: the horizontal coordinate of B2 changes relative to the horizontal coordinate of B1 or the vertical coordinate of B2 changes relative to the vertical coordinate of B1, it is determined that the flag bit of character A2 based on character A1 is 0. S14: Based on the fact that the flag bit of character A2 based on character A1 has been determined in step S13, determine the characteristic bit of character A2 based on character A1 for the cases where the flag bit of character A2 based on character A1 is 1 and 0 respectively. S15: Concatenate the flag bit and characteristic bit of character A2 based on character A1 to obtain the attribute sequence of character A2. The concatenation order is in the order of the flag bit and the characteristic bit, and the flag bit and the characteristic bit are concatenated from left to right. S16: Obtain the attribute sequences of characters A2, A3, ..., Aa in sequence according to the steps from S13 to S15. It should be noted that the flag bit and characteristic bit of character A3 are determined based on character A2, the flag bit and characteristic bit of character A4 are determined based on character A3, ..., and the flag bit and characteristic bit of character Aa are determined based on character Aa-1. S17: Concatenate the horizontal coordinate and vertical coordinate of B1 in the order of the horizontal coordinate and vertical coordinate of B1 to obtain the attribute sequence of character A1. The conversion and transmission unit concatenates the attribute sequences of characters A1, A2, ..., Aa in sequence according to the order of A1, A2, ..., Aa to obtain the pre-conversion attribute sequence.

4. A file resource exchange system according to claim 3, characterized in that: The steps to determine the characteristic bit of character A2 based on character A1 in S14 are as follows: S141: For the case where the flag bit of character A2 based on character A1 is 1: If the horizontal coordinate of B2 > the horizontal coordinate of B1, it is determined that the characteristic bit of character A2 based on character A1 is 00. If the horizontal coordinate of B2 < the horizontal coordinate of B1, it is determined that the characteristic bit of character A2 based on character A1 is 11. S142: For the case where the flag bit of character A2 based on character A1 is 0: If the abscissa of B2 has changed relative to the abscissa of B1, and the abscissa of B2 > the abscissa of B1, then determine that the feature bit of character A2 based on character A1 is 00; if the abscissa of B2 has changed relative to the abscissa of B1, and the abscissa of B2 < the abscissa of B1, then determine that the feature bit of character A2 based on character A1 is 01; If the ordinate of B2 has changed relative to the ordinate of B1, and the ordinate of B2 > the ordinate of B1, then determine that the feature bit of character A2 based on character A1 is 10; if the ordinate of B2 has changed relative to the ordinate of B1, and the ordinate of B2 < the ordinate of B1, then determine that the feature bit of character A2 based on character A1 is 11.

5. A file resource exchange system according to claim 1, characterized in that: It further includes a receiving party terminal for the receiving party to receive and store the pre-exchanged file resources, and the receiving party terminal includes a number of receiving party units.

6. A file resource exchange system according to claim 5, characterized in that: After receiving the transmitted pre-exchanged attribute sequence, the receiving party unit converts the pre-exchanged attribute sequence into the pre-exchanged file resources according to the preset attribute restoration rule, and stores the file resources.

7. A file resource exchange method, characterized in that: It includes the following steps: Step 1: After the current sender selects the pre-exchanged file resources, the file acquisition unit acquires the pre-exchanged file resources and transmits the pre-exchanged file resources to the conversion and transmission unit; Step 2: After receiving the transmitted pre-exchanged file resources, the conversion and transmission unit opens the file resources, reads the content in the file resources to obtain the text string corresponding to the file resources, and performs binary conversion on the text string to obtain the pre-exchanged base data; Step 3: The conversion and transmission unit sets the mapping coordinates of the first character constituting the pre-exchanged base data from left to right according to the value of the character itself, and then determines the mapping coordinates of the second character constituting the pre-exchanged base data according to the mapping coordinates of the character. For all the remaining characters constituting the pre-exchanged base data, the mapping coordinates of each character are determined one by one based on the mapping coordinates of the previous character; The determination steps of the mapping coordinates of all characters constituting the pre-exchanged base data from left to right are as follows: S11: Mark the characters constituting the pre-exchanged base data as A1, A2,..., Aa in sequence according to the rule from left to right, where a≥1; S12: Obtain the mapping coordinates B1, B2,..., Ba of characters A1, A2,..., Aa in sequence according to the preset coordinate mapping rule. The coordinate mapping rule is as follows: S121: Set the abscissa of the mapping coordinates of character A1 to 0 and the ordinate to A1, then at this time, the mapping coordinates of character A1 are B1(0, A1); S122: Determine whether A2 is 1, and set the mapping coordinates of character A2 based on the mapping coordinates of character A1 according to the determination result: If the character A2 is 1, then the horizontal coordinate of the character A2 is set to be 1 plus the horizontal coordinate of the character A1 mapping coordinate, that is, the horizontal coordinate of the character A2 mapping coordinate is 0+1, and the vertical coordinate of the character A2 is set to be 1 plus the vertical coordinate of the character A1 mapping coordinate, that is, the vertical coordinate of the character A2 mapping coordinate is A1+1. At this time, the mapping coordinate of the character A2 is B2(1,A1+1); If the character A2 is 0, then the horizontal coordinate of the character A2 is set to be 0 plus 0 based on the horizontal coordinate of the character A1 mapping coordinate, that is, the horizontal coordinate of the character A2 mapping coordinate is 0+0, and the vertical coordinate of the character A2 is set to be 1 minus 1 based on the vertical coordinate of the character A1 mapping coordinate, that is, the vertical coordinate of the character A2 mapping coordinate is A1-1. At this time, the mapping coordinate of the character A2 is B2(0,A1-1); S123: According to S122, whether the characters A3, A4, ..., Aa are "1" is determined in turn, and mapping coordinates B3, B4, ..., Ba of the characters A3, A4, ..., Aa are set according to the determination results, wherein the mapping coordinates of the character A3 are set based on the mapping coordinates of the character A2, the mapping coordinates of the character A4 are set based on the mapping coordinates of the character A3, ..., the mapping coordinates of the character Aa are set based on the mapping coordinates of the character Aa-1; Step 4: The conversion transmission unit traverses the mapping coordinates of all characters according to the order determined by the mapping coordinates of each character, and determines the flag bit and characteristic bit of each character except the first character constituting the pre-exchanged binary data based on the previous character according to the numerical changes of the horizontal and vertical coordinates in the mapping coordinates of each character compared with the horizontal and vertical coordinates in the mapping coordinates of the previous character; Step 5: The conversion transmission unit determines the attribute sequence of each character except the first character constituting the pre-switch binary data according to the flag bit and the characteristic bit of each of the remaining characters based on the previous character; Step 6: The conversion transmission unit obtains a pre-conversion attribute sequence according to the mapping coordinates of the first character constituting the pre-exchange base data and the attribute sequence of each character except the first character constituting the pre-exchange base data, and transmits the pre-conversion attribute sequence to the receiving unit; Step 7: After receiving the pre-converted attribute sequence, the receiving unit restores it to obtain the pre-exchanged file resource and stores the file resource.

Citation Information

Patent Citations

  • Image compression and recovery algorithm and system

    CN117939149A

  • On-line handwritten character recognizing device

    JP1997231314A