suggest me for a method to encrypt a Python script that is responsible for switching a relay in a door controller. The goal is to protect the script's logic and prevent unauthorized access or tampering, ensuring that only authorized users or systems can control the relay. The focus is on securing the code that interfaces with the door's relay control system especially used in automatic relay category in access control. plz find the spec.
NFC-CONTROLLED-MACHINE-ACCESS
Sk nath