SHA-256
A standard, secure hash algorithm that turns any input into a 256-bit result. SHA-1, an older one, has already been attacked.
Example
The SHA-256 of any file, 1 KB or 10 GB, is 64 characters. Changing 1 byte changes all 64.
Test yourself: SHA-256
Hash algorithms
Adding up letter codes is a bad hash because "ab" and "___" give the same result.
In ASCII, a = 97 and b = 98: "ab" and "ba" both add up to 195. The letters' order is lost and they collide.
0/1
â–¶ Play