CN113111990A - Data processing method and system for OFD electronic file - Google Patents
Data processing method and system for OFD electronic file Download PDFInfo
- Publication number
- CN113111990A CN113111990A CN202110361689.0A CN202110361689A CN113111990A CN 113111990 A CN113111990 A CN 113111990A CN 202110361689 A CN202110361689 A CN 202110361689A CN 113111990 A CN113111990 A CN 113111990A
- Authority
- CN
- China
- Prior art keywords
- data
- source file
- code data
- byte stream
- stream segment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
- G06K19/06009—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
- G06K19/06037—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6209—Protecting access to data via a platform, e.g. using keys or access control rules to a single file or object, e.g. in a secure envelope, encrypted and accessed using a key, or with access control rules appended to the object itself
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Storage Device Security (AREA)
Abstract
The invention discloses a data processing method and a system of an OFD electronic file, comprising the following steps: acquiring a source file and performing data conversion to acquire binary electronic data corresponding to the source file; performing code division processing on the binary electronic data to acquire first byte stream field code data, and sequentially setting page identifiers; code division processing is carried out on the first byte stream segment code data of each page to obtain a plurality of second byte stream segment code data, and position marks are sequentially arranged; packaging each second byte stream segment code data into two-dimensional code data, and storing each two-dimensional code data in a preset document according to a position identifier and a page identifier to obtain an intermediate conversion document; analyzing each two-dimensional code data in the intermediate conversion document to obtain each second byte stream segment code data; and combining byte stream segment code data according to the position identification and the page number identification in sequence to obtain binary electronic data, and restoring the source file to obtain the source file.
Description
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data processing method and system for an OFD electronic file.
Background
In the information age, data is used as a knowledge asset, the content of the data contains high-value information, and the data needs to be prevented from being illegally acquired and copied and spread by people. Currently, electronic file transmission in a network-free environment is to transmit files via a hardware storage medium. The potential safety hazard is that if the optical disc is lost, the content may be stolen, and the operation is not convenient.
Therefore, a method for processing an electronic file to safely perform data transmission is required.
Disclosure of Invention
The invention provides a data processing method and a data processing system for an OFD electronic file, which aim to solve the problem of how to process the electronic file so as to safely transmit data.
In order to solve the above-mentioned problems, according to an aspect of the present invention, there is provided a data processing method of an OFD electronic file, the method comprising:
analyzing a first request sent by a first user to obtain a source file, and performing data conversion on the source file to obtain binary electronic data corresponding to the source file;
performing code division processing on the binary electronic data according to a first data length threshold value to obtain at least one page of first byte stream segment code data, and sequentially setting page number identification for the first byte stream segment code data of each page;
sequentially carrying out code division processing on the first byte stream segment code data of each page according to a second data length threshold value to obtain a plurality of second byte stream segment code data, and sequentially setting a position identifier for each second byte stream segment code data;
respectively packaging each second byte stream segment code data into corresponding two-dimensional code data based on a preset data packaging rule, storing each two-dimensional code data into a preset document according to a position identifier and a page identifier corresponding to each second byte stream segment code data to obtain an intermediate conversion document, and returning the intermediate conversion document to the first user;
analyzing a second request sent by a second user to obtain the intermediate conversion document, and analyzing each two-dimensional code data in the intermediate conversion document based on a preset data packaging rule to obtain each second byte stream segment code data;
and combining the byte stream segment code data according to the position identifier and the page identifier corresponding to each second byte stream segment code data to obtain binary electronic data corresponding to the source file, restoring the source file according to the obtained binary electronic data corresponding to the source file to obtain the source file, and returning the source file to the second user.
Preferably, wherein the method further comprises:
the method comprises the steps of calculating the maximum two-dimensional code data quantity of each blank page according to the storage space of the blank page of the intermediate conversion document, calculating the size of first byte stream segment code data corresponding to each blank page according to the maximum two-dimensional code data quantity and the size of second byte stream segment code data corresponding to each two-dimensional code data, and determining a first data length threshold according to the size of binary electronic data and the size of the first byte stream segment code data.
Preferably, wherein the method further comprises:
after binary electronic data corresponding to the source file are acquired, encrypting the binary electronic data corresponding to the source file according to a preset encryption strategy according to the first request;
when the source file is encrypted, verifying the accuracy of the password before analyzing each two-dimensional code data in the intermediate conversion document based on a preset data packaging rule, and if the password is correct, analyzing; otherwise, prompting password error information; and when the source file is subjected to encryption processing, before the binary electronic data corresponding to the obtained source file is restored, decrypting the binary electronic data corresponding to the encrypted source file according to the preset encryption strategy to obtain the binary electronic data corresponding to the source file.
Preferably, wherein said binary electronic data comprises: the content of the source file and binary data corresponding to the layout.
According to another aspect of the present invention, there is provided a data processing system of an OFD electronic file, comprising:
the data conversion unit is used for analyzing a first request sent by a first user, acquiring a source file, and performing data conversion on the source file to acquire binary electronic data corresponding to the source file;
the first splitting unit is used for carrying out code division processing on the binary electronic data according to a first data length threshold so as to obtain at least one page of first byte stream segment code data and sequentially setting page number identification for the first byte stream segment code data of each page;
the second splitting unit is used for sequentially carrying out code division processing on the first byte stream segment code data of each page according to a second data length threshold value so as to obtain a plurality of second byte stream segment code data, and sequentially setting a position identifier for each second byte stream segment code data;
the data packaging unit is used for respectively packaging each second byte stream segment code data into corresponding two-dimensional code data based on a preset data packaging rule, storing each two-dimensional code data into a preset document according to a position identifier and a page identifier corresponding to each second byte stream segment code data to obtain an intermediate conversion document, and returning the intermediate conversion document to the first user;
the data analysis unit is used for receiving an intermediate conversion document sent by a second user and analyzing each two-dimensional code data in the intermediate conversion document based on a preset data packaging rule to acquire each second byte stream segment code data;
and the file restoration unit is used for sequentially combining the byte stream segment code data according to the position identifier and the page identifier corresponding to each second byte stream segment code data to obtain binary electronic data corresponding to the source file, restoring the source file according to the obtained binary electronic data corresponding to the source file to obtain the source file, and returning the source file to the second user.
Preferably, wherein the system further comprises:
the first data length threshold determining unit is used for calculating the maximum two-dimensional code data quantity of each blank page according to the storage space of the blank page of the intermediate conversion document, calculating the size of first byte stream segment code data corresponding to each blank page according to the maximum two-dimensional code data quantity and the size of second byte stream segment code data corresponding to each two-dimensional code data, and determining a first data length threshold according to the size of binary system electronic data and the size of the first byte stream segment code data.
Preferably, wherein the system further comprises:
the encryption unit is used for encrypting the binary electronic data corresponding to the source file according to a preset encryption strategy according to the first request after the binary electronic data corresponding to the source file is acquired;
the verification unit is used for verifying the accuracy of the password before analyzing each two-dimensional code data in the intermediate conversion document based on a preset data packaging rule when the source file is encrypted, and analyzing if the password is correct; otherwise, prompting password error information; and
and the decryption unit is used for decrypting the binary electronic data corresponding to the encrypted source file according to the preset encryption strategy to acquire the binary electronic data corresponding to the source file before restoring the source file according to the acquired binary electronic data corresponding to the source file when the source file is subjected to encryption processing.
Preferably, wherein said binary electronic data comprises: the content of the source file and binary data corresponding to the layout.
The invention provides a data processing method and a system of an OFD electronic file, wherein a source file is encrypted firstly under a network-free environment, the source file is packaged and protected in a form of a plurality of bar codes, then an intermediate conversion document with the bar codes is transmitted through a paper or electronic file form, after a user obtains the intermediate conversion document, the source file is obtained through analysis and decryption, in the transmission process, the electronic file content can be restored without being sealed as it is only after the bar codes are decrypted under certain conditions, and if the bar codes are not decrypted, the real content of the file can not be stolen even if the bar codes are seen; compared with the traditional method for transmitting the electronic file by using the optical disk, the method is more convenient and safer.
Drawings
A more complete understanding of exemplary embodiments of the present invention may be had by reference to the following drawings in which:
fig. 1 is a flowchart of a data processing method 100 of an OFD electronic file according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a storage structure of data after code division processing according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an intermediate conversion document according to an embodiment of the present invention;
FIG. 4 is a depiction of an error in generating an intermediate conversion document, according to an embodiment of the present invention;
FIG. 5 is a diagram of saving an intermediate conversion document, according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a data processing system 500 of an OFD electronic file according to an embodiment of the present invention.
Detailed Description
The exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, however, the present invention may be embodied in many different forms and is not limited to the embodiments described herein, which are provided for complete and complete disclosure of the present invention and to fully convey the scope of the present invention to those skilled in the art. The terminology used in the exemplary embodiments illustrated in the accompanying drawings is not intended to be limiting of the invention. In the drawings, the same units/elements are denoted by the same reference numerals.
Unless otherwise defined, terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. Further, it will be understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense.
Fig. 1 is a flowchart of a data processing method 100 of an OFD electronic file according to an embodiment of the present invention. As shown in fig. 1, in the data processing method for an OFD electronic file provided by the present invention, a source file is encrypted first in a network-free environment, and is encapsulated and protected in a form of a plurality of barcodes, and then the intermediate conversion file with barcodes is transmitted through a paper or electronic file form, after a user acquires the intermediate conversion file, the source file is acquired through parsing and decryption, during transmission, the electronic file content can be restored without being encapsulated as it is only after the barcodes are decrypted under certain conditions, and if the barcodes are not decrypted, the actual content of the file cannot be stolen even if the barcodes are seen; compared with the traditional method for transmitting the electronic file by using the optical disk, the method is more convenient and safer. The method 100 for processing data of an OFD electronic file provided by the embodiment of the present invention starts with step 101, parses a first request sent by a first user in step 101, obtains a source file, and performs data transformation on the source file to obtain binary electronic data corresponding to the source file.
Preferably, wherein said binary electronic data comprises: the content of the source file and binary data corresponding to the layout.
In the invention, a first user sends a first request to a server, the server analyzes the first request, acquires the content of the request and a source file to be transmitted, and performs data conversion on the source file to acquire binary electronic data corresponding to the source file. And then different encryption and decryption modes can be adopted to carry out encryption protection on the original binary electronic data according to the requirements of the first user.
In step 102, the binary electronic data is subjected to code division processing according to a first data length threshold so as to obtain at least one page of first byte stream segment code data, and page number identification is set for the first byte stream segment code data of each page in sequence.
Preferably, wherein the method further comprises:
the method comprises the steps of calculating the maximum two-dimensional code data quantity of each blank page according to the storage space of the blank page of the intermediate conversion document, calculating the size of first byte stream segment code data corresponding to each blank page according to the maximum two-dimensional code data quantity and the size of second byte stream segment code data corresponding to each two-dimensional code data, and determining a first data length threshold according to the size of binary electronic data and the size of the first byte stream segment code data.
In the present invention, the first data length threshold is the number of pages of the set intermediate conversion document. The first data length threshold value can be set according to requirements, and can also be determined according to the number of pages automatically calculated by the system. If a blank page has a memory size of 40k-100k, a plurality of pages can be formed when the data is larger than 100 k. And after the size of the storage space of each blank page is determined, dividing the size of each two-dimensional code data to obtain the maximum two-dimensional code data quantity. And then, calculating the size of the first byte stream segment code data corresponding to each blank page according to the product of the maximum two-dimensional code data number and the size of the second byte stream segment code data corresponding to each two-dimensional code data. Then, the size of the binary electronic data corresponding to the source file is divided by the size of the first byte stream segment code data to obtain a first data length threshold, i.e., the number of pages of the intermediate conversion document. If the first data length threshold is not an integer, i.e., not a full page, then rounding up may be performed. For example, if the result of division is 4.2, rounding up determines that the first data length threshold is 5, i.e., the number of pages of the intermediate conversion document is 5 pages.
In step 103, the first byte stream segment code data of each page is sequentially subjected to code division processing according to a second data length threshold value to obtain a plurality of second byte stream segment code data, and a position identifier is sequentially set for each second byte stream segment code data.
In the invention, the byte stream segment code data of each page is subjected to code division again, and a position mark is sequentially set for each second byte stream segment code data. Meanwhile, each byte stream segment code data is associated with the corresponding position identification and page number identification. The page number identification and the position identification are used for indicating the sequence relation between byte stream segment code data; binary electronic data, including: the content of the source file and binary data corresponding to the layout.
In step 104, each second byte stream segment code data is respectively packaged into corresponding two-dimensional code data based on a preset data packaging rule, each two-dimensional code data is stored in a preset document according to a position identifier and a page identifier corresponding to each second byte stream segment code data, so as to obtain an intermediate conversion document, and the intermediate conversion document is returned to the first user.
In the invention, each byte stream segment code data is packaged into corresponding two-dimensional code data based on a preset data packaging rule, then the two-dimensional code data is inserted into a blank page of a preset document according to a position identifier and a page identifier corresponding to each second byte stream segment code data, and after the insertion is finished, an intermediate conversion document can be obtained and returned to a first user. The intermediate conversion document may be in ofd format. After the data encapsulation is completed, the first user can transmit the intermediate conversion document to the second user in a paper or electronic file form. When the intermediate conversion document is transmitted through the paper document, the second user scans the intermediate conversion document into pictures and stores the pictures in the folder, the second user sends the data in the folder to the server through the reduction client, the server can perform the unordered reduction of the two-dimensional code data, and the obtained byte stream segment code data are sequenced according to the page identifier and the position identifier, so that the source file is obtained.
The storage structure of the data after the code division processing of the present invention is shown in fig. 2, wherein the page identifier (i.e., page number), the position identifier (i.e., data position), and the two-dimensional code data correspond to each other one by one.
As shown in fig. 3, each small square represents two-dimensional code data for a schematic diagram of an intermediate conversion document corresponding to a certain file. In addition, if an error occurs when the intermediate conversion document is generated, an error prompt "not a text in this document" is returned as shown in fig. 4. A schematic diagram of saving an intermediate conversion document is shown in fig. 5. The user can customize the name of the intermediate conversion document.
In step 105, a second request sent by a second user is parsed to obtain the intermediate conversion document, and each two-dimensional code data in the intermediate conversion document is parsed based on a preset data packaging rule to obtain each second byte stream segment code data.
In step 106, combining the byte stream segment code data in sequence according to the position identifier and the page identifier corresponding to each second byte stream segment code data to obtain binary electronic data corresponding to the source file, performing restoration of the source file according to the obtained binary electronic data corresponding to the source file to obtain the source file, and returning the source file to the second user.
In the invention, a second user sends a second request to a server according to an intermediate conversion document, the server analyzes the second request to obtain a second document and request content, analyzes each two-dimensional code data in the intermediate conversion document based on a preset data packaging rule to obtain each byte stream segment code data, sequentially combines each byte stream segment code data according to a page identifier and a position identifier corresponding to each obtained byte stream segment code to obtain binary electronic data corresponding to a source file, restores the source file according to the binary electronic data to obtain the source file, and returns the source file to the second user. As shown in fig. 4, a schematic diagram of obtaining a source file is shown, wherein the first user and the second user may be the same user.
Preferably, wherein the method further comprises:
before binary electronic data corresponding to the source file are acquired, encrypting the source file according to the first request and a preset encryption strategy;
when the source file is encrypted, verifying the accuracy of the password before analyzing each two-dimensional code data in the intermediate conversion document based on a preset data packaging rule, and if the password is correct, analyzing; otherwise, prompting password error information; and when the source file is subjected to encryption processing, before the source file is restored according to the binary electronic data, decrypting the binary electronic data corresponding to the encrypted source file according to the preset encryption strategy to obtain the binary electronic data corresponding to the source file.
In the present invention, in order to further ensure the security of data, after the binary electronic data corresponding to the source file is acquired, the binary electronic data corresponding to the source file may be encrypted according to the first request and a preset encryption policy, and then the encrypted binary electronic data may be split. The encryption strategy can be self-defined, and can be a symmetric encryption algorithm or an asymmetric encryption algorithm. For example, the SM4 block cipher algorithm is used. The SM4 block cipher algorithm is a block symmetric cipher algorithm independently designed in China, and is used for realizing encryption/decryption operation of data so as to ensure confidentiality of the data and information. The basic condition for ensuring the security of a symmetric cipher algorithm is that it has a sufficient key length, and the SM4 algorithm has the same key length as the AES algorithm, i.e., a packet length of 128 bits, and thus is higher in security than the 3DES algorithm. The SM4 is a cipher that packetizes plaintext data into fixed-length blocks and encrypts the blocks one by one under the control of the same key, thereby converting each plaintext block into a ciphertext block of the same length. Where the length of the binary plaintext block is referred to as the block size of the block cipher.
When the source file is encrypted, verifying the accuracy of the password before analyzing each two-dimensional code data in the intermediate conversion document based on a preset data packaging rule, and if the password is correct, analyzing; otherwise, prompting the password error information. After password verification passes, each two-dimensional code data in the intermediate conversion document is analyzed based on a preset data packaging rule to acquire each byte segment code data, then the byte segment code data are subjected to data combination according to a page identifier and a position identifier corresponding to each acquired byte segment code data in sequence to acquire binary electronic data corresponding to the encrypted source file, and then the binary electronic data corresponding to the encrypted source file are subjected to decryption processing according to a preset encryption strategy to acquire the binary electronic data corresponding to the source file, and the binary electronic data corresponding to the source file are subjected to reduction of the source file to acquire the source file and return the source file to the second user.
The data processing method of the OFD electronic file comprises the steps of extracting data of the file through data conversion, converting the data into binary electronic data (comprising content and a format), protecting original data by adopting different encryption and decryption modes according to customer requirements, splitting the binary electronic data (comprising the content and the format) of the file into a plurality of byte stream segment code data, determining a page identifier and a position identifier corresponding to each byte stream segment code data, packaging the byte stream segment code data into two-dimensional code data, and storing the two-dimensional code data into an intermediate conversion document to realize packaging; the user analyzes byte stream segment code data corresponding to each two-dimensional code data by analyzing all two-dimensional codes of the document, recombines the byte stream segment code data according to information such as page identification, position identification and the like corresponding to each byte stream segment code data to obtain binary data, decrypts the recombined content by adopting different decryption modes according to the requirements of the client, and restores the original binary electronic data (including content and format) and converts the original binary electronic data to redisplay the content of the source file.
Besides the OFD electronic file, the method of the invention is also suitable for electronic files of other formats such as PDF and DOC.
The invention realizes the transformation of the content of the file by the two-dimension code technology, shows and transmits the file in the two-dimension code mode, re-extracts and assembles the content of the file at a receiver end, can realize the purposes of secrecy, falsification prevention and forgery prevention of the content of the file in the transmission process, and can safely realize the transmission of the electronic file.
Fig. 6 is a schematic structural diagram of a data processing system 600 of an OFD electronic file according to an embodiment of the present invention. As shown in fig. 6, a data processing system 600 for an OFD electronic file according to an embodiment of the present invention includes: the system comprises a data conversion unit 601, a first splitting unit 602, a second splitting unit 603, a data packaging unit 604, a data analysis unit 605 and a file restoration unit 606.
Preferably, the data conversion unit 601 is configured to parse a first request sent by a first user, obtain a source file, and perform data conversion on the source file to obtain binary electronic data corresponding to the source file.
Preferably, wherein said binary electronic data comprises: the content of the source file and binary data corresponding to the layout.
Preferably, the first splitting unit 602 is configured to perform code division processing on the binary electronic data according to a first data length threshold, so as to obtain at least one page of first byte stream segment code data, and sequentially set a page number identifier for each page of the first byte stream segment code data.
Preferably, wherein the system further comprises:
the first data length threshold determining unit is used for calculating the maximum two-dimensional code data quantity of each blank page according to the storage space of the blank page of the intermediate conversion document, calculating the size of first byte stream segment code data corresponding to each blank page according to the maximum two-dimensional code data quantity and the size of second byte stream segment code data corresponding to each two-dimensional code data, and determining a first data length threshold according to the size of binary system electronic data and the size of the first byte stream segment code data.
Preferably, the second splitting unit 603 is configured to sequentially perform code division processing on the first byte stream segment code data of each page according to a second data length threshold, so as to obtain a plurality of second byte stream segment code data, and sequentially set a position identifier for each second byte stream segment code data.
Preferably, the data packaging unit 604 is configured to respectively package each second byte stream segment code data into corresponding two-dimensional code data based on a preset data packaging rule, store each two-dimensional code data in a preset document according to a position identifier and a page identifier corresponding to each second byte stream segment code data, so as to obtain an intermediate conversion document, and return the intermediate conversion document to the first user.
Preferably, the data parsing unit 605 is configured to receive an intermediate conversion document sent by a second user, and parse each two-dimensional code data in the intermediate conversion document based on a preset data encapsulation rule to obtain each second byte stream segment code data.
Preferably, the file restoring unit 606 is configured to sequentially combine byte stream segment code data according to a position identifier and a page identifier corresponding to each acquired second byte stream segment code data to acquire binary electronic data corresponding to the source file, restore the source file according to the acquired binary electronic data corresponding to the source file, acquire the source file, and return the source file to the second user.
Preferably, wherein the system further comprises:
the encryption unit is used for encrypting the binary electronic data corresponding to the source file according to a preset encryption strategy according to the first request after the binary electronic data corresponding to the source file is acquired;
the verification unit is used for verifying the accuracy of the password before analyzing each two-dimensional code data in the intermediate conversion document based on a preset data packaging rule when the source file is encrypted, and analyzing if the password is correct; otherwise, prompting password error information; and
and the decryption unit is used for decrypting the binary electronic data corresponding to the encrypted source file according to the preset encryption strategy to acquire the binary electronic data corresponding to the source file before restoring the source file according to the acquired binary electronic data corresponding to the source file when the source file is subjected to encryption processing.
The data processing system 600 of the OFD electronic file according to the embodiment of the present invention corresponds to the data processing method 100 of the OFD electronic file according to another embodiment of the present invention, and is not described herein again.
The invention has been described with reference to a few embodiments. However, other embodiments of the invention than the one disclosed above are equally possible within the scope of the invention, as would be apparent to a person skilled in the art from the appended patent claims.
Generally, all terms used in the claims are to be interpreted according to their ordinary meaning in the technical field, unless explicitly defined otherwise herein. All references to "a/an/the [ device, component, etc ]" are to be interpreted openly as referring to at least one instance of said device, component, etc., unless explicitly stated otherwise. The steps of any method disclosed herein do not have to be performed in the exact order disclosed, unless explicitly stated.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting the same, and although the present invention is described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications and equivalents may be made to the embodiments of the invention without departing from the spirit and scope of the invention, which is to be covered by the claims.
Claims (8)
1. A data processing method of an OFD electronic file is characterized by comprising the following steps:
analyzing a first request sent by a first user to obtain a source file, and performing data conversion on the source file to obtain binary electronic data corresponding to the source file;
performing code division processing on the binary electronic data according to a first data length threshold value to obtain at least one page of first byte stream segment code data, and sequentially setting page number identification for the first byte stream segment code data of each page;
sequentially carrying out code division processing on the first byte stream segment code data of each page according to a second data length threshold value to obtain a plurality of second byte stream segment code data, and sequentially setting a position identifier for each second byte stream segment code data;
respectively packaging each second byte stream segment code data into corresponding two-dimensional code data based on a preset data packaging rule, storing each two-dimensional code data into a preset document according to a position identifier and a page identifier corresponding to each second byte stream segment code data to obtain an intermediate conversion document, and returning the intermediate conversion document to the first user;
analyzing a second request sent by a second user to obtain the intermediate conversion document, and analyzing each two-dimensional code data in the intermediate conversion document based on a preset data packaging rule to obtain each second byte stream segment code data;
and combining the byte stream segment code data according to the position identifier and the page identifier corresponding to each second byte stream segment code data to obtain binary electronic data corresponding to the source file, restoring the source file according to the obtained binary electronic data corresponding to the source file to obtain the source file, and returning the source file to the second user.
2. The method of claim 1, further comprising:
the method comprises the steps of calculating the maximum two-dimensional code data quantity of each blank page according to the storage space of the blank page of the intermediate conversion document, calculating the size of first byte stream segment code data corresponding to each blank page according to the maximum two-dimensional code data quantity and the size of second byte stream segment code data corresponding to each two-dimensional code data, and determining a first data length threshold according to the size of binary electronic data and the size of the first byte stream segment code data.
3. The method of claim 1, further comprising:
after binary electronic data corresponding to the source file are acquired, encrypting the binary electronic data corresponding to the source file according to a preset encryption strategy according to the first request;
when the source file is encrypted, verifying the accuracy of the password before analyzing each two-dimensional code data in the intermediate conversion document based on a preset data packaging rule, and if the password is correct, analyzing; otherwise, prompting password error information; and when the source file is subjected to encryption processing, before the binary electronic data corresponding to the obtained source file is restored, decrypting the binary electronic data corresponding to the encrypted source file according to the preset encryption strategy to obtain the binary electronic data corresponding to the source file.
4. The method of claim 1, wherein the binary electronic data comprises: the content of the source file and binary data corresponding to the layout.
5. A data processing system for OFD electronic files, said system comprising:
the data conversion unit is used for analyzing a first request sent by a first user, acquiring a source file, and performing data conversion on the source file to acquire binary electronic data corresponding to the source file;
the first splitting unit is used for carrying out code division processing on the binary electronic data according to a first data length threshold so as to obtain at least one page of first byte stream segment code data and sequentially setting page number identification for the first byte stream segment code data of each page;
the second splitting unit is used for sequentially carrying out code division processing on the first byte stream segment code data of each page according to a second data length threshold value so as to obtain a plurality of second byte stream segment code data, and sequentially setting a position identifier for each second byte stream segment code data;
the data packaging unit is used for respectively packaging each second byte stream segment code data into corresponding two-dimensional code data based on a preset data packaging rule, storing each two-dimensional code data into a preset document according to a position identifier and a page identifier corresponding to each second byte stream segment code data to obtain an intermediate conversion document, and returning the intermediate conversion document to the first user;
the data analysis unit is used for receiving an intermediate conversion document sent by a second user and analyzing each two-dimensional code data in the intermediate conversion document based on a preset data packaging rule to acquire each second byte stream segment code data;
and the file restoration unit is used for sequentially combining the byte stream segment code data according to the position identifier and the page identifier corresponding to each second byte stream segment code data to obtain binary electronic data corresponding to the source file, restoring the source file according to the obtained binary electronic data corresponding to the source file to obtain the source file, and returning the source file to the second user.
6. The system of claim 5, further comprising:
the first data length threshold determining unit is used for calculating the maximum two-dimensional code data quantity of each blank page according to the storage space of the blank page of the intermediate conversion document, calculating the size of first byte stream segment code data corresponding to each blank page according to the maximum two-dimensional code data quantity and the size of second byte stream segment code data corresponding to each two-dimensional code data, and determining a first data length threshold according to the size of binary system electronic data and the size of the first byte stream segment code data.
7. The system of claim 5, further comprising:
the encryption unit is used for encrypting the binary electronic data corresponding to the source file according to a preset encryption strategy according to the first request after the binary electronic data corresponding to the source file is acquired;
the verification unit is used for verifying the accuracy of the password before analyzing each two-dimensional code data in the intermediate conversion document based on a preset data packaging rule when the source file is encrypted, and analyzing if the password is correct; otherwise, prompting password error information; and
and the decryption unit is used for decrypting the binary electronic data corresponding to the encrypted source file according to the preset encryption strategy to acquire the binary electronic data corresponding to the source file before restoring the source file according to the acquired binary electronic data corresponding to the source file when the source file is subjected to encryption processing.
8. The system of claim 5, wherein the binary electronic data comprises: the content of the source file and binary data corresponding to the layout.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110361689.0A CN113111990A (en) | 2021-04-02 | 2021-04-02 | Data processing method and system for OFD electronic file |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110361689.0A CN113111990A (en) | 2021-04-02 | 2021-04-02 | Data processing method and system for OFD electronic file |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN113111990A true CN113111990A (en) | 2021-07-13 |
Family
ID=76713562
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110361689.0A Pending CN113111990A (en) | 2021-04-02 | 2021-04-02 | Data processing method and system for OFD electronic file |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113111990A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113870038A (en) * | 2021-09-06 | 2021-12-31 | 上海豹云网络信息服务有限公司 | A data processing method, device, computer equipment and storage medium |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108173963A (en) * | 2018-01-19 | 2018-06-15 | 大唐终端技术有限公司 | A kind of method of the Quick Response Code transmission file of efficient schedulable |
| CN110011993A (en) * | 2019-03-25 | 2019-07-12 | 浩云科技股份有限公司 | A kind of two dimensional code big data safe transmission device based on dynamic multi-level encryption and decryption |
| CN111177763A (en) * | 2020-01-03 | 2020-05-19 | 玉溪市电子政务内网信息技术中心 | Two-dimensional code electronic encryption and decryption management system and method for file multiple encryption |
| CN111209579A (en) * | 2020-01-03 | 2020-05-29 | 玉溪市电子政务内网信息技术中心 | Electronic analysis equipment and method for encrypting confidential files by utilizing two-dimensional code in multiple ways |
| CN111552927A (en) * | 2020-04-24 | 2020-08-18 | 上海亘岩网络科技有限公司 | OFD document digital signature method and system |
| CN111753499A (en) * | 2020-07-07 | 2020-10-09 | 江苏中威科技软件系统有限公司 | Method for merging and displaying electronic form and OFD format file and generating directory |
| CN111753501A (en) * | 2020-07-07 | 2020-10-09 | 江苏中威科技软件系统有限公司 | Method for merging OFD (office file format) files and displaying quick reading |
| CN111767254A (en) * | 2020-07-07 | 2020-10-13 | 江苏中威科技软件系统有限公司 | Multi-file reading device and method based on format data stream file technology |
| TW202103015A (en) * | 2019-07-03 | 2021-01-16 | 網路乾坤有限公司 | Data conversion and transmission system and method including a barcode display step and a decoding and reconstructing step |
-
2021
- 2021-04-02 CN CN202110361689.0A patent/CN113111990A/en active Pending
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108173963A (en) * | 2018-01-19 | 2018-06-15 | 大唐终端技术有限公司 | A kind of method of the Quick Response Code transmission file of efficient schedulable |
| CN110011993A (en) * | 2019-03-25 | 2019-07-12 | 浩云科技股份有限公司 | A kind of two dimensional code big data safe transmission device based on dynamic multi-level encryption and decryption |
| TW202103015A (en) * | 2019-07-03 | 2021-01-16 | 網路乾坤有限公司 | Data conversion and transmission system and method including a barcode display step and a decoding and reconstructing step |
| CN111177763A (en) * | 2020-01-03 | 2020-05-19 | 玉溪市电子政务内网信息技术中心 | Two-dimensional code electronic encryption and decryption management system and method for file multiple encryption |
| CN111209579A (en) * | 2020-01-03 | 2020-05-29 | 玉溪市电子政务内网信息技术中心 | Electronic analysis equipment and method for encrypting confidential files by utilizing two-dimensional code in multiple ways |
| CN111552927A (en) * | 2020-04-24 | 2020-08-18 | 上海亘岩网络科技有限公司 | OFD document digital signature method and system |
| CN111753499A (en) * | 2020-07-07 | 2020-10-09 | 江苏中威科技软件系统有限公司 | Method for merging and displaying electronic form and OFD format file and generating directory |
| CN111753501A (en) * | 2020-07-07 | 2020-10-09 | 江苏中威科技软件系统有限公司 | Method for merging OFD (office file format) files and displaying quick reading |
| CN111767254A (en) * | 2020-07-07 | 2020-10-13 | 江苏中威科技软件系统有限公司 | Multi-file reading device and method based on format data stream file technology |
Non-Patent Citations (1)
| Title |
|---|
| 胡荣磊; 左珮良; 蒋华: "版式文档OFD签章模块的研究与实现", 《信息技术》, no. 2016 * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113870038A (en) * | 2021-09-06 | 2021-12-31 | 上海豹云网络信息服务有限公司 | A data processing method, device, computer equipment and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111709038B (en) | File encryption and decryption method, distributed storage system, device and storage medium | |
| CN109067814B (en) | Media data encryption method, system, device and storage medium | |
| JP4366037B2 (en) | System and method for controlling and exercising access rights to encrypted media | |
| CN100592683C (en) | Protected return path from digital rights management cryptographic decryptor | |
| CN101719205B (en) | Digital copyright management method and system | |
| US8473740B2 (en) | Method and system for secured management of online XML document services through structure-preserving asymmetric encryption | |
| CN110611670A (en) | API request encryption method and device | |
| CN109495459B (en) | Media data encryption method, system, device and storage medium | |
| KR101989813B1 (en) | Generating and verifying the alternative data in a specified format | |
| CN111159757A (en) | File encryption method, file decryption method and corresponding devices | |
| CN111131282B (en) | Request encryption method and device, electronic equipment and storage medium | |
| CN110198320B (en) | Encrypted information transmission method and system | |
| US8737622B2 (en) | Method for importing rights object and rights issuer | |
| CN118349581A (en) | Encryption storage, decryption inquiry method, device and system for biological characteristic data | |
| CN108737353A (en) | A kind of data ciphering method and device based on data analysis system | |
| CN115022042B (en) | A compliance code verification method and computer-readable medium for protecting data privacy | |
| CN119520073A (en) | Data transmission method, device and computer equipment | |
| CN113111990A (en) | Data processing method and system for OFD electronic file | |
| CN113901140A (en) | Industrial control equipment data chaining method based on block chain | |
| CN118965301A (en) | A method for preventing single-chip computer program from being cracked, single-chip computer, and readable storage program | |
| CN105718978A (en) | QR code generation method and apparatus, and decoding method and apparatus | |
| CN113158218A (en) | Data encryption method and device and data decryption method and device | |
| CN115913571B (en) | File encryption, decryption method and device, and digital copyright protection system | |
| JP2001142396A (en) | Encryption device and method, encryption / decryption device and method, and communication system | |
| CN117499041A (en) | Data transmission method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210713 |
|
| RJ01 | Rejection of invention patent application after publication |