base64 encoding uses '=' as a padding character and you can have one or two of them with an arbitrary base64 encoded string.
There's also a "web format" for base64 encoding which leaves off the = since that's irritating in a URL, but it's the same otherwise.