Merge branch 'master' into '3-minio_api'
# Conflicts: # middleware/app_be/views/rest_api.py
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import hashlib
|
||||
|
||||
|
||||
def create_sha512(b: bytes):
|
||||
h = hashlib.sha512()
|
||||
h.update(b)
|
||||
return h.hexdigest()
|
||||
@@ -6,7 +6,7 @@ class WrapperService:
|
||||
@staticmethod
|
||||
def wrap_file(file_bytes: bytes) -> str:
|
||||
file_encoded_b64 = base64.b64encode(file_bytes)
|
||||
return file_encoded_b64.decode('utf-8')
|
||||
return file_encoded_b64.decode()
|
||||
|
||||
@staticmethod
|
||||
def unwrap_file(file_str: str) -> bytes:
|
||||
|
||||
Reference in New Issue
Block a user