The Evolution of Encryption Methods: From Classical to Quantum-Resistant Algorithms