document-image-extractor/document_image_extractor/utils/hashing.py

5 lines
92 B
Python

import hashlib
def md5_bytes(data: bytes) -> str:
return hashlib.md5(data).hexdigest()