SHA-256 — secure, modern. MD5 — legacy, vulnerable.
SHA-256:
SHA-256:
Input: "hello"
Output: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
(64 hex chars, 256 bits)
MD5:
MD5:
Input: "hello"
Output: 5d41402abc4b2a76b9719d911017c592
(32 hex chars, 128 bits)
Key differences: