Bridging machine learning and cryptography in defence against adversarial attacks