import base64


def _urlsafe_b64encode(s: bytes) -> bytes:
    """
    Base 64 URL safe encoding with no padding.
    :param s: input str to be encoded
    :return: encoded bytes
    """
    return base64.urlsafe_b64encode(s).rstrip(b"=")