From Ancient Ciphers to Quantum Keys: A Journey Through Cryptography