Initially, it was only used by the military to decode enemy messages, but today is being used in things more mundane, such as email. Cryptography deals with all aspects of secure messaging, authentication, digital signatures, electronic money, and other applications.