:py:mod:`dissect.target.helpers.hashutil` ========================================= .. py:module:: dissect.target.helpers.hashutil Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: :nosignatures: dissect.target.helpers.hashutil.md5 dissect.target.helpers.hashutil.sha1 dissect.target.helpers.hashutil.sha256 dissect.target.helpers.hashutil.common dissect.target.helpers.hashutil.custom dissect.target.helpers.hashutil.hash_uri dissect.target.helpers.hashutil.hash_uri_records Attributes ~~~~~~~~~~ .. autoapisummary:: dissect.target.helpers.hashutil.BUFFER_SIZE .. py:data:: BUFFER_SIZE :value: 32768 .. py:function:: md5(fh: BinaryIO) -> tuple[str] .. py:function:: sha1(fh: BinaryIO) -> tuple[str] .. py:function:: sha256(fh: BinaryIO) -> tuple[str] .. py:function:: common(fh: BinaryIO) -> tuple[str] .. py:function:: custom(fh: BinaryIO, algos: list[Union[str, hashlib._hashlib.HASH]]) -> tuple[str] .. py:function:: hash_uri(target: dissect.target.target.Target, path: str) -> tuple[str, str] Hash the target path. .. py:function:: hash_uri_records(target: dissect.target.target.Target, record: flow.record.Record) -> flow.record.Record Hash uri paths inside the record.