Merge branch 'master' into '3-minio_api'

# Conflicts:
#   middleware/app_be/views/rest_api.py
This commit is contained in:
Martin Weick
2020-12-02 10:30:44 +01:00
10 changed files with 131 additions and 44 deletions
@@ -0,0 +1,7 @@
import hashlib
def create_sha512(b: bytes):
h = hashlib.sha512()
h.update(b)
return h.hexdigest()
+1 -1
View File
@@ -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: