Cryptography is commonly used in various fields, including online banking, digital transactions, secure messaging, computer passwords, digital signatures, military communications, and internet of things (IoT) devices. It is crucial for protecting sensitive data, ensuring secure communication, and maintaining the privacy of users in these applications.