The document describes an improved color image encryption algorithm utilizing a Rubik’s cube technique for pixel permutation and a DNA sequence-based bit substitution method. This approach aims to enhance security against various attacks, including replay attacks, by appending a timestamp to the encrypted image. Performance evaluations indicate the proposed method achieves high levels of security and efficiency compared to traditional techniques.