3 ms·
> most languages provide access to old algorithms (e.g. MD5 and SHA1) Why is this a problem? Isn't it fine to use them for non-cryptogrphic purposes?
by matheusmoreira 3y ago
> most languages provide access to old algorithms (e.g. MD5 and SHA1)
Why is this a problem? Isn't it fine to use them for non-cryptogrphic purposes?
- wmf 3y agoIt's a bad code smell. We discussed this the other day: "If you need security don't use MD5 (because it's no longer secure). If you don't need security, use something faster than MD5." https://news.ycombinator.com/item?id=38173061 https://news.ycombinator.com/item?id=38173061
- quesera 3y agoIt is not a bad code smell for a language to provide access to old algorithms. Sometimes existing implementations require you to work with algorithms that are not ideal, but still adequate, today. Languages and stdlibs should obviously provide that ability!
- wmf 3y agoI agree that languages and libraries should maintain backwards compatibility. It's a bad code smell to use broken algorithms unless you absolutely have to.
- matheusmoreira 3y agoMaybe some old software uses MD5 as a database primary key for files and rehashing everything would just be too painful.