CN116886447B - Encryption transmission method and device for simplified encoding and decoding - Google Patents

Encryption transmission method and device for simplified encoding and decoding Download PDF

Info

Publication number
CN116886447B
CN116886447B CN202311147092.1A CN202311147092A CN116886447B CN 116886447 B CN116886447 B CN 116886447B CN 202311147092 A CN202311147092 A CN 202311147092A CN 116886447 B CN116886447 B CN 116886447B
Authority
CN
China
Prior art keywords
ciphertext
template
code
basic data
determining
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.)
Active
Application number
CN202311147092.1A
Other languages
Chinese (zh)
Other versions
CN116886447A (en
Inventor
靳婷
蔡磊
廉兰平
王永胜
徐冬
史荣斌
王宝宝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CETC 15 Research Institute
Original Assignee
CETC 15 Research Institute
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by CETC 15 Research Institute filed Critical CETC 15 Research Institute
Priority to CN202311147092.1A priority Critical patent/CN116886447B/en
Publication of CN116886447A publication Critical patent/CN116886447A/en
Application granted granted Critical
Publication of CN116886447B publication Critical patent/CN116886447B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The invention provides an encryption transmission method and device for simplifying coding and decoding, wherein the method comprises the following steps: acquiring a plaintext to be transmitted; coding the plaintext to be transmitted by using the configured template data to obtain a corresponding ciphertext; transmitting the ciphertext; after the transmission is completed, decoding the ciphertext by using the configured template data; the template data comprises a ciphertext template, a plurality of basic data tables and a comparison table; the basic data table comprises names arranged according to a preset sequence and corresponding in-table codes; the comparison table generates a corresponding relation with the table type of the basic data table according to the name corresponding to the table internal code, and generates a comparison code according to the serial number of the internal code in the preset sequence of the basic data table; the ciphertext template may be used to characterize the format of the ciphertext. The data after being transmitted and encoded is unidentifiable, so that the data transmission is safer; and the data size is greatly reduced, the transmission is not limited by the transmission bandwidth, and the method is applicable to the transmission requirement of an ultra-narrow band channel.

Description

Encryption transmission method and device for simplified encoding and decoding
Technical Field
The present invention relates to the field of encryption transmission technologies, and in particular, to an encryption transmission method and device for simplifying encoding and decoding.
Background
With the wide use of data information, various industries have diversified information transmission modes, and the demands for safety and miniaturization of data information are increasing. The current data information has the characteristics of plaintext transmission and large data volume, and is not used for the requirements of information safety and ultra-narrow band transmission data.
The existing formatting instruction information has the characteristic that the carried information still has long data, and the carried template information mainly has the information such as plaintext, inner code and the like. The information volume can not exceed the size limit of ultra-narrow band transmission, and can not meet the transmission requirement of ultra-narrow channels.
Disclosure of Invention
The invention aims to solve the technical problems of reducing the data size, hiding the plaintext data and meeting the transmission requirement of an ultra-narrow band channel in the encrypted transmission; in view of the above, the present invention provides an encryption transmission method and device for simplifying encoding and decoding.
The technical scheme adopted by the invention is that the encryption transmission method for simplifying the encoding and decoding comprises the following steps:
step S1, acquiring a plaintext to be transmitted;
s2, coding the plaintext to be transmitted by using the configured template data to obtain a corresponding ciphertext;
step S3, transmitting the ciphertext;
s4, after the transmission is completed, decoding the ciphertext by using the configured template data;
the template data comprises a ciphertext template, a plurality of basic data tables and a comparison table;
the basic data table comprises names arranged according to a preset sequence and corresponding in-table codes;
the comparison table generates a corresponding relation with the table type of the basic data table according to the name corresponding to the table internal code, and generates a comparison code according to the serial number of the internal code in the preset sequence of the basic data table;
the ciphertext template may be used to characterize a format of the ciphertext.
In one embodiment, the encoding the plaintext to be transmitted using the configured template data to obtain a corresponding ciphertext includes:
determining the format of a ciphertext matched with the plaintext to be transmitted in the ciphertext template, and determining the corresponding ciphertext code of the matched ciphertext template as the first field of the ciphertext;
sequentially determining text segments matched with names in the basic data table in the plaintext to be transmitted according to the sequence of the basic data table in the ciphertext template, and obtaining corresponding in-table codes;
determining a comparison code corresponding to the text segment according to the corresponding information of the in-table code of the text segment in the comparison table;
determining the control code as a field of the ciphertext;
and setting separators among the fields of the ciphertext.
In one embodiment, the method further comprises:
and when the in-table code of the text segment does not exist in the comparison table, determining the difference value between the in-table code and the reference value as one field of the ciphertext based on the reference value of the basic data table where the in-table code exists.
In one embodiment, the decoding the ciphertext using the configured template data includes:
removing the separator of the ciphertext;
determining a corresponding ciphertext template according to the first field of the ciphertext;
according to the sequence of each basic data table in the ciphertext template, determining the basic data table corresponding to each field except the first field in the ciphertext;
and inquiring the corresponding plaintext in the basic data table according to the numerical value represented by each field in the ciphertext.
Another aspect of the present invention also provides an encrypted transmission device for simplifying encoding and decoding, including:
an acquisition unit configured to acquire a plaintext to be transmitted;
the coding unit is configured to code the plaintext to be transmitted by using the configured template data so as to obtain a corresponding ciphertext;
a transmission unit configured to transmit the ciphertext;
the decoding unit is configured to decode the ciphertext by using the configured template data after the transmission is completed;
the template data comprises a ciphertext template, a plurality of basic data tables and a comparison table;
the basic data table comprises names arranged according to a preset sequence and corresponding in-table codes;
the comparison table generates a corresponding relation with the table type of the basic data table according to the name corresponding to the table internal code, and generates a comparison code according to the serial number of the internal code in the preset sequence of the basic data table;
the ciphertext template may be used to characterize a format of the ciphertext.
In one embodiment, the encoding unit is further configured to:
determining the format of a ciphertext matched with the plaintext to be transmitted in the ciphertext template, and determining the corresponding ciphertext code of the matched ciphertext template as the first field of the ciphertext;
sequentially determining text segments matched with names in the basic data table in the plaintext to be transmitted according to the sequence of the basic data table in the ciphertext template, and obtaining corresponding in-table codes;
determining a comparison code corresponding to the text segment according to the corresponding information of the in-table code of the text segment in the comparison table;
determining the control code as a field of the ciphertext;
and setting separators among the fields of the ciphertext.
In one embodiment, the encoding unit is further configured to:
and when the in-table code of the text segment does not exist in the comparison table, determining the difference value between the in-table code and the reference value as one field of the ciphertext based on the reference value of the basic data table where the in-table code exists.
In one embodiment, the decoding unit is further configured to:
removing the separator of the ciphertext;
determining a corresponding ciphertext template according to the first field of the ciphertext;
according to the sequence of each basic data table in the ciphertext template, determining the basic data table corresponding to each field except the first field in the ciphertext;
and inquiring the corresponding plaintext in the basic data table according to the numerical value represented by each field in the ciphertext.
Another aspect of the present invention also provides an electronic device including: memory, a processor and a computer program stored on the memory and executable on the processor, which when executed by the processor, performs the steps of the reduced codec encryption transmission method according to any one of the preceding claims.
Another aspect of the present invention also provides a computer storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the reduced codec encryption transmission method as set forth in any one of the above.
Compared with the prior art, the invention has at least the following advantages:
the encryption transmission method for simplifying the encoding and decoding provided by the invention has the advantages that the encoded data is unidentifiable data, and the data transmission is safer; and the data size is greatly reduced, the transmission is not limited by the transmission bandwidth, and the method is applicable to the transmission requirement of an ultra-narrow band channel.
Drawings
Fig. 1 is a flowchart of an encryption transmission method of reduced codec according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an encryption transmission device with reduced encoding and decoding according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of template data according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a comparison of plaintext and ciphertext according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a codec flow according to an embodiment of the present invention;
fig. 6 is a schematic diagram of an electronic device according to an embodiment of the invention.
Detailed Description
In order to further describe the technical means and effects adopted by the present invention for achieving the intended purpose, the following detailed description of the present invention is given with reference to the accompanying drawings and preferred embodiments.
In the drawings, the thickness, size and shape of the object have been slightly exaggerated for convenience of explanation. The figures are merely examples and are not drawn to scale.
It will be further understood that the terms "comprises," "comprising," "includes," "including," "having," "containing," and/or "including," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Furthermore, when a statement such as "at least one of the following" appears after a list of features that are listed, the entire listed feature is modified instead of modifying a separate element in the list. Furthermore, when describing embodiments of the present application, the use of "may" means "one or more embodiments of the present application. Also, the term "exemplary" is intended to refer to an example or illustration.
As used herein, the terms "substantially," "about," and the like are used as terms of a table approximation, not as terms of a table level, and are intended to illustrate inherent deviations in measured or calculated values that would be recognized by one of ordinary skill in the art.
Unless otherwise defined, all 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 application belongs. It will be further 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 unless expressly so defined herein.
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
The steps of the method flow described in the specification and the flow chart shown in the drawings of the specification are not necessarily strictly executed according to step numbers, and the execution order of the steps of the method may be changed. Moreover, some steps may be omitted, multiple steps may be combined into one step to be performed, and/or one step may be decomposed into multiple steps to be performed.
The first embodiment of the present invention, an encryption transmission method for reduced codec according to an embodiment of the present invention, as shown in fig. 1, includes the following specific steps:
step S1, acquiring a plaintext to be transmitted;
s2, coding the plaintext to be transmitted by using the configured template data to obtain a corresponding ciphertext;
s3, transmitting the ciphertext;
and S4, after the transmission is completed, decoding the ciphertext by using the configured template data.
The method provided by the invention will be described in more detail below in connection with fig. 1.
Step S1, obtaining a plaintext to be transmitted.
In this embodiment, the plaintext to be transmitted is usually a text segment in text form, which includes words, letters, symbols, and numerals, which is not limited herein.
And S2, coding the plaintext to be transmitted by using the configured template data to obtain a corresponding ciphertext.
In this embodiment, the template data includes a ciphertext template, a plurality of basic data tables, and a comparison table.
Referring to fig. 3, wherein the basic data table includes names arranged in a preset order and corresponding in-table codes; the comparison table generates a corresponding relation with the table type of the basic data table according to the name corresponding to the table internal code, and generates a comparison code according to the serial number of the internal code in the preset sequence of the basic data table; the ciphertext template may be used to characterize the format of the ciphertext.
Illustratively, the ciphertext template may be "A at B at C D", with corresponding ciphertext encoding. A, B, C, D characterizes the table type of the basic data table, specifically, a is basic data table a, B, C, D, and so on. Further, for example, the a contains names arranged according to a preset sequence, for example, "Zhang san, li Si, wang Wu", in one possible embodiment, the names may be arranged according to the sequence of 1-Zhang san, 2-Li Si, 3-Wang Wu, where the sequence number of the sequence ranking is the comparison code, and each name is configured with a corresponding in-table code.
In order to facilitate the inquiry, the comparison table can be configured with data comparison information of table type, name, comparison code and in-table code forming corresponding relation.
In this embodiment, the encoding process specifically includes:
step S201, determining the format of ciphertext matched with plaintext to be transmitted in a ciphertext template, and determining the corresponding ciphertext code of the matched ciphertext template as the first field of the ciphertext;
step S202, sequentially determining text segments matched with names in a basic data table in a plaintext to be transmitted according to the sequence of the basic data table in the ciphertext template, and obtaining corresponding in-table codes;
step S203, determining a comparison code corresponding to the text segment according to the corresponding information of the in-table code of the text segment in the comparison table;
step S204, determining the comparison code as a field of the ciphertext;
step S205, setting separators among various fields of the ciphertext.
In one possible implementation, when the in-table code of the text segment does not exist in the comparison table, a difference value between the in-table code and the reference value is determined as a field of the ciphertext based on the reference value of the base data table in which the in-table code exists.
Further, the reduced encoding may take the following three ways:
1) The method is suitable for data (incremental data) with regularity, a preset value of basic table data is set, when the data is a default value, the data is empty, the data is directly decoded into the preset value after being received, and when the data value is not empty, the difference value between the data value and the preset value of the data is filled;
2) The data type classification is simplified, such as a time field, a time character string is converted into 4 bytes, fixed time is taken as an anchor point, and the time is converted into integer numbers in seconds.
3) The data comparison method is suitable for data values with unobvious rules, a comparison table is designed, and the corresponding data values are converted into 1-4 bytes (associated values).
And step S3, transmitting the ciphertext.
In this embodiment, the transmission process avoids transmission in a plaintext form, which improves security, and the transmitted ciphertext is subjected to the above-mentioned reduction processing, so that system performance and efficiency can be effectively improved.
And S4, after the transmission is completed, decoding the ciphertext by using the configured template data.
In this embodiment, the decoding process specifically includes:
step S401, removing the separator of the ciphertext;
step S402, determining a corresponding ciphertext template according to the first field of the ciphertext;
step S403, according to the sequence of each basic data table in the ciphertext template, determining the basic data table corresponding to each field except the first field in the ciphertext;
step S404, inquiring the corresponding plaintext in the basic data table according to the numerical value represented by each field in the plaintext.
That is, the reduced data is first decomposed according to the separator, then the corresponding template is searched through the data template table according to the first value, and then the corresponding basic table is searched according to the data item in the template, so that the plaintext information is resolved. The reduced decoding is a reverse operation of reduced encoding, comprising:
1) And when receiving the reduced data, acquiring a preset value through a corresponding basic table, adding the preset value to the reduced data to obtain an internal code value of the basic table, and inquiring a corresponding name through the internal code value to obtain a plaintext name.
2) And (3) reverse data type classification decoding, namely, taking the fixed time as an anchor point for receiving a time field, and converting the obtained integer number into a time format of YYYY-MM-DD hh: MM: ss format.
3) The reverse data comparison method is used for receiving the simplified data, inquiring the real internal code through the table type and the comparison value of the comparison table, and inquiring the name corresponding to the basic data table according to the real internal code, namely the name of the plaintext.
Compared with the prior art, the embodiment has at least the following advantages:
1) The size of transmission data is greatly reduced through simplifying the ciphertext;
2) And a ciphertext transmission mode is adopted, so that plaintext data transmission is avoided, and the safety is improved.
In a second embodiment of the present invention, corresponding to the first embodiment, the present embodiment provides an unstructured text data knowledge extraction device based on a large language model, for implementing the method provided in the first embodiment, as shown in fig. 2, where the device may specifically include:
an acquisition unit configured to acquire a plaintext to be transmitted;
the coding unit is configured to code the plaintext to be transmitted by using the configured template data so as to obtain a corresponding ciphertext;
a transmission unit configured to transmit the ciphertext;
the decoding unit is configured to decode the ciphertext by using the configured template data after the transmission is completed;
the template data comprises a ciphertext template, a plurality of basic data tables and a comparison table;
the basic data table comprises names arranged according to a preset sequence and corresponding in-table codes;
the comparison table generates a corresponding relation with the table type of the basic data table according to the name corresponding to the table internal code, and generates a comparison code according to the serial number of the internal code in the preset sequence of the basic data table;
the ciphertext template may be used to characterize the format of the ciphertext.
In this embodiment, the encoding unit is further configured to:
determining the format of a ciphertext matched with the plaintext to be transmitted in the ciphertext template, and determining the corresponding ciphertext code of the matched ciphertext template as the first field of the ciphertext;
sequentially determining text segments matched with names in the basic data table in the plaintext to be transmitted according to the sequence of the basic data table in the ciphertext template, and obtaining corresponding in-table codes;
determining a comparison code corresponding to the text segment according to the corresponding information of the in-table code of the text segment in the comparison table;
determining the control code as a field of the ciphertext;
and setting separators among the fields of the ciphertext.
In this embodiment, the encoding unit is further configured to:
and when the in-table code of the text segment does not exist in the comparison table, determining the difference value between the in-table code and the reference value as one field of the ciphertext based on the reference value of the basic data table where the in-table code exists.
In this embodiment, the decoding unit is further configured to:
removing the separator of the ciphertext;
determining a corresponding ciphertext template according to the first field of the ciphertext;
according to the sequence of each basic data table in the ciphertext template, determining the basic data table corresponding to each field except the first field in the ciphertext;
and inquiring the corresponding plaintext in the basic data table according to the numerical value represented by each field in the ciphertext.
A third embodiment of the present invention is an application example of the present invention described with reference to fig. 3 to 5 based on the above embodiment.
Step 1, according to plaintext data: the method comprises the steps of coding 'Zhang Sanyu 2023-06-1209:20:01 tea in an office', wherein coding formats are sequentially a template inner code, an A table inner code, a B table inner code, a C table inner code and a D table inner code, the codes are separated by separators, and the inner codes in the coding formats are subjected to simplification processing according to three simplification modes according to table types.
Step 2, the corresponding plaintext content in the lookup template table is "A and B are D in C" and the internal code of the template table and the internal code of 90001 is not found in the comparison table, so the first field is 90001.
And 3, searching for the corresponding plaintext in the A table according to the plaintext data 'Zhang Sanj', wherein the comparison code with the table type A and the inner code of 12321 is not found in the comparison table, searching for the reference value of 12320 after looking up the A table as an incremental table, and obtaining the second field of 1 according to a difference method.
Step 4, checking the B table as a time type table according to the plaintext data 2023-06-1209:20:01, and calculating the time as 14001601 according to the reference time 2023-01-0100:00:00, so the third field is 14001601.
Step 5, looking up the corresponding plaintext in the C table according to the plaintext data "office" as 96445, and finding the comparison code with the table type C and the inner code 96445 as 1 in the comparison table, so the fourth field is 1.
And 6, searching 812315 for the corresponding plaintext in the D table according to the plaintext data 'tea drinking', and finding 1 for the comparison code with the table type D and the inner code 812315 in the comparison table, so that the fifth field is 1.
Step 7, according to the coding rule, the reduced coding content is 90001×1×14001601×1.
In this embodiment, the reduced decoding method includes the following steps:
step 1, the separator is removed according to the reduced code content of 90001 x 1 x 14001601 x 1", and 90001, 1, 14001601, 1 and 1 are obtained respectively.
Step 2, analyzing the first field 90001 to query the database template table for the content "a to B and D at C" to obtain that 1, 14001601, 1 and 1 correspond to table a, table B, table C and table D, respectively.
And 3, analyzing the second field 1, obtaining a corresponding table A according to the step 2, looking up the table A as an incremental table, looking up a reference value of 12320, obtaining a real internal code of 12320+1, namely 121321, and inquiring a name of Zhang three according to the internal code 12321.
And 4, analyzing a third field 14001601, wherein the corresponding table B is obtained according to the step 2, the table B is checked to be a time field, and the calculated time 14001601 is '2023-06-1209:20:01' according to the reference time 2023-01-01:00:00.
And 5, analyzing a fourth field 1, obtaining a corresponding table C according to the step 2, wherein no value with the internal code of 1 is in the table C, inquiring the table type C of the comparison table and the value with the comparison value of 1 as 96445, and inquiring the name of office according to the internal code 96445.
And 6, analyzing a fifth field 1, obtaining a corresponding table D according to the step 2, wherein no value with an internal code of 1 is in the table D, inquiring the table type D of the corresponding table and the value with the reference value of 1 as 812315, and inquiring the name of tea drinking according to the internal code 812315.
And 7, respectively replacing the analyzed contents with the template table contents of 'A and B in C to carry out D', and producing the plain text content of 'Zhang Sanyu 2023-06-1209:20:01 for drinking tea in offices'.
A fourth embodiment of the present invention, as shown in fig. 6, can be understood as a physical device, including a processor and a memory storing instructions executable by the processor, and when the instructions are executed by the processor, performs the following operations:
step S1, acquiring a plaintext to be transmitted;
s2, coding the plaintext to be transmitted by using the configured template data to obtain a corresponding ciphertext;
s3, transmitting the ciphertext;
s4, after the transmission is completed, decoding the ciphertext by using the configured template data;
the template data comprises a ciphertext template, a plurality of basic data tables and a comparison table;
the basic data table comprises names arranged according to a preset sequence and corresponding in-table codes;
the comparison table generates a corresponding relation with the table type of the basic data table according to the name corresponding to the table internal code, and generates a comparison code according to the serial number of the internal code in the preset sequence of the basic data table;
the ciphertext template may be used to characterize the format of the ciphertext.
In the fifth embodiment of the present invention, the procedure of the encryption transmission method of the reduced codec of the present embodiment is the same as that of the first, second or third embodiment, except that in engineering implementation, the present embodiment may be implemented by means of software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the method of the present invention may be embodied in the form of a computer software product stored on a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) comprising instructions for causing an apparatus to perform the method of the embodiments of the present invention.
While the invention has been described in connection with specific embodiments thereof, it is to be understood that these drawings are included in the spirit and scope of the invention, it is not to be limited thereto.

Claims (6)

1. An encrypted transmission method for simplifying coding and decoding, which is characterized by comprising the following steps:
step S1, acquiring a plaintext to be transmitted;
s2, coding the plaintext to be transmitted by using the configured template data to obtain a corresponding ciphertext;
step S3, transmitting the ciphertext;
s4, after the transmission is completed, decoding the ciphertext by using the configured template data;
the template data comprises a ciphertext template, a plurality of basic data tables and a comparison table;
the basic data table comprises names arranged according to a preset sequence and corresponding in-table codes;
the comparison table generates a corresponding relation with the table type of the basic data table according to the name corresponding to the table internal code, and generates a comparison code according to the serial number of the table internal code in the preset sequence of the basic data table;
the ciphertext template is used for representing the format of the ciphertext;
the method for coding the plaintext to be transmitted by using the configured template data to obtain a corresponding ciphertext includes: determining the format of a ciphertext matched with the plaintext to be transmitted in the ciphertext template, and determining the corresponding ciphertext code of the matched ciphertext template as the first field of the ciphertext;
sequentially determining text segments matched with names in the basic data table in the plaintext to be transmitted according to the sequence of the basic data table in the ciphertext template, and obtaining corresponding in-table codes;
determining a comparison code corresponding to the text segment according to the corresponding information of the in-table code of the text segment in the comparison table;
determining the control code as a field of the ciphertext;
setting separators among various fields of the ciphertext;
and decoding the ciphertext by using the configured template data, including:
removing the separator of the ciphertext;
determining a corresponding ciphertext template according to the first field of the ciphertext;
according to the sequence of each basic data table in the ciphertext template, determining the basic data table corresponding to each field except the first field in the ciphertext;
and inquiring the corresponding plaintext in the basic data table according to the numerical value represented by each field in the ciphertext.
2. The reduced codec encryption transmission method of claim 1, further comprising:
and when the in-table code of the text segment does not exist in the comparison table, determining the difference value between the in-table code and the reference value as one field of the ciphertext based on the reference value of the basic data table where the in-table code exists.
3. An encrypted transmission device for reduced codec, comprising:
an acquisition unit configured to acquire a plaintext to be transmitted;
the coding unit is configured to code the plaintext to be transmitted by using the configured template data so as to obtain a corresponding ciphertext;
a transmission unit configured to transmit the ciphertext;
the decoding unit is configured to decode the ciphertext by using the configured template data after the transmission is completed;
the template data comprises a ciphertext template, a plurality of basic data tables and a comparison table;
the basic data table comprises names arranged according to a preset sequence and corresponding in-table codes;
the comparison table generates a corresponding relation with the table type of the basic data table according to the name corresponding to the table internal code, and generates a comparison code according to the serial number of the table internal code in the preset sequence of the basic data table;
the ciphertext template is used for representing the format of the ciphertext;
wherein the encoding unit is further configured to:
determining the format of a ciphertext matched with the plaintext to be transmitted in the ciphertext template, and determining the corresponding ciphertext code of the matched ciphertext template as the first field of the ciphertext;
sequentially determining text segments matched with names in the basic data table in the plaintext to be transmitted according to the sequence of the basic data table in the ciphertext template, and obtaining corresponding in-table codes;
determining a comparison code corresponding to the text segment according to the corresponding information of the in-table code of the text segment in the comparison table;
determining the control code as a field of the ciphertext;
setting separators among various fields of the ciphertext;
and the decoding unit is further configured to:
removing the separator of the ciphertext;
determining a corresponding ciphertext template according to the first field of the ciphertext;
according to the sequence of each basic data table in the ciphertext template, determining the basic data table corresponding to each field except the first field in the ciphertext;
and inquiring the corresponding plaintext in the basic data table according to the numerical value represented by each field in the ciphertext.
4. The reduced codec encrypted transmission device according to claim 3, wherein the encoding unit is further configured to:
and when the in-table code of the text segment does not exist in the comparison table, determining the difference value between the in-table code and the reference value as one field of the ciphertext based on the reference value of the basic data table where the in-table code exists.
5. An electronic device, the electronic device comprising: memory, a processor and a computer program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of a reduced codec encryption transmission method according to any one of claims 1 to 2.
6. A computer storage medium, characterized in that the computer storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of a reduced codec encryption transmission method according to any one of claims 1 to 2.
CN202311147092.1A 2023-09-07 2023-09-07 Encryption transmission method and device for simplified encoding and decoding Active CN116886447B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311147092.1A CN116886447B (en) 2023-09-07 2023-09-07 Encryption transmission method and device for simplified encoding and decoding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311147092.1A CN116886447B (en) 2023-09-07 2023-09-07 Encryption transmission method and device for simplified encoding and decoding

Publications (2)

Publication Number Publication Date
CN116886447A CN116886447A (en) 2023-10-13
CN116886447B true CN116886447B (en) 2024-02-13

Family

ID=88272108

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311147092.1A Active CN116886447B (en) 2023-09-07 2023-09-07 Encryption transmission method and device for simplified encoding and decoding

Country Status (1)

Country Link
CN (1) CN116886447B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112788005A (en) * 2020-12-29 2021-05-11 福建正孚软件有限公司 Software and hardware combined cross-border transmission method and system for improving safety
CN114357520A (en) * 2022-01-11 2022-04-15 平安科技(深圳)有限公司 File generation method and device and file coding information sending method and device
WO2022191770A1 (en) * 2021-03-12 2022-09-15 Agency For Science, Technology And Research Encoding data for homomorphic computation and performing homomorphic computation on encoded data
CN116032509A (en) * 2021-10-27 2023-04-28 中移系统集成有限公司 Mail encryption and decryption method and device
WO2023138379A1 (en) * 2022-01-20 2023-07-27 支付宝(杭州)信息技术有限公司 Joint data query method and apparatus based on privacy protection

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10749665B2 (en) * 2017-06-29 2020-08-18 Microsoft Technology Licensing, Llc High-precision rational number arithmetic in homomorphic encryption

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112788005A (en) * 2020-12-29 2021-05-11 福建正孚软件有限公司 Software and hardware combined cross-border transmission method and system for improving safety
WO2022191770A1 (en) * 2021-03-12 2022-09-15 Agency For Science, Technology And Research Encoding data for homomorphic computation and performing homomorphic computation on encoded data
CN116032509A (en) * 2021-10-27 2023-04-28 中移系统集成有限公司 Mail encryption and decryption method and device
CN114357520A (en) * 2022-01-11 2022-04-15 平安科技(深圳)有限公司 File generation method and device and file coding information sending method and device
WO2023138379A1 (en) * 2022-01-20 2023-07-27 支付宝(杭州)信息技术有限公司 Joint data query method and apparatus based on privacy protection

Also Published As

Publication number Publication date
CN116886447A (en) 2023-10-13

Similar Documents

Publication Publication Date Title
CA2730202C (en) Method for encoding a symbol using subsymbols and multiple codebooks
US6825781B2 (en) Method and system for compressing structured descriptions of documents
US6100824A (en) System and method for data compression
US20070143664A1 (en) A compressed schema representation object and method for metadata processing
WO2008039591A2 (en) A method and apparatus for facilitating efficient processing of extensible markup language documents
AU2002253002A1 (en) Method and system for compressing structured descriptions of documents
JP3865694B2 (en) Path encoding and decoding method in tree structure of structured document
WO2007026258A2 (en) Methods and devices for compressing and decompressing structured documents
JP4168946B2 (en) Document data encoding or decoding method and program thereof
US20070273564A1 (en) Rapidly Queryable Data Compression Format For Xml Files
CN116886447B (en) Encryption transmission method and device for simplified encoding and decoding
CN109241498B (en) XML file processing method, device and storage medium
CN101600023A (en) Short messages of terminals searching method and device thereof
US10515092B2 (en) Structured record compression and retrieval
JP2006519422A (en) How to encode structured documents
US10084477B2 (en) Method and apparatus for adaptive data compression
CN108123721B (en) Encoding method and device
WO2010067897A1 (en) Data compression device, data compression method, data compression program, and compressed data communication system
CN110708074B (en) Compression and decompression method, system and medium for SAM and BAM file CIGAR domain
EP2559232B1 (en) Broadcast metadata compression method and system
CA2544327A1 (en) Method for compressing and decompressing structured documents
KR20200040365A (en) AUTO SCHEDULE REGISRATION BY QR code using compression algorithm for schedule data
CN117668315A (en) http protocol content extraction method and device, electronic equipment and storage medium
CN113836869A (en) Method and device for carrying out unified code conversion on mixed multi-code character text
US20150215432A1 (en) Data compression method and decompression method

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
GR01 Patent grant
GR01 Patent grant