gcages.hashing#
Support for hash calculations
Functions:
| Name | Description |
|---|---|
get_file_hash |
Get the hash of a file |
get_file_hash #
Get the hash of a file
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
fp
|
Path
|
Path to the file |
required |
algorithm
|
str
|
Algorithm to use during hashing |
'sha256'
|
buffer_size
|
int
|
The size of the chunks to use when hashing the file |
64 * 1024 ** 2
|
Returns:
| Type | Description |
|---|---|
str
|
Hash of the file |