Commit 73dae1a2 authored by arun.uday's avatar arun.uday

AssetManager-V1.0 - Not yet reviewed

Added the encoding to the conf file
parent 9fbdd464
......@@ -5,3 +5,6 @@ PROJECT_ID = 1256
[PATH]
base_path = scripts/
sub_path = log/
[ENCODING]
ENCODING_TYPE = utf-8
\ No newline at end of file
......@@ -12,6 +12,7 @@ class _Services(BaseSettings):
PORT: int = Field(default=8000, env="service_port")
PROJECT_NAME = config.get("PROJECT_DETAILS", "PROJECT_NAME")
PROJECT_ID = config.get("PROJECT_DETAILS", "PROJECT_ID")
ENCODING_TYPE = config.get("ENCODING", "ENCODING_TYPE")
# path
BASE_PATH = config.get("PATH", 'base_path')
SUB_PATH = config.get("PATH", "sub_path")
......
......@@ -46,7 +46,7 @@ class LoginHandlers:
def password_decrypt(self, password):
try:
# encoding the Key
key = Services.KEY_ENCRYPTION.encode('utf-8')
key = Services.KEY_ENCRYPTION.encode(Services.ENCODING_TYPE)
# decoding the received password
enc = base64.b64decode(password)
# mode for the decryption
......
......@@ -529,3 +529,4 @@ SyntaxError: invalid syntax
2023-03-20 10:50:16 - INFO - [MainThread:<module>(): 34] - App Starting at 0.0.0.0:8671
2023-03-20 10:50:34 - INFO - [MainThread:<module>(): 34] - App Starting at 0.0.0.0:8671
2023-03-20 10:55:39 - INFO - [MainThread:<module>(): 34] - App Starting at 0.0.0.0:8671
2023-03-20 11:07:35 - INFO - [MainThread:<module>(): 34] - App Starting at 0.0.0.0:8671
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment