hash
¶
Module Contents¶
Functions¶
|
|
|
Compute md5 hexadecimal digest of a file. |
|
Compute sha1 hexadecimal digest of a file. |
|
Compute sha256 hexadecimal digest of a file. |
- exception hash.HashError(message: str | list[str], origin: str | None = None)¶
Bases:
e3.error.E3Error
Exception raised by functions defined in E3.
- hash.__compute_hash(path: str, kind: Literal[md5] | Literal[sha1] | Literal[sha256]) str ¶
- hash.md5(path: str) str ¶
Compute md5 hexadecimal digest of a file.
- Parameters:
path – path to a file
- Returns:
the hash of the file content
- Raises:
HashError – in case of error