def send_auto(self, payload, tries=1, timeout=60):
        enc = payload.get('enc', 'clear')
        load = payload.get('load', {})
        return self.send(enc, load, tries, timeout)
Detect the encryption type based on the payload
dataset/ETHPy150Open saltstack/salt/salt/payload.py/SREQ.send_auto