The following examples demonstrate how cryptographic failures occur:A web app uses automatic database encryption to encode credit card numbers and then store them. However, when the data is received, it is automatically decrypted; A site supports weak encryption or fails to enforce TLS for all pages. Consequently, an attacker can steal user cookies by intercepting the requests; Everyone’s passwords stored in a database use simple hashes or are unsalted. As a result, hackers can crack passwords and gain unauthorized access to users’ accounts.