Scrap-Dji / parser /hasher.py
joel
Initial deployment: Scrap-Dji with API
dfdddb1
raw
history blame contribute delete
190 Bytes
import hashlib
def hash_text(text: str) -> str:
return hashlib.sha256(text.encode('utf-8')).hexdigest()
def hash_bytes(data: bytes) -> str:
return hashlib.sha256(data).hexdigest()