pyguymer3.sha512_of_GZ¶
- pyguymer3.sha512_of_GZ(fname, /, *, chunksize=1048576, ignoreModificationTime=True)[source]¶
Find the SHA-512 hash of a GZ file
This function returns the SHA-512 hash of the passed GZ file as if the first “Modification Time” field is set to zero. Using this function it is possible to discover that the only binary difference between two different GZ files is the first “Modification Time” field.
If this function is told not to ignore the first “Modification Time” field then this function will return the SHA-512 identically to any other method.
- Parameters:
- Returns:
hexdigest – The hash hexdigest of the input GZ file.
- Return type:
Notes
The following websites have some very useful information on how to parse GZ files:
Copyright 2017 Thomas Guymer [1]
References