'Make a hash for the controlpath based on con attributes'

@staticmethod
def _create_control_path(host, port, user):

    pstring = ('%s-%s-%s' % (host, port, user))
    m = hashlib.sha1()
    m.update(to_bytes(pstring))
    digest = m.hexdigest()
    cpath = ('%(directory)s/' + digest[:10])
    return cpath
