Method for establishing an inviolable link between a digital file and variable data
The method of inserting a data block identifier and cryptographic fingerprint in digital files linked to a remote server registry addresses the challenge of linking digital files to variable data across systems, ensuring integrity and authenticity, akin to paper documents, by breaking the link on file modification and controlling access.
Patent Information
- Application Number
- US19/156619
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Priority Date
- 2023-02-15
- Filing Date
- 2024-02-06
- Publication Date
- 2026-11-26
AI Technical Summary
Existing technologies lack a reliable method to irrevocably link digital files to variable data across different systems and ensure the integrity and authenticity of digital files, especially when they are distributed or stored on various networks and media, failing to provide a probative force comparable to paper documents.
A method involving the insertion of a data block identifier in a digital file linked to a remote server registry, calculating a cryptographic fingerprint on the file content, and transmitting this fingerprint to the server, ensuring that any modification breaks the link and only authorized entities can modify the data block, maintaining integrity across copies.
Ensures the integrity and authenticity of digital files by linking them irreversibly to variable data, allowing secure access and modification control, even when files are copied or distributed, and providing a reliable digital equivalent to paper documents.
Smart Images

Figure US20260377577A1-D00000_ABST
Abstract
Description
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application is a 371 National Stage of International Application No. PCT / IB2024 / 051075, filed Feb. 6, 2024, which claims priority to French Patent Application No. FR2301413, filed Feb. 15, 2023, the disclosures of which are herein incorporated by reference in their entirety.TECHNICAL FIELD
[0002] The present disclosure generally relates to file systems and methods for ensuring the integrity and authenticity of digital files, whether they are distributed over a network or stored on a storage medium.DEFINITIONS
[0003] In the present description, the following terms and expressions should be understood as follows.
[0004] “Digital file” designates any digital file or document or any part of such a file or document, which can be manipulated separately in any file management system.
[0005] “Metadata” designates data relating to other data. Metadata may appear in the same file as the other data, or at a different location. Metadata may contain one or more pieces of information relating to the other data, including information specifying in particular the location, structure and / or nature of this other data.
[0006] “Digital fingerprint” of a digital file designates data produced by a function for guaranteeing the integrity of the file content, such that if one byte of the file is modified, the digital fingerprint will be modified. Furthermore, the probability that two different files have the same fingerprint is very low. This function may be non-reversible such as, in particular, a cryptographic hash function applied to all or part of the file content. A digital fingerprint is sometimes called a checksum, fingerprint, hash, message digest, digest, condensate or even cryptographic fingerprint. The fingerprint calculation function may combine a hash function and a digital signature function applied to the result of the hash function.
[0007] “Digital signature” designates a digital fingerprint processed by a digital signature algorithm using a private key of a public / private key pair and an asymmetric cryptographic program, such as DSA (Digital Signature Algorithm) or ECDSA (Elliptic Curve DSA). A digital signature makes it possible to guarantee the authenticity of proof of integrity of a file and to identify and authenticate the signatory, by analogy with the handwritten signature of a paper document.
[0008] “Controlled insertion” designates insertion of any data into a file, at a location that the user can choose as freely as permitted by the type of file concerned. However, this does not exclude that the choice of this location may be carried out by a program, or be standardized.
[0009] “Non-destructive insertion” designates insertion of any data into a digital file, carried out without affecting the properties of the file, that is to say without affecting in particular its opening, display or printing, and its execution if the file contains program instructions, by the same tools as before this insertion.
[0010] “Registry” designates a device providing a presumption of a precise sequential chronological order of state modifications of an object. A registry may be operated by a trusted third party, whether or not certified or approved. The data stored in such a registry may be more or less verifiable and / or publicly accessible. In the case where the registry is accessible in dematerialized form, for example via the internet, it may be made accessible by queries offering different services, such as query, writing and authentication services. A registry may dispense with a trusted third party by relying on a blockchain-type solution, public or private, whether or not allowing the execution of smart contracts and / or data storage.BACKGROUND
[0011] In the context of the widespread use of digital files, it is desirable to be able to replace printed or handwritten documents with digital files offering similar guarantees in terms of probative force. For example, it is desirable that such files can be used as evidence in the context of transactions relating in particular to material values or contractual relationships.
[0012] U.S. Pat. No. 10,218,714 describes a method for determining whether all or part of a digital file has been modified, through the insertion into the file of a fingerprint calculated from all the data forming the file content which may include metadata, excluding a zone where the fingerprint is inserted. Thus, if the file content is modified, the fingerprint calculated on the modified file content is different from the fingerprint inserted in the file. If the fingerprint is replaced by a signature relating to the fingerprint, or if the file contains a fingerprint and a signature of this fingerprint, and if the public key of the expected signatory appears in the data participating in the calculation of the fingerprint, only the expected signatory could have generated this signature.
[0013] Furthermore, in the field of electronic document management, a conceptual framework called “data lineage” has been proposed aimed at making it possible to trace the life cycle of data in order to make it possible to determine the source of this data and the transformations it has undergone. This concept of data lineage makes it possible, for example, to associate with data a confidentiality classification that may evolve over time, successive versions of the data or mandatory destruction dates for the data. This method can be deployed within an infrastructure or organization, by usual electronic document management systems, in particular to trace the authors, versions and those responsible for documents.
[0014] However, there is no tool for carrying out these tracking operations between infrastructures and between organizations. Indeed, once the document is extracted from its electronic document management system, it loses all its attributes allowing the aforementioned tracing operations. It is also not possible to ensure tracking of versions of the same document when the latter is removed from its document management system.
[0015] It has also been proposed in the form of a model law a general concept of transferable electronic documents (MLETR-“Model Law on Electronic Transferable Records”) for tracing successive owners and versions of a document having market value. However, no implementation is suggested in this context to irrevocably give digital documents a status comparable to that of paper signed by hand.
[0016] It has also been proposed to use a registry to trace successive versions of documents under constraints imposing a particular file format and that any version allows regenerating the single previous version. This framework describes neither how to attach properties to an existing file, nor how to attest to the existence of a plurality of versions, nor how to allow versions to be of distinct formats and constructions, nor finally how to irrevocably designate the registry considered for this traceability.
[0017] It has also been proposed to use the NFT (Non-Fungible Token) technique to trace the ownership of a document, typically a work of art, using smart contract technology. This technique consists of generating data comprising a cryptographic token representing a digital object (for example a work of art) and a digital identity relating to the owner of the digital object. This data, which can thus constitute a title of ownership, is stored and authenticated using a blockchain protocol, in a decentralized digital registry. However, nothing prevents a document from being thus associated with several blockchains thus identifying several simultaneous owners.
[0018] It is therefore desirable to be able to reliably and non-falsifiably link all copies of a file to the same variable data and to be able to determine all the variable data linked to the file.SUMMARY
[0019] Embodiments relate to a method for associating variable data with a file, the method comprising steps of: searching, by a processor, for a first insertion location of data in a file; inserting, by the processor, at the first location in the file an identifier of a data block of a registry accessible from a remote server, the data block storing variable data relating to the file; calculating, by the processor, a first cryptographic fingerprint on a portion of the file content including the data block identifier, using a fingerprint calculation function, the first fingerprint depending on all bytes of the portion of the file content; and transmitting the first fingerprint by the processor to the remote server, the variable data being accessible by a query transmitted to the remote server, containing the first fingerprint.
[0020] In this way, it is not possible to link the file to another data block without modifying the file fingerprint. If the file is modified, its fingerprint is also modified. As a result, the link between the file and the variable data in the registry is broken, since this link is based on the file fingerprint. Furthermore, if modification of the data block containing the variable data can only be performed by an authorized entity, only this entity can modify the variable data. In other words, the fingerprint prohibits modifying the data block identifier present in the data block that contains the fingerprint, and the fingerprint cannot be obtained from content other than that of the file. Reading the file content cannot provide access to a data block other than that designated by the identifier present in the file. This link between the file and the registry is present in all copies or occurrences of the file.
[0021] According to an embodiment, the method comprises steps of: receiving by the remote server an access request to the data block containing the first fingerprint of the file; determining by the remote server whether a data block containing the first fingerprint is accessible; and executing by the remote server the access request, and providing by the remote server to a sender of the access request an execution report of the access request.
[0022] According to an embodiment, the access request is a read request, the execution of the access request by the remote server comprising steps of reading the data relating to the file identified by the first fingerprint contained in the data block and transmitting the read data to the sender of the access request, and / or the access request is a write request containing data to be written in the data block, the execution of the access request by the remote server comprising steps of writing the data to be written in the data block.
[0023] According to an embodiment, the access request is transmitted in association with authentication data of the sender of the access request, the execution of the access request by the remote server comprising authentication steps by the server of the sender of the access request based on the authentication data, the access request being executed by the remote server only if the server has authenticated the sender of the access request.
[0024] According to an embodiment, the method comprises steps of: searching, by the processor, for a second non-destructive insertion location of data in the file, the second location being outside the portion of the file content on which the first fingerprint was calculated; and inserting, by the processor, the first fingerprint at the second location in the file.
[0025] According to an embodiment, the portion of the file content on which the fingerprint calculation function is applied is defined: by its extent in the file, or by the extent of a portion of the file excluded from the fingerprint calculation.
[0026] According to an embodiment, the method comprises steps of: calculating, by the processor, a second fingerprint on the portion of the file content on which the first fingerprint was calculated, using the fingerprint calculation function; and comparing, by the processor, the first fingerprint with the second fingerprint, and if the first and second fingerprints are not identical, then the link established by the identifier of the file is judged non-integral by the processor.
[0027] According to an embodiment, the method comprises steps of inserting the fingerprint at least one other location in the file, the verification of the fingerprint comprising applying the fingerprint calculation function to the file content excluding all occurrences of the fingerprint in the file.
[0028] According to an embodiment, the method comprises steps of: calculating, by the processor, a digital signature of the first fingerprint using a private key of a private and public key pair; and inserting, by the processor, the signature in the file outside the portion of the file content on which the first fingerprint was calculated, wherein access to the data block is conditioned by providing to the remote server a valid digital signature verified using the public key of the private and public key pair.
[0029] According to an embodiment, the public key is inserted in metadata in the portion of the file on which the first fingerprint was calculated.
[0030] According to an embodiment, the data block referenced by the identifier is a cryptographic blockchain.
[0031] According to an embodiment, the calculation of each fingerprint comprises a step of inserting predefined data into the portion of the file content before applying the fingerprint calculation function to the file portion.
[0032] Embodiments may also relate to a computer program product comprising program file portions recorded on a computer-readable medium, configured to implement the steps of the method as previously defined.
[0033] According to an embodiment, at least part of the program is included in the file.BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Other advantages may still appear to those skilled in the art upon reading the examples below, given by way of illustration and illustrated by the attached figures, in which identical reference signs correspond to structurally and / or functionally identical or similar elements.
[0035] FIG. 1 schematically represents a set of steps of a method executed to create a file and associate it with a registry, according to an embodiment,
[0036] FIG. 2 schematically represents a file associated with a registry, according to an embodiment,
[0037] FIG. 3 schematically represents a set of steps of a method for verifying the integrity of a file and reading variable data associated with the file, according to an embodiment,
[0038] FIG. 4 schematically represents a set of steps of a method for verifying the integrity of a file and writing variable data associated with the file, according to an embodiment.DETAILED DESCRIPTION
[0039] FIG. 1 represents steps S1 to S5 of a method for creating a file from an existing file FL1. The method may be implemented by a terminal T1 and a server SRV interconnected, for example via a data transmission network NT. Thus, the terminal T1 and the server SRV may establish a client-server relationship between them. FIG. 2 represents the file FL1 and a registry RG1. Initially, the file FL1 may be empty or full.
[0040] Steps S1 to S4 are executed successively by the terminal T1. At step S1, the terminal T1 inserts a reference BCI1 to a data block BC1 of the registry RG1 into the file FL1. This insertion is performed in a controlled and potentially non-destructive manner, for example by encapsulating the reference BCI1 in metadata. The reference BCI1 contains the information for finding the registry RG1 and the data block BC1 in the registry. Depending on the case, this information may include in particular identification data (for example the address) of the server SRV in order to make it possible to determine which server should be contacted to have access to the data block BC1.
[0041] At step S2, the terminal T1 calculates a fingerprint HS1 of the file FL1 using a fingerprint calculation function HSH receiving as input all or part of the file content, including the reference BCI1 or the metadata including this reference and where applicable, the identification data of the server SRV. The function HSH may be a cryptographic hash function and / or a digital signature function. At step S3, the terminal T1 inserts the fingerprint HS1 into the file FL1 at a location that will not be taken into account for calculating the fingerprint of the file FL1. Step S3 is optional and therefore may be omitted, knowing that the fingerprint HS1 of the file FL1 can be recalculated from the file FL1 alone.
[0042] The fingerprint HS1 may be associated with a marker allowing its location and extent in the file FL1 to be found. The fingerprint HS1 may be digitally signed prior to its insertion into the file FL1. The fingerprint calculation function may be applied to all or part of the file FL1.
[0043] At step S4, the terminal T1 transmits the fingerprint HS1 to the server SRV. The fingerprint HS1 may be transmitted to the server SRV in the form of a request to update the data block BC1, possibly including the identifier BCI1 of the block BC1 where it must be recorded in the registry RG1, and possibly a digital signature of the fingerprint HS1. At step S5, the server SRV receives the fingerprint HS1 and inserts it into the data block BC1 of the registry RG1.
[0044] In this way, consultation of the registry RG1 makes it possible to identify the file FL1 and conversely, consultation of the file FL1 makes it possible to identify the registry RG1. When step S3 of inserting the fingerprint HS1 into the file FL1 is executed, the fingerprint can be used to find an occurrence of the file FL1 on the user's storage spaces by system computer tools. Furthermore, whether or not the fingerprint HS1 is inserted into the file FL1, it can be confirmed by querying the server SRV, using the identifier BCI1 appearing in the file FL1.
[0045] The data block BC1 may contain data relating to the file FL1, which may be modified. Thus, consultation of the registry RG1 based on the identifier BCI1 found in the file FL1 gives access to this modifiable data. On the other hand, if the reference BCI1 is modified in the file FL1, the fingerprint calculated on the thus modified file is different from the fingerprint HS1. It is therefore not possible to access the data block BCII from the modified file, nor to find the modified file from the fingerprint HS1 located in the data block BC1 of the registry. Consequently, the existence of the fingerprint HS1 prohibits modification of the identifier BCI1 in the file FL1. Furthermore, the identifier BCI1 certainly identifies the data block BC1 in the registry RG1, which contains the fingerprint HS1 that certainly identifies the file FL1. It should be noted that it is extremely difficult to generate a file having a predefined fingerprint, and that it is extremely unlikely (probability less than 10-77) that two files have the same fingerprint. It is therefore extremely probable that the fingerprint HS1 was not inserted into the data block BC1 before it was calculated on the file FL1 after insertion of the identifier BCI1.
[0046] The links formed by the data BCI1 and HS1 between the file FL1 and the registry RG1 do not depend on a physical storage location of the file or registry or a file system such as NTFS (New Technology File System) or FAT (File Allocation Table). These links can be verified regardless of the copy of the file FL1 considered and the physical location where this copy is stored.
[0047] Write access to the registry RG1 carried out at step S5 may be limited to one or more duly authorized persons.
[0048] According to an embodiment, the file FL1, possibly with its embedded fingerprint HS1, is published on a platform identifying files by their fingerprint, for example on the model of IPFS (InterPlanetary File System) for fingerprints calculated on the entire file.
[0049] FIG. 3 represents steps S11 to S18 of a method for reading variable data associated with a file such as the file FL1, after being processed during steps S1 and S2 and possibly S3, to receive a data block identifier BCI1 and for calculating the fingerprint HS1. The terminal T1 first executes steps S11 to S14. At step S11, the terminal T1 calculates a fingerprint HS2 of the file by applying the fingerprint calculation function HSH used at step S2 to the content of the file FL1. If the fingerprint HS1 has been inserted into the file FL1, this is excluded from the file content to which the function HSH is applied. For this purpose, the position of the fingerprint HS1 in the file may be located using a marker. The marker may specify one or more zones excluded from the file content to which the fingerprint calculation should be applied, or specify the zone(s) of the file content to which the fingerprint calculation is applied. Step S12 is optional, in particular if the fingerprint HS1 does not appear in the file FL1. At step S12, the terminal T1 compares the calculated fingerprint HS2 with the fingerprint HS1 previously associated with the file FL1. If the fingerprints HS1 and HS2 correspond or are identical, the content of the file FL1 on which the fingerprint has been calculated has not been modified since the calculation of the fingerprint HS1. Otherwise, the file FL1 may have been modified, or the fingerprint calculation function used does not correspond to that used for calculating the fingerprint HS1, or the extent of the file content on which the fingerprint calculation relates does not correspond to that taken into account for calculating the fingerprint HS1. Step S12 may include other verifications such as verification of a digital signature for determining the authenticity of the file.
[0050] The execution of steps S13, S14 may be conditioned on the success of the comparison of fingerprints HS1 and HS2 at step S12. At step S13, the terminal T1 reads in the file FL1 the identifier BCI1 of the data block BC1 of the registry RG1 where the data relating to the file FL1 is stored. At this step, the identifier BCI1 can be considered authentic if step S12 of comparison has been successfully executed. At step S14, the terminal T1 may transmit to the server SRV a read request RQR for information relating to the file FL1 stored in the registry RG1. For this purpose, the request RQR contains information for identifying the file FL1, such as the fingerprint HS2, and possibly all or part of the identifier BCI1 of the data block BC1. At step S15, the server SRV receives this request and determines whether a data block of the registry RG1 indeed contains the fingerprint HS2 transmitted at step S14, and possibly that the fingerprint HS2 is indeed found in a data block of the registry RG1, corresponding where applicable to the part of the identifier BCII received. Step S15 makes it possible to determine that the fingerprint HS2 received was indeed previously associated with the data block BC1 of the registry RG1, possibly corresponding to the part of the identifier BCI1 received at step S14. The verification performed at step S15 makes it possible to indirectly determine that the file FL1 is integral if the received fingerprint HS2 was indeed calculated on the content of the file FL1. If the test performed at step S15 is positive, then the server SRV executes steps S16 and S17. At step S16, the server SRV reads the information contained in the data block BC1 where the fingerprint HS2 is found. At step S17, the server SRV transmits the information Inf(BC1,HS2) read in the data block BC1 to the terminal T1. At step S18, the terminal T1 receives and uses the information Inf(BC1,HS2) received.
[0051] According to an embodiment, the information Inf(BC1,HS2) comprises a list of identifiers (fingerprints) of files corresponding to different versions of the file FL1. This presupposes that each time a new version of the file FL1 is created, steps S1 to S5 are executed using the same identifier BCI1 of data block BC1 and replacing the fingerprint appearing in the file with the new fingerprint calculated on the new version of the file. Thus the data block BC1 comprises for each version of the file FL1 a record containing the fingerprint of the file version. Thus the variable data associated with the file FL1 in the data block BC1 is the fingerprint of the most recent known version (or according to technical modalities the list of known versions) of the file FL1, recorded successively in the data block BC1. The choice made by the user to consider that a file constitutes a new version of another file is arbitrary and depends neither on the production modalities nor on the file format. The registry RG1 can provide the list of fingerprints of versions of the same file, but does not give access to the content of these versions.
[0052] According to an embodiment, the information Inf(BC1,HS2) comprises one or more smart contract states. According to an example embodiment, the file FL1 contains a digital artwork, and the data block BC1 contains one or more smart contract states containing data relating to the owner of the file FL1 such as owner identification data and data relating to the purchase by the owner of the digital artwork such as the purchase date and purchase price. Thus, the variable data associated with the file FL1 in the data block BC1 comprises the list of ownership transfer transactions of the artwork, recorded successively in the data block BC1. Each transaction may gather data such as the date of the transaction, information on the identity of the new owner, and the amount of the transaction.
[0053] It should be noted that the registry RG1 may be accessible for reading and verifiable by all or only by certain authorized persons, by activating steps S14 to S18. It is therefore possible even for an actor not holding the file FL1 or one of its recorded versions, to know for example the list of all versions of the file FL1, as recorded in the registry RG1 or the list of all transactions relating to the file FL1, recorded in the registry RG1.
[0054] FIG. 4 represents steps S21 to S28 of a method for writing to variable data associated with a file such as the file FL1 after being processed during steps S1 and S2 and possibly S3. Steps S21 to S23 may be identical to steps S11 to S13, respectively, step S22 also being optional, in particular if the fingerprint HS1 has not been inserted into the file FL1.
[0055] Writing to the registry RG1 may require execution of an authentication procedure (step S24), for example between the terminal T1 if it should access the registry RG1 for writing, and the server SRV. Authentication of the terminal T1 by the server SRV may be performed by any means required by the server, such as providing by the terminal to the server an identifier and password, or providing proof of capacity to sign with an identity expected by the server SRV. For this purpose, the registry RG1 may store in association with the data block BC1, one or more public keys for verifying a digital signature, the signature being generated using a signature calculation function receiving as input a data and a private key corresponding to a public key stored by the server. If the authentication procedure fails at step S24, the server SRV may notify the terminal T1 at step S28. If the terminal T1 (or the user of the terminal) is authenticated, it may transmit to the server SRV a write request RQW containing the information to be written in the data block BC1 in the registry RG1 (step S25). The write request contains the fingerprint of the file HS1 linked to the data block BC1, the data to be written DT, and possibly all or part of the identifier BCI1 of the data block BC1 where the write operation is to be performed. Note that steps S24 and S25 may be performed simultaneously. In this case, the write request RQW contains the authentication information required by the server.
[0056] At step S26, the server SRV receives the write request RQW and verifies that it is feasible. For this purpose, it executes step S26 which may be identical to step S15. Thus, at step S26, the server SRV determines whether a data block of the registry RG1 indeed contains the fingerprint HS2 of the file FL1 transmitted at step S25, and possibly that the fingerprint HS2 is indeed found in a data block corresponding to the transmitted part of the identifier BCI1. If the test performed at step S26 is positive, then the server SRV executes steps S27 and S28. At step S27, the server SRV executes the operation of writing the received data DT in the data block BC1 identified at step S26. At step S28, it transmits to the terminal T1 a report message (positive or negative) of the execution of the write operation. This report message is negative if, for any reason, the server SRV has not performed the write request. Write access rules to the data block BC1 may be specified in the data block or associated with it. In this case, the server SRV is limited to reading and following these rules, in particular to refuse or accept writing in the data block BC1.
[0057] Step S27 may constitute a first write in the data block BC1. This case may occur for example when the identifier BCI1 is not recognized at step S26 by the server SRV.
[0058] According to an embodiment, the registry RG1 is managed by a trusted third party, guaranteeing the integrity and authenticity of the registry data.
[0059] According to another embodiment, the data block BC1 is a cryptographic blockchain. In this case, step S5 of inserting the fingerprint HS1 into the data block BC1 and step S27 of writing in the data block BC1 are performed by generating data of a new transaction in the data block of the blockchain, including the fingerprint HS1.
[0060] According to an embodiment, the identifier BCI1 references a smart contract in a blockchain. In this case, the read and / or write requests RQR, RQW may contain the reference of a function associated with the smart contract to be executed by the server SRV.
[0061] According to an embodiment, the fingerprint HS1 is signed by transmitting a request to a time server providing legal timestamping, for example according to the RFC3161 standard. The time server provides timestamping data which may also be inserted into the file FL1 at step S3. The digital signature of the fingerprint HS1 is also inserted into the data block BC1 at steps S5 and S27.
[0062] According to an embodiment, the functions described above for updating the blockchain BC1 are performed by several servers, called “miners”, executing the same operations in parallel, as is generally done when recording a transaction in a blockchain. The operations performed by the servers are called “mining” operations. This arrangement makes it possible to ensure greater security regarding in particular the content of the registry RG1 which is moreover generated identically and securely by several servers.
[0063] According to an embodiment, the fingerprint HS1 is transmitted at step S4 with an identifier of a group of files to which the file FL1 belongs. This file group identifier may be inserted into the file FL1 for example in metadata at step S1 and be taken into account in the calculation of the fingerprint HS1 performed at step S2. The group identifier is inserted into the data block BC1 at step S5. In this way, a read request RQR like that transmitted at step S14, and including this file group identifier, may make it possible to obtain from the server SRV the fingerprints of all files belonging to the group corresponding to the file group identifier transmitted. The fingerprints may then be used to find the corresponding files belonging to the file group. These arrangements make it possible for example to obtain the fingerprints of all versions of the same file, or of all files associated with a given keyword, without limitation. It is therefore possible to reproduce usual electronic document management mechanisms, without requiring that the documents be gathered in a particular storage space.
[0064] According to an embodiment, the file FL1 contains program instructions, and the fingerprint HS1 is inserted into the file FL1 for example, in a program comment, in a section of the file intended to receive metadata in clear text (pdf, jpg), or at the end of a binary file (zip, exe).
[0065] According to an embodiment, the file FL1 contains program instructions, and an instance of the fingerprint HS1 is inserted into the file FL1 at a location allowing its consideration by the program, for example to allow the display of an optical code (e.g. QR Code or “Quick Response Code”) exactly identifying the file for example in a format such as HTML (“HyperText Markup Language”) or pdf (“portable document format”).
[0066] According to an example embodiment, step S14 and / or S25 further comprises transmission to the server SRV of program instructions appearing in the file FL1, for example in the part subjected to fingerprint calculation to obtain the fingerprint HS1. The transmitted program instructions are to be executed by the server SRV to perform operations on the data block BC1.
[0067] The fingerprint according to its type may alone constitute the marker for locating it in the file FL1. This is for example the case when the metadata is of a sufficiently specific format to enable its location in the file by means of a regular expression. Thus the marker may be a specific formatting, a specific character string known to appear in the identification metadata of a data block, regular separators, etc. The formatting may be known implicitly since it is defined by default, for example, metadata consisting of the first 30 characters of the hexadecimal representation of a “SHA256” fingerprint, with a separator dash every 5 characters.
[0068] The marker is not necessarily at the location of the fingerprint in the file, but may indicate the fingerprint's location, for example relative to the beginning or end of the file, or relative to the position of the marker in the file. Thus the marker may be associated with information useful for locating the fingerprint, such as a position defined relative to the marker, or relative to the beginning or end of the file. The fingerprint HS1 may be inserted into the file FL1 in the form of, or in, metadata used to identify the file. When the fingerprint or the metadata that contains it does not alone allow locating the fingerprint, the marker may be inserted into the file or the metadata.
[0069] Furthermore, the fingerprint HS1 according to its type may alone provide information on the calculation or calculation algorithm or encoding that allowed its generation. The fingerprint may also be associated with metadata specifying the name of the calculation algorithm used for generating the fingerprint, such as “md5,” or “shal,” or the name of the encoding, such as “hex” (for hexadecimal), “b64” (for base 64), or “bubble-babble”. Furthermore, the algorithm or encoding may be known implicitly since it is defined by default. If the fingerprint HS1 is inserted in metadata, this fingerprint calculation type information may be inserted in the same metadata as the fingerprint. The metadata containing the fingerprint calculation type information may also be inserted in a protected section as described previously.
[0070] According to an embodiment, the fingerprint HS1 is inserted into the file FL1 in association with or in the form of a digital signature generated by applying a signature calculation function to the file fingerprint and a private key of a public / private key pair. Verification of the digital signature may consist of applying a corresponding signature verification function, to the triplet comprising the fingerprint HS1, the signature and the public key of the public / private key pair, to prove that the signature validly signs the fingerprint HS1 by the private key, while the fingerprint HS1 contained in the file is not used in the fingerprint calculation.
[0071] One or more metadata appearing in the file FL1 may provide the parameters necessary for verification. These parameters may indicate the type of algorithm used to generate the fingerprint and / or the digital signature. These parameters may provide the email address of a signatory, and / or the corresponding public key or a derivation thereof. In all cases, it is preferable that this metadata be used in the calculation of the fingerprint HS1.
[0072] In the case where the digital signature of the fingerprint HS1 is calculated, it may be transmitted to the server at step S14 and / or S25. This allows the server SRV to verify that the request RQR and / or RQW is issued by the signatory of the file himself who may be the only legitimate one to do so.
[0073] According to an embodiment, steps S1 to S3 are performed by a trusted third party to whom the file FL1 has been previously transmitted, for example the server SRV. In this way, it is ensured that the fingerprint HS1 is indeed that of the file FL1 in which the identifier BCI1 used for calculating the fingerprint is found. However, generation of the fingerprint by a trusted third party may pose the problem of confidentiality of the content of the file FL1. Proof that the fingerprint HS1 has indeed been calculated on a part of the file FL1 containing the identifier BCI1 may also be provided by a zero-knowledge proof establishment protocol in which the entity that generates the proof does not need to know the content of the file FL1. Thus, confidentiality of the content of the file FL1 can be ensured.
[0074] According to an embodiment, one of the metadata of the file FL1 may contain information used when calculating the fingerprint HS1.
[0075] According to an embodiment, certain metadata of the file FL1 are used when calculating the fingerprint HS1, HS2, and others are excluded from this calculation.
[0076] According to an embodiment, the calculation of the fingerprint HS1 (step S2) comprises the prior insertion of predefined data into the file FL1, possibly at the location of the fingerprint HS1 in the file. In this case, the calculation of the fingerprint HS1 uses the bits of the predefined data inserted into the file. In this case, the calculation of the fingerprint HS2 (step S12) comprises the prior insertion of the predefined data into the file FL1, in place of and replacing the fingerprint HS1 when the latter is inserted into the file FL1.
[0077] According to an embodiment, the fingerprint HS1 is introduced into the file FL1 at multiple locations, the fingerprint being calculated by excluding the bits of the fingerprint at all locations where the fingerprint is inserted. For this purpose, a tag serving as a marker may be inserted at multiple locations in the file FL1, the fingerprint HS1 being calculated by excluding the tag or not, then inserted in place of the tag at these locations. Thus, the fingerprint may be inserted in a useful area of the file FL1, for example to be visible when the file content is displayed, particularly in the case where metadata are not displayed by the file display software.
[0078] To verify that the fingerprint HS1 appearing in the file has indeed been calculated from the file FL1, a marker may be used to find a first insertion location of the fingerprint in the file, and the fingerprint thus found may be used to search for all other occurrences of the fingerprint in the file. The fingerprint HS2 is then calculated by excluding all occurrences of the fingerprint HS1 in the file FL1, the marker being, where applicable, previously inserted in place of the occurrences of the fingerprint HS1 found in the file FL1.
[0079] According to an embodiment, steps S2, S3 are executed multiple times in cascade to insert multiple fingerprints into the file FL1. Thus, each execution of steps S2, S3 introduces into the file FL1 a new fingerprint HS1, calculated on the file in its state at the beginning of each new execution of steps S2, S3, the fingerprint(s) previously inserted being used in the calculation of a new fingerprint which is then inserted into the file FL1.
[0080] By thus allowing multiple fingerprints HS1 to be inserted in a file in cascade, the method therefore allows, in addition to the possibility of using calculation algorithms already known as resistant, to protect robustly against “preimage” attacks on a fingerprint by combining multiple fingerprints in the same file. Indeed, to succeed, a preimage attack would have to not only produce a file that has exactly all the same fingerprints, but also one that could validly be taken for the original file. This attack is already very difficult to achieve when there is only one fingerprint to counterfeit, and becomes practically impossible with known technologies when multiple fingerprints are combined in cascade.
[0081] According to an embodiment, certain metadata of the file FL1 comprise an invariable part and a variable part, and only the variable part of the metadata is ignored in calculating the fingerprint HS1.
[0082] It will appear clearly to those skilled in the art that the present disclosure is susceptible to various alternatives and applications. Thus, the embodiments previously described should be considered by way of illustration, and may be modified within the scope of the attached claims. In particular, the sender of the read and write requests RQR, RQW of steps S14 and S25 is not necessarily the terminal T1, but any entity authorized to perform reads and / or writes in the data block BC1 of the registry RG1, and where applicable, previously identified by the server SRV.
[0083] Furthermore, it is possible to link the file FL1 to multiple data blocks appearing in the registry RG1 or in different registries accessible via different servers. For this purpose, multiple data block identifiers may be inserted in the part of the file FL1 on which the calculation of the fingerprint HL1 relies.
[0084] Moreover, since a cryptographic fingerprint is unique, the fingerprint HS1 may in many cases alone suffice for the server SRV to identify the data block BC1 to be accessed, as long as the fingerprint HS1 already appears in the data block, for example following step S5. It follows that the identifier BCI1 of the data block BC1 inserted in the file FL1 may be configured to identify only the server SRV and / or the registry RG1. It follows in certain cases that the identifier BCI1 does not need to be transmitted, including partially, in these requests at steps S14 and S25, but serves only to determine how to address the requests RQR and RQW to the server SRV.
[0085] More generally, the identifier BCI1 of the data block BC1 inserted in the file FL1 may be configured to identify only the data block BC1 where the fingerprint HS1 is located, or to identify both the data block BC1 and the server SRV that provides access to the data block, or to identify only the server SRV if the latter can locate the data block BC1 solely based on the fingerprint HS2 that has been transmitted to it.
[0086] Furthermore, the present disclosure does not apply only to traceability of versions or owners of files, but covers a very large number of situations, particularly in electronic document management (keywords, classification information . . . ), as well as in industry (transfer of responsibility for maintenance, changes of parts in an assembly . . . ).
Claims
1. A method for associating variable data with a file, the method comprising the steps of:searching, by a processor, for a first insertion location of data in a file;inserting, by the processor, at the first insertion location of data in the file, an identifier of a data block of a registry accessible from a remote server , the data block storing variable data relating to the file;calculating, by the processor, a first cryptographic fingerprint on a portion of the file content including the data block identifier, using a fingerprint calculation function , the first fingerprint depending on all bytes of the portion of the file content; andtransmitting the first fingerprint by the processor to the remote server, the variable data being accessible by a query transmitted to the remote server, containing the first fingerprint.
2. The method according to claim 1, comprising the steps of:receiving by the remote server an access request to the data block containing the first fingerprint of the file;determining by the remote server whether a data block containing the first fingerprint is accessible; andexecuting by the remote server the access request, and providing by the remote server to a sender of the access request an execution report of the access request.
3. The method according to claim 2, wherein:the access request is a read request, execution of the access request by the remote server comprising the steps of reading the data relating to the file identified by the first fingerprint contained in the data block and transmitting the read data to the sender of the access request, and / orthe access request is a write request [[(RQW)]] containing data to be written in the data block, the execution of the access request by the remote server comprising the steps of writing the data to be written in the data block.
4. The method according to claim 3, wherein the access request is transmitted in association with authentication data of the sender of the access request, the execution of the access request by the remote server comprising authentication steps by the server of the sender of the access request based on the authentication data, the access request being executed by the remote server only if the server has authenticated the sender of the access request.
5. The method according to claim 1, comprising the steps of:searching, by the processor, for a second non-destructive insertion location of data in the file, the second location being outside the portion of the file content on which the first fingerprint was calculated; andinserting, by the processor, the first fingerprint at the second location in the file.
6. The method according to claim 5, wherein the portion of the file content on which the fingerprint calculation function is applied is defined:by its extent in the file, orby the extent of a portion of the file excluded from the fingerprint calculation.
7. The method according to claim 5, comprising the steps of:calculating, by the processor, a second fingerprint on the portion of the file content on which the first fingerprint was calculated, using the fingerprint calculation function; andcomparing, by the processor, the first fingerprint with the second fingerprint, and if the first and second fingerprints are not identical, then a link established by the identifier of the file is judged non-integral by the processor.
8. The method according to claim 5, comprising the steps of inserting the fingerprint in at least one other location in the file , verification of the fingerprint comprising applying the fingerprint calculation function to the file content excluding all occurrences of the fingerprint in the file.
9. The method according to claim 1, comprising the steps of:calculating, by the processor, a digital signature of the first fingerprint using a private key of a private and public key pair; andinserting, by the processor, the signature in the file outside the portion of the file content on which the first fingerprint was calculated, wherein access to the data block is conditioned by providing to the remote server a valid digital signature verified using the public key of the private and public key pair.
10. The method according to claim 9, wherein the public key is inserted in metadata in the portion of the file on which the first fingerprint was calculated.
11. The method according to claim 1, , wherein the data block referenced by the identifier is a cryptographic blockchain.
12. The method according to claim 1 , wherein the calculation of each fingerprint comprises a step of inserting predefined data into the portion of the file content before applying the fingerprint calculation function to the file portion.
13. A computer program product comprising program file portions recorded on a computer-readable medium, the computer program product configured to implement the steps of the method according to claim 1.
14. The computer program product according to claim 13, wherein at least part of the program is included in the file.
