The paper discusses an algorithm for enhancing security in autonomous cars by utilizing a one-time pad encryption method to protect data sent between vehicles and satellites, aiming to prevent potential hacking threats. It describes how autonomous vehicles use embedded systems and various technologies for navigation and control but face vulnerabilities, especially regarding GPS hacking. The proposed encryption strategy seeks to ensure that only authorized cars can communicate with satellites, thereby increasing the overall safety of autonomous vehicles.