Cryptography is the science of securing information and communication through encryption. It has a long history dating back to ancient civilizations, but modern cryptography emerged in the early 20th century with the invention of encryption machines like the Enigma and Lorenz ciphers used in World War II. Cryptography serves purposes like authentication, confidentiality, integrity, and non-repudiation. It uses techniques like symmetric encryption with a shared key, asymmetric encryption with public/private key pairs, and hash functions. Cryptography has many applications in digital signatures, smart cards, e-commerce, passwords, and ATMs. While technology has improved security, perfection has not been achieved.