project_config.utils.crypto module

Criptographic utilities.

project_config.utils.crypto._build_hash(data: bytes) blake2b[source]
project_config.utils.crypto.hash_file(filename: str) str[source]

Return the hash digest of the file.

Parameters:

filename (str) – The file to hash.

Returns:

The hash digest of the file.

Return type:

str

project_config.utils.crypto.hash_hexdigest(data: bytes) str[source]

Return the hexadecimal hash digest of the data.

Parameters:

data (bytes) – The data to hash.

Returns:

The hexadecimal hash digest of the data.

Return type:

str