def ascii2bits(message):
    """
    The ascii2bits function converts a string of ascii characters to a
    padded string of bits.
    """
    msg = bin(int.from_bytes(message.encode(), 'big'))[2:]
    return msg.zfill(8 * ((len(msg) + 7) // 8))