2 ms·
Truncated SHA-* hashes are more secure against length-extension attacks, but are very much less secure against collision and pre-image attacks (which are more i
by tatersolid 4y ago
Truncated SHA-* hashes are more secure against length-extension attacks, but are very much less secure against collision and pre-image attacks (which are more important in most scenarios).
- Dylan16807 4y agoBut also, 256 is overkill for collisions and pre-image. There's a point where truncating starts to make it weaker, but when you first start chopping off bytes the benefits outweigh the drawbacks.