Improve Python Base64 to Encode String Safely: Replace +, / and = Characters- Python Tutorial

In python, we can use base64 to encode a string and transfer it. However, the basic base64 function is not safe. In this tutorial, we write two functions to imporve base64 encode and decode functions in order to encode and decode string safely.