this is my code(python3.7):
base64.b64decode('ThisIsASecret')
the console show error msg 'binascii.Error: Invalid base64-encoded string: number of data characters (13) cannot be 1 more than a multiple of 4'
Then i change the string
base64.b64decode('ThisIs==') OK
base64.b64decode('ThisIsA=') OK
base64.b64decode('ThisI===') ERROR
I find this error was show when the len(string)%4==1 only. example the length of a string is 5,9,13 etc. How can I reolve the string?