Which hash algorithm should I use?
SHA-256 for checksums, signatures and anything security-related. SHA-384 and SHA-512 add margin and are common in TLS and on 64-bit systems. MD5 and SHA-1 are broken — attackers can create two different inputs with the same hash — so use them only to compare against old published checksums.