Well, the answer here may be too simplistic.
If with full sha1 you get about 1 in 2 ^ 160 chance of a collision, then truncating one character, you increase the chance of a collision by 16 (all possible values of the truncated character) ... which is 2 ^ 4. So, if you truncate x characters , you get a 1 out of 2 ^ (160 - 4 * x) chance of a collision. Right?
vmpstr Jan 24 '11 at 16:27 2011-01-24 16:27
source share