this is my base64 String "lFKiKF2o+W/vvLqddOdv2ttxWSUX/SSZEyqcdyDDb+8=".
In python2 the following code works
print("lFKiKF2o+W/vvLqddOdv2ttxWSUX/SSZEyqcdyDDb+8=".decode('base64', 'strict'))
whereas in python3 where there isnt str.decode('base64', 'strict') is not available. I tried to do the same thing in python3 as below
b64EncodeStr4 = "lFKiKF2o+W/vvLqddOdv2ttxWSUX/SSZEyqcdyDDb+8="
print(len(b64EncodeStr4))
decodedByte = base64.b64decode(bytes(b64EncodeStr4, 'ascii'))
print(decodedByte)
decodeStr = decodedByte.decode('ascii', 'strict')
print(decodeStr)
I have tried other encoding as well like utf-8, utf-16, utf-32. But nothing works. Whats the best approach here to convert base64 to regular string in python3.