Add byte to string conversion after base64 encode
Issue-ID: OPTFRA-645
Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com>
Change-Id: I27326dd35b6727da80c159cb34d5d67e0829cf8f
# like object so we need to convert the str into bytes
user_pass = user_pass.encode() # converting str into bytes form
- base64_val = base64.b64encode(user_pass)
+ base64_val = base64.b64encode(user_pass).decode()
authorization_val = _LE("Basic {}".format(base64_val))
-
return authorization_val
cotyledon # Apache-2.0
futurist>=0.11.0 # Apache-2.0
-lxml>=2.3 # BSD
+lxml>=4.5.0 # BSD
oslo.config>=3.9.0 # Apache-2.0
oslo.i18n>=2.1.0 # Apache-2.0
oslo.log>=1.14.0 # Apache-2.0
onapsmsclient>=0.0.4
Flask>=0.11.1
prometheus-client>=0.3.1
-pycrypto==2.6.1
+pycryptodome==3.9.7