This paper presents a robust cryptographic algorithm designed for securing audio and visual files, utilizing a combination of techniques including ant algorithms, logical gates, and dual authorization PINs for enhanced security. The algorithm aims to make unauthorized access and decryption extremely challenging, allowing only authorized users to decrypt the information via secured keys. Research results indicate that the method effectively masks data and exhibits efficient performance during encryption and decryption processes.