def b64_encode(data: bytes) -> bytes:
encoded = urlsafe_b64encode(data)<EOL>return encoded.replace(b'<STR_LIT:=>', b'<STR_LIT>')<EOL>
:param data: Data the encode.
:type data: bytes
:return: Base 64 encoded data with padding removed.
:rtype: bytes