added hashservice.py;
This commit is contained in:
parent
1f444cce27
commit
dc9912f90c
7
middleware/app_be/services/hashservice.py
Normal file
7
middleware/app_be/services/hashservice.py
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import hashlib
|
||||||
|
|
||||||
|
|
||||||
|
def create_sha512(b: bytes):
|
||||||
|
h = hashlib.sha512()
|
||||||
|
h.update(b)
|
||||||
|
return h.hexdigest()
|
||||||
Loading…
x
Reference in New Issue
Block a user