You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code sucks, and you shouldn't've followed that terrible tutorial.
Issue: After reading docs, you can very easily see that all encoding or decoding can be done in one line using e = b64encode(variable_that_holds_user_input.encode("utf-8")) or e = b64decode(variable.encode()) and then e.decode()
Solution: Replace the relevant lines of code with these much shorter and more sensible ones.
The text was updated successfully, but these errors were encountered:
This code sucks, and you shouldn't've followed that terrible tutorial.
Issue: After reading docs, you can very easily see that all encoding or decoding can be done in one line using
e = b64encode(variable_that_holds_user_input.encode("utf-8"))
ore = b64decode(variable.encode())
and thene.decode()
Solution: Replace the relevant lines of code with these much shorter and more sensible ones.
The text was updated successfully, but these errors were encountered: