This paper reviews the application of quantum mechanics to cryptography, focusing on quantum key distribution (QKD) and its protocols, particularly the BB84 and SARG04 protocols which utilize principles such as the uncertainty principle and quantum entanglement to enhance security against eavesdropping. It discusses the challenges faced in the practical implementation of these protocols and the advancements being made, including device-independent QKD methods. The work aims to provide a foundational understanding of quantum cryptography and the evolution of its protocols.