Cryptography ensures secure computer networks and systems. The science of cryptography ensures the confidentiality of data, protects data from unauthorized modification during storage and transit, and allows data authentication.