This paper introduces a novel approach to enhance data security through the combination of the caesar cipher with triple pass encryption, utilizing the Krill herd optimization algorithm. The proposed method aims to safeguard sensitive information during transmission and storage by leveraging the strengths of both encryption techniques and optimizing the generation of random keys. In this approach, the caesar cipher adds an extra layer of security by shifting each character in the plaintext by a fixed number of positions. The triple pass encryption further reinforces the encryption process by applying the caesar cipher three times, each with a different shift value. To evaluate the effectiveness of this combined approach, it is compared against the basic caesar cipher and basic triple pass protocol. The experimental results demonstrate superior performance of the proposed method in terms of minimal processing time, 100% accuracy, and zero errors when compared to these traditional techniques. The Krill herd algorithm plays a crucial role in generating random keys and determining the optimal shift values for both the caesar cipher and triple pass encryption. The effectiveness of this combined approach is compared to existing techniques, and the experimental results demonstrate superior performance in terms of minimal processing time, 100% accuracy, and zero errors. This promising solution holds potential for enhancing data security across various domains, as the Krill Herd-based key generation significantly improves the randomness of encryption keys, thereby increasing their resilience against cryptographic attacks.