This study presents an enhanced approach for recovering the secret key of the standard classical transposition cryptosystem using a recently introduced metaheuristic, the coati optimization algorithm.