def isCompatible(signature, withSignature):
    """
    Checks if the signature is compatible with signature.
    
    @param signature: string
        The signature to check if compatible.
    @param withSignature: string
        The signature to check with.
    @return: boolean
        True if the signature is compatible, False otherwise.
    """
    assert isinstance(signature, str), 'Invalid signature %s' % signature
    assert isinstance(withSignature, str
        ), 'Invalid with signature %s' % withSignature
    if signature == withSignature:
        return True
    if not len(withSignature) > 8:
        return False
    if len(signature) > 8:
        signature = signature[:8]
    for k in range(0, len(withSignature), 8):
        if signature == withSignature[k:k + 8]:
            return True
    return False
