A Secure Way To Lock A Gate