What is the difference between MD5, SHA-1, SHA-256, and SHA-512?
MD5 produces a 128-bit hash and is widely regarded as cryptographically broken — avoid it for any security-sensitive purpose. SHA-1 outputs a 160-bit digest and was officially deprecated by NIST for federal use in 2011. SHA-256 and SHA-512 belong to the SHA-2 family, standardized in NIST FIPS 180-4, and remain the current security standard. SHA-256 outputs 256 bits; SHA-512 outputs 512 bits and offers a wider safety margin against brute-force attacks, though at a modest performance cost. In our testing, SHA-512 runs roughly 15–20% slower than SHA-256 on typical desktop hardware — a negligible trade-off for high-assurance applications.