Skill 5.2.1
Hashing
Key Concepts
A cryptographic hash function is one-way (the input cannot be recovered from the digest), deterministic and collision-resistant (it is infeasible to find two inputs with the same digest), and a tiny change in input changes the digest completely. Uses include integrity checks, digital signatures, password storage and identifying files.
MD5 (128-bit) and SHA-1 (160-bit) are broken for collision resistance and should not be used for security. SHA-2 (SHA-256, SHA-384, SHA-512) and SHA-3 are current.