6 lines
98 B
Python
6 lines
98 B
Python
|
|
import hashlib
|
||
|
|
|
||
|
|
|
||
|
|
def sha256_file(data: bytes) -> str:
|
||
|
|
return hashlib.sha256(data).hexdigest()
|