US 12,105,672 B2
Method for improving the hashing of a file
Bruno Sangle-Ferriere, Paris (FR)
Assigned to Marbeuf Conseil et Recherche, Paris (FR)
Filed by MARBEUF CONSEIL ET RECHERCHE, Paris (FR)
Filed on Sep. 29, 2023, as Appl. No. 18/374,791.
Claims priority of application No. 2210136 (FR), filed on Oct. 4, 2022.
Prior Publication US 2024/0111717 A1, Apr. 4, 2024
Int. Cl. G06F 16/00 (2019.01); G06F 9/30 (2018.01); G06F 16/13 (2019.01); H04L 9/06 (2006.01)
CPC G06F 16/137 (2019.01) [G06F 9/30029 (2013.01); H04L 9/0643 (2013.01)] 13 Claims
OG exemplary drawing
 
1. Method for calculating a modifier code of a file, implemented by at least one device, the file being mixed using a same mixing function, hashes being obtained using a same hashing function, the method comprising the following steps:
a) establishing a list of a plurality of possible modifier codes given the number of bits on which the plurality of possible modifier codes are generated;
b) establishing a list of a plurality of possible mixer numbers given the number of bits on which the plurality of possible mixer numbers are generated;
c) for each of the plurality of possible modifier codes:
i) creating a list of hashes of the file;
ii) for each the plurality of possible mixer numbers, calculating a hash of the file modified by the modifier code then mixed with the mixer number, the modification of the file being performed using a same modification function;
iii) adding each hash calculated in step ii) to the list of hashes of the file;
iv) counting a number of different elements N of the list of hashes of the file;
v) memorizing the number N, as well as the modifier code associated with the number N, if the number N is the first to be counted or is greater than the number N previously memorized; and
d) returning the modifier code last memorized.