Tracing fingerprint information embedding method and device, equipment, program product and storage medium

By modifying the timestamp of the XDR file and embedding the traceability fingerprint information, the problem of difficulty in traceability when the XDR file data is leaked is solved, and the convenience of traceability and the retention of calculation accuracy are achieved.

CN118797589APending Publication Date: 2024-10-18CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410841925.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

When the XDR file data of the existing network is leaked, the traceability work is difficult to carry out because the existing technology cannot effectively embed the traceability fingerprint information, making the traceability difficult.

Method used

By modifying the start timestamp and end timestamp of the XDR file, the traceability fingerprint information is embedded to ensure that the embedded timestamp difference is the same as the original difference, retaining calculation accuracy and facilitating traceability.

Benefits of technology

It realizes the embedding of traceability fingerprint information without losing calculation accuracy, facilitates traceability, and solves the problem of difficulty in traceability when XDR file data is leaked.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118797589A_ABST
    Figure CN118797589A_ABST
Patent Text Reader

Abstract

The invention discloses a traceability fingerprint information embedding method and apparatus, a device, a program product and a storage medium. The method comprises the steps of obtaining a first field and a second field of a first XDR file in at least one to-be-embedded external data representation (XDR) file, preset traceability fingerprint information and coding information of a first traceability system; determining an embedded second field based on a first value in the second field, the traceability fingerprint information and the coding information; the first value represents at least one last numerical value in the second field; and obtaining an embedded first field based on the first field, the second field and the embedded second field, so that a difference value between the first field and the second field is the same as a difference value between the embedded first field and the embedded second field.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of transmission technology, and in particular to a method, device, equipment, program product and storage medium for embedding traceability fingerprint information. Background Art

[0002] In the related technology, External Data Representation (XDR) files are important data files, and XDR file data leakage is a serious security incident. However, due to the huge amount of XDR data in the current network, log files are generally not encrypted. When the sent log files are leaked, tracing the source is difficult. Summary of the invention

[0003] In order to solve the existing technical problems, the embodiments of the present application provide a method, device, equipment, program product and storage medium for embedding traceability fingerprint information.

[0004] To achieve the above purpose, the technical solution of the embodiment of the present application is implemented as follows:

[0005] The present application embodiment provides a method for embedding traceability fingerprint information, characterized in that it is applied to at least one traceability system, and the method includes:

[0006] Obtaining a first field, a second field, preset traceability fingerprint information, and encoding information of a first traceability system of a first XDR file in at least one XDR file to be embedded; the first field represents a start timestamp of the first XDR file; the second field represents an end timestamp of the first XDR file; the first traceability system is any traceability system of the at least one traceability system;

[0007] Determine the embedded second field based on the first value in the second field, the traceability fingerprint information and the encoding information; the first value represents at least one last digit value in the second field;

[0008] The embedded first field is obtained based on the first field, the second field and the embedded second field, so that the difference between the first field and the second field is the same as the difference between the embedded first field and the embedded second field.

[0009] In the above solution, the step of determining the embedded second field based on the first value in the second field, the traceability fingerprint information and the encoding information includes:

[0010] Determine a second value corresponding to the encoding information based on the first value in the second field, the traceability fingerprint information, and the encoding information;

[0011] The first value is embedded according to the second value to obtain the embedded second field.

[0012] In the above solution, the determining the second value corresponding to the coding information based on the first value in the second field, the traceability fingerprint information and the coding information includes:

[0013] The first value is encrypted based on the traceability fingerprint information and the coding information to obtain a second value corresponding to the coding information.

[0014] In the above solution, the encrypting the first value based on the traceability fingerprint information and the coding information to obtain the second value corresponding to the coding information includes:

[0015] Obtain the number of characters corresponding to the traceability fingerprint information;

[0016] Determine multiple field intervals corresponding to the traceability fingerprint information according to the number of characters; the number of values ​​contained in each of the multiple field intervals is the same as the number of characters;

[0017] The first value is encrypted based on the multiple field intervals and the encoding information to obtain the second value.

[0018] In the above solution, determining a first mapping relationship between the first value and the multiple field intervals includes:

[0019] Obtain a first target value corresponding to the target bit of the first value;

[0020] The first mapping relationship is determined based on the first target value.

[0021] In the above scheme, the method further comprises:

[0022] Using the position corresponding to the preset value of the preset number in the first traceability system as the starting position of the first traceability system;

[0023] The encoding information is determined based on the starting position.

[0024] In the above scheme, the method further comprises:

[0025] Determining length information corresponding to the encoding information;

[0026] The length information and the preset number are processed by a preset algorithm to obtain a target number corresponding to the encoding information;

[0027] The first traceability system is encrypted based on the XDR file of the target number, the preset traceability fingerprint information and the coding information to obtain the encrypted first traceability system.

[0028] In the above solution, after obtaining the encrypted first traceability system, the method further includes:

[0029] Obtain the XDR file of the target number;

[0030] Determine the third field and the fourth field of each XDR file of the target number of XDR files; the third field represents the start timestamp of each XDR file; the fourth field represents the end timestamp of each XDR file;

[0031] Obtaining a third value of the fourth field and a second target value corresponding to a target position of the third value; the third value represents at least one last digit value in the fourth field;

[0032] Determine a second mapping relationship between the second target value and a plurality of field intervals;

[0033] The encoding information of the first traceability system is determined according to the second mapping relationship, the third field and the fourth field.

[0034] The present application embodiment provides a device for embedding traceability fingerprint information, which is applied to at least one traceability system, and the device includes:

[0035] an acquisition unit, configured to acquire a first field, a second field, preset traceability fingerprint information, and encoding information of a first traceability system of a first XDR file in at least one XDR file to be embedded; the first field represents a start timestamp of the first XDR file; the second field represents an end timestamp of the first XDR file; the first traceability system is any traceability system of the at least one traceability system;

[0036] a determining unit, configured to determine the embedded second field based on a first value in the second field, the traceability fingerprint information, and the encoding information; the first value represents at least one last digit value in the second field;

[0037] A obtaining unit is used to obtain the embedded first field based on the first field, the second field and the embedded second field, so that the difference between the first field and the second field is the same as the difference between the embedded first field and the embedded second field.

[0038] An embodiment of the present application provides a device for embedding traceability fingerprint information, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the above methods when executing the program.

[0039] An embodiment of the present application provides a computer program product, including a computer program, which implements the steps of any of the above methods when executed by a processor.

[0040] An embodiment of the present application provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above methods are implemented.

[0041] The embodiment of the present application provides a method, apparatus, device, program product and storage medium for embedding traceability fingerprint information, which are applied to at least one traceability system. The method includes: obtaining a first field, a second field, preset traceability fingerprint information and encoding information of a first traceability system of at least one XDR file to be embedded; the first field represents the start timestamp of the first XDR file; the second field represents the end timestamp of the first XDR file; the first traceability system is any traceability system in the at least one traceability system; determining the embedded second field based on the first value in the second field, the traceability fingerprint information and the encoding information; the first value represents at least one last digit value in the second field; obtaining the embedded first field based on the first field, the second field and the embedded second field, so that the difference between the first field and the second field is the same as the difference between the embedded first field and the embedded second field. The scheme of the embodiment of the present application is adopted to complete the embedding of the traceability fingerprint information by modifying the start timestamp and the end timestamp of the XDR file, and retaining the difference between the start timestamp and the end timestamp. The embedding of the traceability fingerprint information is completed without losing the calculation accuracy, which is convenient for tracing. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 A flowchart of a method for embedding traceability fingerprint information provided in an embodiment of the present application;

[0043] Figure 2 A schematic diagram of a device for embedding traceability fingerprint information provided in an embodiment of the present application;

[0044] Figure 3 A schematic diagram of the hardware entity structure of a device for embedding traceable fingerprint information in an embodiment of the present application. DETAILED DESCRIPTION

[0045] The present application is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0046] In the Deep Packet Inspection (DPI) system, the access record log file XDR uses the commonly used file format such as txt. The XDR files in the existing network are important data files. The leakage of XDR file data is a serious security incident. However, due to the huge amount of XDR data in the existing network, log files are generally not encrypted. When a log file leaks, it is difficult to trace the source. Currently, there is no better way to trace the source of XDR files. Some less used methods are to add a field to mark the source after all log records, but this method increases the field attributes of the log file, which requires additional processing during processing. The upper-level system needs to increase the processing flow of the field, and the addition of the log field does not hide the plain text, which is not conducive to tracing the source.

[0047] Based on this, the embodiment of the present application embeds the traceability fingerprint information by modifying the start timestamp and the end timestamp of the XDR file, thereby facilitating traceability.

[0048] The present application embodiment provides a method for embedding traceability fingerprint information. Figure 1 A flowchart of a method for embedding traceability fingerprint information provided in an embodiment of the present application; Figure 1 As shown, applied to at least one traceability system, the method includes:

[0049] Step 101: obtaining a first field, a second field, preset traceability fingerprint information, and encoding information of a first traceability system of a first XDR file in at least one XDR file to be embedded; the first field represents a start timestamp of the first XDR file; the second field represents an end timestamp of the first XDR file; the first traceability system is any traceability system in the at least one traceability system;

[0050] Step 102: Determine the embedded second field based on the first value in the second field, the traceability fingerprint information and the encoding information; the first value represents at least one last digit value in the second field;

[0051] Step 103: Obtain the embedded first field based on the first field, the second field and the embedded second field, so that the difference between the first field and the second field is the same as the difference between the embedded first field and the embedded second field.

[0052] In step 101, the first field is the start timestamp of the first XDR file, which can be recorded as Procedure Start Time in practical applications; the second field is the end timestamp of the first XDR file, which can be recorded as Procedure End Time in practical applications; the time precision of the first field and the second field can be determined according to actual conditions, which is not limited here. As an example, the time precision of the first field and the second field is microseconds. It should be noted that the first XDR file is any one of the at least one XDR file to be embedded, which is not limited here.

[0053] The coding information of the first traceability system can be determined according to the actual situation, and is not limited here. As an example, the coding information of the first traceability system can be recorded as 3321556 or cmcctest. It should be noted that the identification of each traceability system in the at least one traceability system needs to be unified, and the length of the code needs to be consistent. For the sake of easy understanding, an example is given here that each traceability system uses numbers 0-9 for encoding, and the length of the code is 7; or each traceability system uses the character at for encoding, and the length of the code is 7; wherein, the encoding method and the length of the code can be determined according to the actual situation, and are not limited here.

[0054] The preset traceability fingerprint information may use ten characters from 0 to 9, or may use 20 characters in total, wherein the number of characters may be determined according to actual conditions and is not limited here.

[0055] In step 102, the first value represents at least one last digit value in the second field, wherein the last digit value of the second field can be determined according to actual conditions, and is not limited here. As an example, the last digit value of the second field can be the value corresponding to the last three micro-digits in the second field; at least one last digit value in the second field can be determined according to actual conditions, and is not limited here. As an example, the first value is the last two digits of the last three digits in the second field. It should be noted that the traceability fingerprint information can be recorded as W.

[0056] The determining of the embedded second field based on the first value in the second field, the tracing fingerprint information and the coding information can be understood as determining the second value corresponding to the coding information based on the first value in the second field, the tracing fingerprint information and the coding information; and embedding the first value according to the second value to obtain the embedded second field.

[0057] In step 103, the embedded first field is obtained based on the first field, the second field and the embedded second field. It can be understood that the difference between the first field and the second field is determined, and the embedded first field is obtained according to the difference and the embedded field, so that the difference between the first field and the second field is the same as the difference between the embedded first field and the embedded second field. It should be noted that determining the difference between the first field and the second field can be determining the difference between the numerical value of the last three digits of the first field and the numerical value of the last three digits of the second field. For ease of understanding, an example is given here. The last three digits of the first field can be recorded as St, the last three digits of the second field can be recorded as Et, and the last three digits of the embedded second field can be recorded as Et new The last three digits of the first field after embedding can be recorded as St new , at St=123, Et=346, Et new =340, the difference between St and Et is 346-123=223, then St new The code is 117.

[0058] The solution of the embodiment of the present application embeds the traceability fingerprint information by modifying the start timestamp and the end timestamp of the XDR file, thereby facilitating traceability.

[0059] In one embodiment, determining the embedded second field based on the first value in the second field, the traceability fingerprint information, and the encoding information includes:

[0060] Determine a second value corresponding to the encoding information based on the first value in the second field, the traceability fingerprint information, and the encoding information;

[0061] The first value is embedded according to the second value to obtain the embedded second field.

[0062] Among them, determining the second value corresponding to the coding information based on the first value in the second field, the tracing fingerprint information and the coding information can be understood as encrypting the first value based on the tracing fingerprint information and the coding information to obtain the second value corresponding to the coding information.

[0063] The embedding process of the first value according to the second value to obtain the embedded second field can be understood as replacing the first value in the second field with the second value to obtain the embedded second field.

[0064] In one embodiment, determining the second value corresponding to the encoding information based on the first value in the second field, the traceability fingerprint information, and the encoding information includes:

[0065] The first value is encrypted based on the traceability fingerprint information and the coding information to obtain a second value corresponding to the coding information.

[0066] Among them, the encrypting the first value based on the tracing fingerprint information and the coding information to obtain the second value corresponding to the coding information can be understood as obtaining the number of characters corresponding to the tracing fingerprint information; determining multiple field intervals corresponding to the tracing fingerprint information according to the number of characters; the number of values ​​contained in each of the multiple field intervals is the same as the number of characters; and encrypting the first value based on the multiple field intervals and the coding information to obtain the second value.

[0067] In one embodiment, the encrypting the first value based on the traceability fingerprint information and the coding information to obtain a second value corresponding to the coding information includes:

[0068] Obtain the number of characters corresponding to the traceability fingerprint information;

[0069] Determine multiple field intervals corresponding to the traceability fingerprint information according to the number of characters; the number of values ​​contained in each of the multiple field intervals is the same as the number of characters;

[0070] The first value is encrypted based on the multiple field intervals and the encoding information to obtain the second value.

[0071] Among them, the number of characters corresponding to the tracing fingerprint information can be determined according to actual conditions and is not limited here. As an example, when the tracing fingerprint information uses ten characters from 0 to 9, the number of characters corresponding to the tracing information is 10; when the tracing fingerprint information uses at, a total of 20 characters, the number of characters corresponding to the tracing fingerprint information is 20.

[0072] The determining of the multiple field intervals corresponding to the traceability fingerprint information according to the number of characters can be understood as dividing the first preset range according to the number of characters to obtain the multiple field intervals.

[0073] The encoding information includes a first value to be encoded; the first value is encrypted by the multiple field intervals and the encoding information to obtain the second value, which can be understood as determining a first mapping relationship between the first value and the multiple field intervals; determining a target field interval among the multiple field intervals based on the first mapping relationship; and determining the second value corresponding to the first value to be encoded according to the target field interval and the first value to be encoded.

[0074] In one embodiment, determining a plurality of field intervals according to the number of characters includes:

[0075] The first preset range is divided according to the number of characters to obtain the multiple field intervals.

[0076] The first preset range may be determined according to actual conditions and is not limited here. In practical applications, the first preset range may be in the range of [0, 99].

[0077] For ease of understanding, an example is given here. When the number of characters is 10, [0,99] is divided into 10 (100 / 10=10) field intervals, and the field interval is recorded as T, then T1: [0,9], T2: [10,19]...T10: [90,99].

[0078] In one embodiment, the encoding information includes a first value to be encoded; and encrypting the first value based on the multiple field intervals and the encoding information to obtain the second value includes:

[0079] Determine a first mapping relationship between the first value and the plurality of field intervals;

[0080] Determine a target field interval among the multiple field intervals based on the first mapping relationship;

[0081] The second value corresponding to the first value to be encoded is determined according to the target field interval and the first value to be encoded.

[0082] Among them, the first value to be encoded can be any encoding value of the encoding information. In practical applications, in the case of the encoding information 3321556, the first value to be encoded can be any numerical value in the encoding information, for example, it can be 3, and / or 2, and / or 1, etc.

[0083] The first mapping relationship can be determined according to actual conditions and is not limited here. In practical applications, the first mapping relationship can be recorded as h. The first mapping relationship can be in reverse order of h1(Txm)=Wm, h2(Txm)=W(Lm)…; the first mapping relationship can also be h1(Txm)=Wm, which can be exemplified by Tx0=W0, Tx1=W1…TxL=WL.

[0084] The first mapping relationship between multiple field intervals can be understood as the first target value corresponding to the target bit of the first value; the first mapping relationship is determined based on the first target value.

[0085] For ease of understanding, an example is given here. When the coded information is 3321556, the first value to be coded is 3, St=452, and Et=788, the last two digits of Et are 78 (first value), and the first mapping relationship selects h1(Txm)=Wm. Then 78 is in the interval [70,79] (target field interval), and the code corresponding to 3 is 83 (second value). Et new =783.

[0086] In one embodiment, determining a first mapping relationship between the first value and the plurality of field intervals includes:

[0087] Obtain a first target value corresponding to the target bit of the first value;

[0088] The first mapping relationship is determined based on the first target value.

[0089] The target digit of the first value can be determined according to actual conditions, and is not limited here. As an example, the target digit of the first value can be the hundreds digit. The first target value corresponding to the target digit of the first value can be understood as the hundreds digit value of the first value. In actual applications, if the first value is 346, the hundreds digit value is 3.

[0090] The first mapping relationship is determined based on the first target value. It can be understood that the first target values ​​correspond to different mapping functions. In practical applications, the first target value of 0 can correspond to h1, the hundredth digit value of 1 can correspond to h2... the hundredth digit value of 9 can correspond to h10.

[0091] In one embodiment, the method further comprises:

[0092] Using the position corresponding to the preset value of the preset number in the first traceability system as the starting position of the first traceability system;

[0093] The encoding information is determined based on the starting position.

[0094] The position corresponding to the preset value of the preset number can be determined according to actual conditions and is not limited here. In practical applications, the preset value can be 0 and the preset number can be 3, that is, 3 consecutive 0s are specified as the starting position.

[0095] In one embodiment, the method further comprises:

[0096] Determine the length information corresponding to the encoding information;

[0097] The length information and the preset number are processed by a preset algorithm to obtain a target number corresponding to the encoding information;

[0098] The first traceability system is encrypted based on the XDR file of the target number, the preset traceability fingerprint information and the coding information to obtain the encrypted first traceability system.

[0099] Among them, the length can be determined according to actual conditions and is not limited here; the preset number can be determined according to actual conditions and is not limited here.

[0100] The subjecting the length information and the preset number to a preset algorithm may be understood as subjecting the value corresponding to the length information to an addition process with the preset number.

[0101] The XDR file based on the target number, the preset traceability fingerprint information and the coding information are used to encrypt the first traceability system to obtain the encrypted first traceability system. It can be understood that the coding information is encoded by the preset traceability fingerprint information and (coding length + number of tags) consecutive XDR pairs to obtain the encrypted first traceability system.

[0102] In one embodiment, after obtaining the encrypted first traceability system, the method further includes:

[0103] Obtain the XDR file of the target number;

[0104] Determine the third field and the fourth field of each XDR file of the target number of XDR files; the third field represents the start timestamp of each XDR file; the fourth field represents the end timestamp of each XDR file;

[0105] Obtaining a third value of the fourth field and a second target value corresponding to a target position of the third value; the third value represents at least one last digit value in the fourth field;

[0106] Determine a second mapping relationship between the second target value and a plurality of field intervals;

[0107] The encoding information of the first traceability system is determined according to the second mapping relationship, the third field and the fourth field.

[0108] The target number of XDR files can be understood as any (coding length + number of tags) consecutive XDR files. The second target value corresponding to the target position of the third value can be understood as the hundreds place value of the third value.

[0109] Determining the second mapping relationship between the second target value and the plurality of field intervals may be understood as selecting different mapping relationships (ie, h functions) according to the second target value.

[0110] Determining the encoding information of the first traceability system according to the second mapping relationship, the third field and the fourth field can be understood as determining the starting position of the encoding according to the encoding of the h function, and concatenating the remaining encodings in sequence, and the obtained value is the first traceability system encoding.

[0111] For ease of understanding, an example is given here. In practical applications, the method for embedding the traceability fingerprint information can be understood as a solution for embedding the traceability fingerprint information using a timestamp. The principle of the solution is to embed the traceability fingerprint information into a timestamp field to complete encryption.

[0112] The timestamp of the XDR file includes two fields: Procedure Start Time and Procedure End Time, each field uses microsecond precision. For example: Procedure Start Time = 1705048479636522; Procedure End Time = 1705048482715626.

[0113] The traceability fingerprint information is embedded by modifying the last two digits of Procedure End Time. After this field is modified, two purposes need to be achieved at the same time:

[0114] First, it needs to be able to fully embed traceability information.

[0115] Second, in actual applications, the absolute value accuracy requirements of Procedure Start Time and Procedure End Time are relatively low, while the difference between the two requires relatively high accuracy. Therefore, after modification, the original difference must be restored with maximum accuracy.

[0116] Assume: the value of Procedure Start Time is St, the value of Procedure End Time is Et, the value of the last two digits is E, the value of the fingerprint information character is W, the modified value of Procedure End Time is set to Dt, and the value of the last two digits is D; then the encryption is converted to the following problem: F(E,W)->(fingerprint information W is embedded through encryption algorithm F)->D, that is, the values ​​of E and W are passed through the encryption algorithm, and the fingerprint information W is embedded to obtain the value of D, and the values ​​of St, Dt, and D need to be able to restore the two information, tracing the fingerprint character value W and the difference between St and Et. The range of D and E is [0,99], and the range of W can be used as follows: use 1~L, corresponding to L characters respectively, and in order to determine the starting position of the fingerprint information, define 0 to belong to the value range of W, then the range of W is [W0,W1,W2...WL]; at the same time, D also needs to meet the following conditions: according to the value of D, the unique Wx can be determined.

[0117] Divide the range of D [0,99] into n segments, T1, T2...Tn, and the number of values ​​in each segment Tx needs to be equal to the number of characters contained in W. According to certain rules, it can be set that the values ​​in each segment Tx correspond to the value range of W one by one. It can be seen that there are many ways to correspond, and the methods are expressed as: h1, h2...hn; take the simplest design: h1(Txm)=Wm, the value range of m is [0,L], and h1 can be enumerated as: Tx0=W0, Tx1=W1....TxL=WL.

[0118] Single record encryption process:

[0119] 1. Take the last two digits of Procedure End Time, E, and see which interval of segment D Tx E falls in;

[0120] 2. Get the value Txm corresponding to the encrypted character Wm and Tx;

[0121] 3. Txm is used as the last two digits of the changed Procedure End Time. new ;

[0122] 4. Calculate the difference c between source Et and St;

[0123] 5. Change the Procedure Start Time to the new St new , so that Et new With St new The difference is c.

[0124] After the above steps, St new , Et new The absolute difference between the two and the encrypted character Wx are retained to complete the encryption process. This scheme encodes the last two digits of Procedure End Time and adjusts the value of Procedure Start Time at the same time, retains the difference between the two, fine-tunes the absolute value, and completes the encryption process without losing calculation accuracy. Fine-tuning the absolute value of the last two digits of the time (subtle) has almost no effect on the entire record, completing the embedding of the traceability fingerprint information.

[0125] The detailed steps of the program are as follows:

[0126] Steps to embed traceability fingerprint information:

[0127] Step 1: Determine the range of coding elements for W based on the traceability system. For example, use ten characters from 0 to 9, or a, b, c, d, e...r, s, t, a total of 20 characters. Using 10 or 20 is convenient for rounding.

[0128] Step 2: Encode the traceability system, for example: system a:3321556, or cmcctest, etc. In order to unify the identification, the length of the code needs to be consistent. Here, the length of the code is set to BL. At the same time, in order to identify the starting length of the traceability fingerprint, one of the elements in W is not encoded, such as 0 to 9, 0 is taken as the starting mark element, etc.

[0129] Step 3: According to the number of elements encoded by W, divide the range of D [0,99] into 100 / (number of W) intervals T1, T2...Tn.

[0130] Step 4: Determine the corresponding function hx of Tx and W coding elements. This step is explained by taking the simplest h1(Txm)=Wm as an example: h1 can be enumerated as: Tx0=W0, Tx1=W1....TxL=WL; taking 0~9 as an example, the corresponding relationship is:

[0131] T1: [0,9] distribution corresponds to the encoding value [0,9];

[0132] T2: [10,19] distribution also corresponds to the encoding value [0,9]; ...

[0134] T10:[90,99] distribution also corresponds to the encoding value [0,9].

[0135] If we take 20 characters a, b, c, d, e...r, s, t as an example:

[0136] T1: [0,19] corresponds to the encoding value [a,b,c...r,s,t]; ...

[0138] T5: [80,99] corresponds to the encoding value [a,b,c...r,s,t].

[0139] Step 5: Encrypt the code of the traceability system into XDR. Take system a:3321556 as an example. Before encoding, the start mark needs to be encoded. In this example, the 0 element is the start mark element, so it can be specified that n consecutive 0s are the starting position. Here, n=3 is set. The following example randomly sets the last three microseconds of Procedure Start Time and Procedure End Time for encoding:

[0140] For example, {St=123,Et=346}, the encoding steps of 0 are: the last two digits of 346 are 46, and in the interval [40,49], the encoding of 0 is 40, so Et new=340, and the original difference between the two is 346-123=223, then the code of Stnew is 117, so the new code is {St=117, Et=340}. The absolute value of the time is shifted forward by 6 microseconds, which has no effect on the entire data calculation.

[0141] By analogy, for example, the encoding process of 3 is:

[0142] After random setting, the last three microseconds of the time are {St=452, Et=788}, so after 3 encoding, they are {St=447, Et=783}.

[0143] It can be seen that if a function corresponding to Tx and W is used, the last bit of Et will be repeated, so the regular coding will be easy to detect.

[0144] In order to solve this problem, it is necessary to expand the number of functions h corresponding to Tx and W, and for this purpose, the coding improvement step 6 is introduced.

[0145] Step 6: h coding improvement step. Tx and W correspond to function h, and are expanded, such as h1(Txm) = Wm, h2 is h2(Txm) = W(Lm), that is, the reverse order corresponds, and the hundreds digit of Et is used for the hundreds digit, that is, the hundreds digit values ​​0-9 correspond to h1 and h10 respectively, so that when encoding, the value of Et will appear randomly.

[0146] Step 7: Apply the above encoding steps to all XDR records, and then perform a group of encodings for each (encoding length + number of tags) consecutive XDRs, which completely contains the traceability system information.

[0147] Steps for extracting traceability fingerprint information:

[0148] Step 8: Select any (code length + number of tags) consecutive XDRs.

[0149] Step 9: Select different functions h1 and h10 according to the data of the hundreds value of Et.

[0150] Step 10: Determine the encoding start position according to the encoding of the h function.

[0151] Step 11: Concatenate the remaining codes in sequence, and the resulting value is the traceability system code.

[0152] The present application also provides a device for embedding traceability fingerprint information. Figure 2 A schematic diagram of a device for embedding traceability fingerprint information provided in an embodiment of the present application; Figure 2 As shown, the device 200 is applied to at least one traceability system and includes:

[0153] The acquisition unit 201 is used to acquire a first field, a second field, preset traceability fingerprint information, and encoding information of a first traceability system of a first XDR file in at least one XDR file to be embedded; the first field represents a start timestamp of the first XDR file; the second field represents an end timestamp of the first XDR file; the first traceability system is any traceability system of the at least one traceability system;

[0154] A determining unit 202 is configured to determine the embedded second field based on a first value in the second field, the traceability fingerprint information, and the encoding information; the first value represents at least one last digit value in the second field;

[0155] The obtaining unit 203 is used to obtain the embedded first field based on the first field, the second field and the embedded second field, so that the difference between the first field and the second field is the same as the difference between the embedded first field and the embedded second field.

[0156] In one embodiment, the determination unit 202 is further used to determine a second value corresponding to the coding information based on the first value in the second field, the traceability fingerprint information and the coding information; and embed the first value according to the second value to obtain the embedded second field.

[0157] In one embodiment, the determining unit 202 is further configured to encrypt the first value based on the traceability fingerprint information and the encoding information to obtain a second value corresponding to the encoding information.

[0158] In one embodiment, the determination unit 202 is further used to obtain the number of characters corresponding to the traceability fingerprint information; determine multiple field intervals corresponding to the traceability fingerprint information according to the number of characters; the number of values ​​contained in each field interval in the multiple field intervals is the same as the number of characters; and encrypt the first value based on the multiple field intervals and the encoding information to obtain the second value.

[0159] In one embodiment, the determining unit 202 is further configured to divide the first preset range according to the number of characters to obtain the multiple field intervals.

[0160] In one embodiment, the encoding information includes a first value to be encoded; the determination unit 202 is also used to determine a first mapping relationship between the first value and the multiple field intervals; determine a target field interval among the multiple field intervals based on the first mapping relationship; and determine the second value corresponding to the first value to be encoded according to the target field interval and the first value to be encoded.

[0161] In one embodiment, the determining unit 202 is further configured to obtain a first target value corresponding to a target bit of the first value; and determine the first mapping relationship based on the first target value.

[0162] In one embodiment, the device 200 also includes a unit for taking a position corresponding to a preset value of a preset number in the first traceability system as a starting position of the first traceability system; and determining the coding information based on the starting position.

[0163] In one embodiment, the device 200 also includes an encryption processing unit, which is used to determine the length information corresponding to the encoding information; process the length information and the preset number by a preset algorithm to obtain the target number corresponding to the encoding information; encrypt the first traceability system based on the XDR file of the target number, the preset traceability fingerprint information and the encoding information to obtain the encrypted first traceability system.

[0164] In one embodiment, after obtaining the encrypted first traceability system, the determination unit 202 is further used to obtain the target number of XDR files; determine the third field and the fourth field of each XDR file in the target number of XDR files; the third field represents the start timestamp of each XDR file; the fourth field represents the end timestamp of each XDR file; obtain the third value of the fourth field and the second target value corresponding to the target bit of the third value; the third value represents at least one last digit value in the fourth field; determine a second mapping relationship between the second target value and multiple field intervals; and determine the encoding information of the first traceability system according to the second mapping relationship, the third field, and the fourth field.

[0165] It should be noted that: the embedding device for tracing fingerprint information provided in the above embodiment only uses the division of the above program modules as an example when embedding the tracing fingerprint information. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the embedding device for tracing fingerprint information provided in the above embodiment and the embedding method embodiment of tracing fingerprint information belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0166] Based on the hardware implementation of the above program module, an embodiment of the present application also provides a device for embedding traceability fingerprint information, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, the steps in the method for embedding traceability fingerprint information provided in the above embodiment are implemented.

[0167] Correspondingly, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the method for embedding traceability fingerprint information provided in the above embodiment are implemented.

[0168] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0169] It should be noted that Figure 3 Schematic diagram of a hardware entity structure of a device for embedding traceable fingerprint information in an embodiment of the present application; Figure 3 As shown, the hardware entity of the device 300 includes: a processor 301 and a memory 303 . Optionally, the electronic device 300 may also include a communication interface 302 .

[0170] It can be understood that the memory 303 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memory 303 described in the embodiments of the present application is intended to include but is not limited to these and any other suitable types of memories.

[0171] The method disclosed in the above embodiment of the present application can be applied to the processor 301, or implemented by the processor 301. The processor 301 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 301. The above processor 301 may be a general processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 301 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general processor can be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 303, and the processor 301 reads the information in the memory 303 and completes the steps of the above method in combination with its hardware.

[0172] In an exemplary embodiment, the device may be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), field programmable gate array (FPGA), general processor, controller, microcontroller (MCU), microprocessor, or other electronic components to execute the aforementioned method.

[0173] Illustratively, an embodiment of the present application further provides a computer program product, including a computer program; the computer program can be executed by the processor 301 of the electronic device 300 to complete the steps of any of the aforementioned methods.

[0174] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.

[0175] It should be noted that, in this application, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0176] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0177] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0178] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0179] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for embedding traceability fingerprint information, characterized in that: Applied to at least one traceability system, the method comprises: Obtaining a first field, a second field, preset traceability fingerprint information, and encoding information of a first traceability system of a first XDR file in at least one external data representation XDR file to be embedded; the first field represents a start timestamp of the first XDR file; the second field represents an end timestamp of the first XDR file; the first traceability system is any traceability system of the at least one traceability system; Determine the embedded second field based on the first value in the second field, the traceability fingerprint information and the encoding information; the first value represents at least one last digit value in the second field; The embedded first field is obtained based on the first field, the second field and the embedded second field, so that the difference between the first field and the second field is the same as the difference between the embedded first field and the embedded second field.

2. The method according to claim 1, characterized in that The determining the embedded second field based on the first value in the second field, the traceability fingerprint information, and the encoding information includes: Determine a second value corresponding to the encoding information based on the first value in the second field, the traceability fingerprint information, and the encoding information; The first value is embedded according to the second value to obtain the embedded second field.

3. The method according to claim 2, characterized in that The determining, based on the first value in the second field, the traceability fingerprint information, and the encoding information, a second value corresponding to the encoding information includes: The first value is encrypted based on the traceability fingerprint information and the coding information to obtain a second value corresponding to the coding information.

4. The method according to claim 3, characterized in that The encrypting the first value based on the traceability fingerprint information and the coding information to obtain a second value corresponding to the coding information includes: Obtain the number of characters corresponding to the traceability fingerprint information; Determine multiple field intervals corresponding to the traceability fingerprint information according to the number of characters; the number of values ​​contained in each of the multiple field intervals is the same as the number of characters; The first value is encrypted based on the multiple field intervals and the encoding information to obtain the second value.

5. The method according to claim 4, characterized in that The determining of a plurality of field intervals according to the number of characters comprises: The first preset range is divided according to the number of characters to obtain the multiple field intervals.

6. The method according to claim 4, characterized in that The encoding information includes a first value to be encoded; and encrypting the first value based on the multiple field intervals and the encoding information to obtain the second value includes: Determine a first mapping relationship between the first value and the plurality of field intervals; Determine a target field interval among the multiple field intervals based on the first mapping relationship; The second value corresponding to the first value to be encoded is determined according to the target field interval and the first value to be encoded.

7. The method according to claim 6, characterized in that The determining a first mapping relationship between the first value and the plurality of field intervals includes: Obtain a first target value corresponding to the target bit of the first value; The first mapping relationship is determined based on the first target value.

8. The method according to claim 1, characterized in that The method further comprises: Using the position corresponding to the preset value of the preset number in the first traceability system as the starting position of the first traceability system; The encoding information is determined based on the starting position.

9. The method according to claim 8, characterized in that The method further comprises: Determine the length information corresponding to the encoding information; The length information and the preset number are processed by a preset algorithm to obtain a target number corresponding to the encoding information; The first traceability system is encrypted based on the XDR file of the target number, the preset traceability fingerprint information and the coding information to obtain the encrypted first traceability system.

10. The method according to claim 9, characterized in that After obtaining the encrypted first traceability system, the method further includes: Obtain the XDR file of the target number; Determine the third field and the fourth field of each XDR file of the target number of XDR files; the third field represents the start timestamp of each XDR file; the fourth field represents the end timestamp of each XDR file; Obtaining a third value of the fourth field and a second target value corresponding to a target position of the third value; the third value represents at least one last digit value in the fourth field; Determine a second mapping relationship between the second target value and a plurality of field intervals; The encoding information of the first traceability system is determined according to the second mapping relationship, the third field and the fourth field.

11. A device for embedding traceability fingerprint information, characterized in that: Applied to at least one traceability system, the device comprises: an acquisition unit, configured to acquire a first field, a second field, preset traceability fingerprint information, and encoding information of a first traceability system of a first XDR file in at least one XDR file to be embedded; the first field represents a start timestamp of the first XDR file; the second field represents an end timestamp of the first XDR file; the first traceability system is any traceability system of the at least one traceability system; a determining unit, configured to determine the embedded second field based on a first value in the second field, the traceability fingerprint information, and the encoding information; the first value represents at least one last digit value in the second field; A obtaining unit is used to obtain the embedded first field based on the first field, the second field and the embedded second field, so that the difference between the first field and the second field is the same as the difference between the embedded first field and the embedded second field.

12. A device for embedding traceability fingerprint information, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method according to any one of claims 1 to 10 are implemented.

13. A computer program product, comprising a computer program, characterized in that The computer program implements the steps of the method according to any one of claims 1 to 10 when executed by a processor.

14. A storage medium having a computer program stored thereon, characterized in that: The computer program implements the steps of the method according to any one of claims 1 to 10 when executed by a processor.